import type { RetainedRoot } from "./compact-recovery-state.ts";
import { type RecoveryOutcome } from "./compact-recovery-types.ts";
import type { ResyncResume } from "./legacy-resync-view.ts";
import { type LegacyViewCursor } from "./legacy-view-cursor.ts";
import type { FrozenAcceptedRoot, SessionAcceptanceLane } from "./session-acceptance-lane.ts";
/**
 * A lane and the root it froze for one legacy view (R3.C1.5); absent when the lane had no readable root. Every read
 * of `root` runs inside `hold`, as an operation in flight on the root's checkpoint, so a reclaim (a supersession, a
 * retired route, the peer's end) waits for it instead of releasing the root under it.
 */
export interface LegacyViewSource {
    readonly lane: SessionAcceptanceLane;
    readonly root: FrozenAcceptedRoot;
    hold<T>(read: () => Promise<T>): Promise<T>;
}
export interface LegacyAttachView {
    readonly placeholders: boolean;
    readonly now: number;
}
/** A late peer's attach baseline from the lane's frozen view; a source without a readable cut is empty. */
export declare function legacyAttachView(sessionId: string, source: LegacyViewSource | undefined, view: LegacyAttachView, onRelease: () => void): LegacyViewCursor;
/**
 * The message slot of a session's `resync_required` frame: C's active message, or null when it has none. A cut the
 * host could not serve (`storage_unavailable`) is reported once; a retired lane has nothing to report. The cut reads
 * only a root it retained at the freeze, so no reclaim before its delivery can take the message from it.
 */
export declare function legacyResyncMessage(sessionId: string, source: RecoveryOutcome<RetainedRoot> | undefined): Promise<ResyncResume>;
//# sourceMappingURL=compact-legacy-view.d.ts.map