import * as z from "zod/v4";
import { OpenEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
export declare const Event: {
    readonly AdapterRequest: "adapter_request";
    readonly UpstreamHeadersReceived: "upstream_headers_received";
    readonly FirstTokenReceived: "first_token_received";
    readonly UpstreamBodyEnded: "upstream_body_ended";
};
export type Event = OpenEnum<typeof Event>;
export type Timings = {
    epochMs: number;
    event: Event;
    startMs: number;
};
export type Debug = {
    echoUpstreamBody?: {
        [k: string]: any;
    } | undefined;
    timings?: Timings | undefined;
};
/**
 * Debug event emitted when debug.echo_upstream_body is true. Contains the transformed upstream request body or timing milestones.
 */
export type DebugEvent = {
    debug: Debug;
    sequenceNumber: number;
    type: "response.debug";
};
/** @internal */
export declare const Event$inboundSchema: z.ZodType<Event, unknown>;
/** @internal */
export declare const Timings$inboundSchema: z.ZodType<Timings, unknown>;
export declare function timingsFromJSON(jsonString: string): SafeParseResult<Timings, SDKValidationError>;
/** @internal */
export declare const Debug$inboundSchema: z.ZodType<Debug, unknown>;
export declare function debugFromJSON(jsonString: string): SafeParseResult<Debug, SDKValidationError>;
/** @internal */
export declare const DebugEvent$inboundSchema: z.ZodType<DebugEvent, unknown>;
export declare function debugEventFromJSON(jsonString: string): SafeParseResult<DebugEvent, SDKValidationError>;
//# sourceMappingURL=debugevent.d.ts.map