/** * The pending-claim file (#479): a `vendo login` claim outlives the process * that opened it. Coding agents' processes often live exactly one turn — if * the poller dies and the human approves afterwards, the approval succeeds * server-side but the claim_token existed only in the dead process's memory. * Persisting the claim lets a fresh `vendo login` resume polling the SAME * claim, so the late approval still lands the key. */ export interface PendingClaim { claim_token: string; user_code: string; verification_uri_complete: string; /** Unix timestamp in milliseconds — computed from the ceremony's expires_in. */ expires_at: number; /** Poll pacing in seconds (RFC 8628). */ interval: number; /** The console the claim was opened against — resume only on a match. */ api_url: string; /** Where the original run intended .env.local to land. */ cwd: string; } export interface PendingClaimOptions { home?: string; } /** An unreadable or malformed file reads as "no pending claim" — the caller discards it by opening (and persisting) a fresh ceremony. Only a claim opened for THIS cwd is ever returned. A pre-0.4.2 machine-global file is honored (and migrated) only when its recorded cwd matches; someone else's ceremony is never resumed. */ export declare function readPendingClaim(cwd: string, options?: PendingClaimOptions): Promise; export declare function writePendingClaim(claim: PendingClaim, options?: PendingClaimOptions): Promise; export declare function deletePendingClaim(cwd: string, options?: PendingClaimOptions): Promise;