import { type RpcRecord } from "./session-event-writer-compaction.ts";
import { SessionEventWriterRecovery } from "./session-event-writer-recovery.ts";
/** A record's legacy line, encoded on first use: a record no legacy destination needs never builds it (RULING-81 X06). */
export declare class RecordLine {
    private readonly record;
    private encoded;
    constructor(record: object, encoded?: string);
    get text(): string;
    /** The line if some destination already built it; undefined otherwise. */
    get built(): string | undefined;
}
/** Per-destination delivery of one session record, moved verbatim out of `session-event-writer.ts` (S13w0, #4272). */
export declare abstract class SessionEventWriterDestinations extends SessionEventWriterRecovery {
    /** Puts the record on every target's FIFO in target order, or on the stdio lane for the `undefined` target. */
    protected deliver(sessionId: string, record: RpcRecord, tagged: RpcRecord, line: RecordLine, targets: readonly (string | undefined)[], mirrors: readonly string[], isTargeted: boolean, 
    /** A targeted reply's destination check, repeated immediately before its write (#4728). */
    current?: () => boolean): void;
    /**
     * What `target` receives for `record` (S13, R4.B6): a record past F, for a connection that selected compact events and
     * holds this lane-owned session, becomes an `eventLease` envelope at the record's accepted sequence, its content
     * staged from the line another destination built or else streamed from the record (never one legacy line); every
     * other destination gets the legacy line. Past the peer's lease bound, or when the record cannot be staged, the peer
     * gets a typed refusal and its connection closes (fail closed, like a plain peer's overflow). A stamped copy is
     * built once per delivery (`copies`), so every compact peer leases the same staged text.
     */
    private eventLine;
}
//# sourceMappingURL=session-event-writer-destinations.d.ts.map