import { z } from "zod"; /** Internal envelope key for profiling metadata in RPC payloads */ export declare const PROFILING_KEY = "__profiling"; /** Marker key for profiling-only trailer frames in streaming responses */ export declare const PROFILING_TRAILER_KEY = "__profilingTrailer"; /** * Symbol key for attaching delegation breakdown to response objects. */ export declare const DELEGATION_BREAKDOWN_KEY: unique symbol; /** * Symbol key for attaching operation event to response objects. */ export declare const OPERATION_EVENT_KEY: unique symbol; /** * Symbol key for attaching model execution timing. */ export declare const MODEL_EXECUTION_KEY: unique symbol; export declare const profilerModeSchema: z.ZodEnum<{ summary: "summary"; verbose: "verbose"; }>; /** * Server-side timing breakdown (server → client). * Attached to profiling response when includeServerBreakdown is enabled. */ export declare const serverBreakdownSchema: z.ZodObject<{ requestJsonParseMs: z.ZodOptional; requestZodValidationMs: z.ZodOptional; handlerExecutionMs: z.ZodOptional; responseZodValidationMs: z.ZodOptional; responseStringifyMs: z.ZodOptional; totalServerMs: z.ZodOptional; }, z.core.$strip>; /** * Delegation timing breakdown (consumer server → client). * Captures timing for server-to-provider delegation hops. * Note: Only injected for unary requests; streaming delegation * records server-side but does not inject into response. */ export declare const delegationBreakdownSchema: z.ZodObject<{ profileId: z.ZodOptional; connectionMs: z.ZodOptional; requestStringifyMs: z.ZodOptional; serverWaitMs: z.ZodOptional; responseJsonParseMs: z.ZodOptional; totalDelegationMs: z.ZodOptional; }, z.core.$strip>; export declare const operationEventSchema: z.ZodObject<{ op: z.ZodString; kind: z.ZodLiteral<"handler">; ms: z.ZodNumber; profileId: z.ZodOptional; gauges: z.ZodOptional>; tags: z.ZodOptional>; count: z.ZodOptional; }, z.core.$strip>; export declare const profilingRequestMetaSchema: z.ZodObject<{ enabled: z.ZodOptional; id: z.ZodOptional; includeServer: z.ZodOptional; mode: z.ZodOptional>; }, z.core.$strip>; export declare const profilingResponseMetaSchema: z.ZodObject<{ id: z.ZodString; server: z.ZodOptional; requestZodValidationMs: z.ZodOptional; handlerExecutionMs: z.ZodOptional; responseZodValidationMs: z.ZodOptional; responseStringifyMs: z.ZodOptional; totalServerMs: z.ZodOptional; }, z.core.$strip>>; delegation: z.ZodOptional; connectionMs: z.ZodOptional; requestStringifyMs: z.ZodOptional; serverWaitMs: z.ZodOptional; responseJsonParseMs: z.ZodOptional; totalDelegationMs: z.ZodOptional; }, z.core.$strip>>; operation: z.ZodOptional; ms: z.ZodNumber; profileId: z.ZodOptional; gauges: z.ZodOptional>; tags: z.ZodOptional>; count: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const perCallProfilingSchema: z.ZodObject<{ enabled: z.ZodOptional; includeServerBreakdown: z.ZodOptional; mode: z.ZodOptional>; }, z.core.$strip>; export type ProfilingResponseMeta = z.infer; export type ProfilerMode = z.infer; export type ProfilingRequestMeta = z.infer; export type ServerBreakdown = z.infer; export type DelegationBreakdown = z.infer; export type PerCallProfiling = z.infer; export type OperationEvent = z.infer; //# sourceMappingURL=profiling.d.ts.map