import type { TransportContext } from "./headers.js"; /** Hint passed to the owner-supplied HTTP fallback callback. */ export type FallbackFetchContext = { /** Set only for typed replay-safe `previous_response_not_found` owner fallback. */ clearPreviousResponseId?: boolean; }; type FallbackFetch = (signal: AbortSignal, context?: FallbackFetchContext) => Promise; /** Fixed-cardinality active bridge count for tests (no session IDs). */ export declare function activeBridgeStreamCountForTesting(): number; /** Abort active bridge turns for a session (hashed identity; idempotent). */ export declare function abortBridgeStreamsForSession(sessionID: string, reason?: unknown): void; /** Abort every active bridge turn (idempotent). */ export declare function abortAllBridgeStreams(reason?: unknown): void; export declare function bridgeWebSocket(wsUrl: string, headers: Record, requestBody: Record, isOAuth: boolean, context?: TransportContext, signal?: AbortSignal, fallbackFetch?: FallbackFetch): Response; export {}; //# sourceMappingURL=bridge.d.ts.map