import type { TargetMetadata } from '../../../modules/pipeline/orchestrator/pipeline-context.js'; export interface ProviderRuntimeMetadata { requestId?: string; pipelineId?: string; routeName?: string; providerId?: string; providerKey?: string; runtimeKey?: string; providerType?: string; providerFamily?: string; providerProtocol?: string; modelId?: string; metadata?: Record; target?: TargetMetadata; compatibilityProfile?: string; /** * Runtime metadata is a dynamic carrier for provider/request hints. * Keep an index signature so transport/provider code can attach extra fields * (e.g. streaming flags, client originator, counters) without fighting TS. */ [key: string]: unknown; } declare const PROVIDER_RUNTIME_SYMBOL: unique symbol; export declare function attachProviderRuntimeMetadata(payload: Record, metadata: ProviderRuntimeMetadata): void; export declare function extractProviderRuntimeMetadata(source: unknown): ProviderRuntimeMetadata | undefined; export { PROVIDER_RUNTIME_SYMBOL };