import type { ModuleDependencies } from '../../../modules/pipeline/interfaces/pipeline-interfaces.js'; import type { ProviderContext } from '../api/provider-types.js'; import type { TargetMetadata } from '../../../modules/pipeline/orchestrator/pipeline-context.js'; import type { ProviderErrorEvent } from '../../../modules/llmswitch/bridge.js'; type ProviderErrorRuntimeMetadata = ProviderErrorEvent['runtime']; type ExtendedRuntimeMetadata = ProviderErrorRuntimeMetadata & { providerFamily?: string; runtimeKey?: string; consecutiveErrors?: number; }; type CompatContext = { requestId: string; providerKey?: string; providerId?: string; providerType?: string; providerFamily?: string; providerProtocol?: string; routeName?: string; pipelineId?: string; target?: TargetMetadata; }; interface EmitOptions { error: unknown; stage: string; runtime: ExtendedRuntimeMetadata; dependencies: ModuleDependencies; statusCode?: number; recoverable: boolean; affectsHealth: boolean; details?: Record; } export declare function emitProviderError(options: EmitOptions): void; export declare function buildRuntimeFromProviderContext(ctx: ProviderContext): ExtendedRuntimeMetadata; export declare function buildRuntimeFromCompatContext(ctx: CompatContext): ExtendedRuntimeMetadata; export {};