import type { Request, Response } from 'express'; export interface ClientConnectionState { disconnected: boolean; } export declare const CLIENT_CONNECTION_STATE_FIELD = "__clientConnectionState"; export declare function trackClientConnectionState(req: Request, res: Response): ClientConnectionState; export declare function extractClientConnectionState(metadata?: Record): ClientConnectionState | undefined; export declare function getClientConnectionAbortSignal(source?: ClientConnectionState | Record): AbortSignal | undefined; export declare function applyClientConnectionStateToContext(metadata: Record | undefined, adapterContext: Record): void;