import type { MoveLedger } from "./move-ledger.ts";
import { type MoveId } from "./ownership.ts";
export interface RevokeMoveOptions {
    /** The copy this device imported for the move. */
    readonly sessionFile: string;
    readonly moveId: MoveId;
    /** This device's move record; its accepted record is marked revoked once the copy is sealed. */
    readonly ledger: MoveLedger;
    /** Runs inside the move lock before anything is read; throw to refuse. */
    readonly guard?: () => void | Promise<void>;
}
export declare class RevokeMismatchError extends Error {
    readonly code = "move_mismatch";
    constructor(moveId: MoveId);
}
/** The `session_moved` reason a revoke records. */
export declare const REVOKED = "revoked";
/**
 * Seals the copy a receiving device imported for a move after the sender took the session back (senpi#4003):
 * `session_moved` with reason `revoked` makes it read-only for good. Only a file whose latest ownership step is this
 * move's `session_moved_in` is revoked; a repeat finds it already revoked and changes nothing. After the seal, under the
 * same lock, the move's accepted record is marked revoked; a repeat writes it again if a crash lost it.
 */
export declare function revokeImportedMove(options: RevokeMoveOptions): Promise<void>;
//# sourceMappingURL=revoke.d.ts.map