import { type StatusFile } from "../../core/session-move/import.ts";
import { type MoveLedger } from "../../core/session-move/move-ledger.ts";
import type { MoveId } from "../../core/session-move/ownership.ts";
import type { StatusNamedFile } from "./session-move-request.ts";
import type { RpcMoveLanded, RpcMoveRecord } from "./session-move-wire.ts";
/**
 * The session file a `status` asks about. A `landing` is resolved by the rules `import` lands a session by, from the
 * same three values, so the two name one path; and without making the session folder, so a question leaves nothing
 * behind.
 */
export declare function statusFile(named: StatusNamedFile | undefined, agentDir: string): StatusFile | undefined;
/** The `status` answer: the receiver's record, and beside `accepted` where the move landed. */
export declare function statusAnswer(ledger: MoveLedger, moveId: MoveId, asked: StatusFile | undefined): Promise<RpcMoveRecord>;
/**
 * What a `move_fenced` refusal's `errorData` gains when the move it refuses is already accepted here, whichever op
 * was refused (an `import` into another folder, a `prepare` for another folder): where the move landed, and
 * `revoked: true` when that copy was sealed, so a caller learns that binding it would answer `session_moved_away`.
 * It only adds to a refusal: if the record or the landed file cannot be read now, the refusal goes out without it.
 */
export declare function landedWhenFenced(ledger: MoveLedger, cause: unknown): Promise<(RpcMoveLanded & {
    revoked?: true;
}) | undefined>;
//# sourceMappingURL=session-move-landed.d.ts.map