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 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 BACKEND_DIAGNOSTICS_KEY: unique symbol; export declare const profilerModeSchema: z.ZodEnum<{ summary: "summary"; verbose: "verbose"; }>; export declare const profilerGPUResourceGaugeSchema: z.ZodObject<{ id: z.ZodString; compute: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; memoryUsedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>; export declare const profilerResourceGaugeSchema: z.ZodObject<{ sampledAt: z.ZodNumber; cpu: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; memory: z.ZodObject<{ usedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; totalBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; processUsedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; processAvailableBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>; gpus: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodArray; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; memoryUsedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>>; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>; /** * 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>; export declare const operationEventSchema: z.ZodObject<{ op: z.ZodString; kind: z.ZodLiteral<"handler">; ms: z.ZodNumber; profileId: z.ZodOptional; gauges: z.ZodOptional>; resources: z.ZodOptional; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; memory: z.ZodObject<{ usedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; totalBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; processUsedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; processAvailableBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>; gpus: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodArray; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; memoryUsedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>>; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>>; backend: z.ZodOptional; graphicsApi: z.ZodOptional>; driver: z.ZodOptional; }, z.core.$strip>>; gpuId: z.ZodOptional; fallback: z.ZodOptional; requestedDevice: z.ZodOptional>; reason: z.ZodString; }, z.core.$strip>>; probe: z.ZodOptional; backend: z.ZodString; reason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; tags: z.ZodOptional>; count: z.ZodOptional; }, z.core.$strip>; export declare const profilingRequestMetaSchema: z.ZodObject<{ enabled: z.ZodOptional; id: z.ZodOptional; includeServer: z.ZodOptional; includeResources: 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>>; operation: z.ZodOptional; ms: z.ZodNumber; profileId: z.ZodOptional; gauges: z.ZodOptional>; resources: z.ZodOptional; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; memory: z.ZodObject<{ usedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; totalBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; processUsedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; processAvailableBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>; gpus: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodArray; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; memoryUsedBytes: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"supported">; value: z.ZodNumber; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>>; provenance: z.ZodObject<{ source: z.ZodString; scope: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"unverified">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"failed">; reason: z.ZodOptional; }, z.core.$strip>], "status">; }, z.core.$strip>>; backend: z.ZodOptional; graphicsApi: z.ZodOptional>; driver: z.ZodOptional; }, z.core.$strip>>; gpuId: z.ZodOptional; fallback: z.ZodOptional; requestedDevice: z.ZodOptional>; reason: z.ZodString; }, z.core.$strip>>; probe: z.ZodOptional; backend: z.ZodString; reason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; tags: z.ZodOptional>; count: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const perCallProfilingSchema: z.ZodObject<{ enabled: z.ZodOptional; includeServerBreakdown: z.ZodOptional; includeResourceGauges: 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 PerCallProfiling = z.infer; export type OperationEvent = z.infer; export type ProfilerGPUResourceGauge = z.infer; export type ProfilerResourceGauge = z.infer;