/** * Runtime Integrations Bridge * * Snapshot hooks, responses conversation helpers, SSE converter, and * provider runtime ingress hooks. */ import type { ProviderErrorEvent, ProviderSuccessEvent } from '@jsonstudio/llms/dist/router/virtual-router/types.js'; import type { AnyRecord } from './module-loader.js'; export declare function writeSnapshotViaHooks(channelOrOptions: string | AnyRecord, payload?: AnyRecord): Promise; export declare function resumeResponsesConversation(responseId: string, submitPayload: AnyRecord, options?: { requestId?: string; }): Promise<{ payload: AnyRecord; meta: AnyRecord; }>; export declare function rebindResponsesConversationRequestId(oldId?: string, newId?: string): Promise; export declare function resumeLatestResponsesContinuationByScope(args: { payload: AnyRecord; sessionId?: string; conversationId?: string; requestId?: string; }): Promise<{ payload: AnyRecord; meta: AnyRecord; } | null>; export declare function createResponsesSseToJsonConverter(): Promise<{ convertSseToJson(stream: unknown, options: AnyRecord): Promise; }>; export declare function preloadCriticalBridgeRuntimeModules(): Promise<{ loaded: string[]; }>; export declare function reportProviderErrorToRouterPolicy(event: ProviderErrorEvent): Promise; export declare function reportProviderSuccessToRouterPolicy(event: ProviderSuccessEvent): Promise; export declare function setProviderRuntimeQuotaHooks(owner: unknown, hooks?: { onProviderError?: (event: ProviderErrorEvent) => void; onProviderSuccess?: (event: ProviderSuccessEvent) => void; }): Promise; export declare function setProviderRuntimeProviderQuotaHooks(owner: unknown, hooks?: { onProviderError?: (event: ProviderErrorEvent) => void; }): Promise;