import { DurableObject } from "cloudflare:workers";
interface ClientInfo {
    url: string;
    clientId: string;
    cookieHeaders: string;
}
export declare class RealtimeDurableObject extends DurableObject {
    state: DurableObjectState;
    env: Env;
    storage: DurableObjectStorage;
    clientInfoCache: Map<string, ClientInfo>;
    constructor(state: DurableObjectState, env: Env);
    fetch(request: Request): Promise<Response>;
    private createClientInfo;
    private storeClientInfo;
    private getClientInfo;
    private handleWebSocket;
    webSocketMessage(ws: WebSocket, data: ArrayBuffer): Promise<void>;
    private streamResponse;
    private handleAction;
    private determineSockets;
    render({ include, exclude, }?: {
        include?: string[];
        exclude?: string[];
    }): Promise<void>;
    private removeClientInfo;
    webSocketClose(ws: WebSocket): Promise<void>;
}
export {};
