import type { ModelCallContract, RequestAttribution } from "@velum-labs/routekit-contracts"; export type GatewayDialect = "openai-chat" | "openai-embeddings" | "anthropic-messages" | "openai-responses"; export declare const MODEL_CALL_ID_HEADER = "x-routekit-model-call-id"; export declare const UNKNOWN_GIT_SHA = "unknown"; export declare function resolveProducerGitSha(fromDir?: string): string; export declare function readProducerVersion(fromDir?: string, fallback?: string): string; export type ModelGatewayCallContext = { callId: string; dialect: GatewayDialect; requestedModel: string | undefined; model: string | undefined; stream: boolean; requestBody: unknown; startedAt: string; endpointId?: string; attribution?: RequestAttribution; }; export type ModelGatewayCallResult = { statusCode: number; responseBody?: Buffer; durationMs: number; error?: unknown; }; export type ModelCallRecord = ModelCallContract; export type ProvenanceSink = { onModelCall?(record: ModelCallRecord): void; onModelCallRaw?(context: ModelGatewayCallContext, result: ModelGatewayCallResult): void; }; export declare function buildModelCallRecord(context: ModelGatewayCallContext, result: ModelGatewayCallResult): ModelCallRecord; export declare function modelCallId(): string; export declare function responseBodyHash(body: Buffer): string;