import type { RecoveryCheckpoints } from "./compact-recovery-state.ts";
import type { RecoveryStreamState } from "./compact-recovery-types.ts";
import { SocketEventSinkActor } from "./socket-event-fanout.ts";
import type { MirrorPending } from "./compact-mirror-pending.ts";
/** Every enqueue path, including startup UI/lifecycle and compaction replacements, uses the same route.
 * IDs are a subset of the bounded epoch attempt index; GlobalResync's legacy cursor bypasses enqueue.
 */
export declare class AdmissionRoutingActor extends SocketEventSinkActor {
    private peer;
    readonly admissions: Set<string>;
    readonly subscriptions: Map<string, string>;
    readonly mirrorOwners: Map<string, string>;
    readonly pendingMirrors: Map<string, MirrorPending>;
    /** RULING-117: per session, the completed open that routes it on this socket and how that open ends. */
    readonly opened: Map<string, {
        readonly admissionId: string;
        readonly end: () => Promise<void>;
    }>;
    /** RULING-118: per request id, the route a detach of that request retires once the request's reply is routed. */
    private readonly retireAfterReply;
    mirrorAdmissions?: (sessionId: string, recordType: string) => readonly string[];
    private readonly terminal;
    close(): void;
    remember(sessionId: string, checkpoints: RecoveryCheckpoints, socketEpoch: string): RecoveryStreamState | undefined;
    route(line: string, checkpoints: RecoveryCheckpoints, socketEpoch: string): readonly string[];
    /** A detach made by request `id` retires its route after that request's reply took the route's tag. */
    deferRetire(id: string, retire: () => void): void;
    private retireReplied;
    bind(checkpoints: RecoveryCheckpoints, socketEpoch: string, peer: string): void;
}
//# sourceMappingURL=compact-admission-routing.d.ts.map