import type { HandoffPushInfo } from './handoff-doc-format.js'; export declare const HANDOFF_REF = "specweave-handoff"; export declare const PICKUPS_FILE = ".specweave/state/pickups.txt"; export declare function wipRefFor(branch: string): string; export interface HandoffMeta { by: string; at: string; increment?: string; reason?: string; } export interface PushOptions { remote?: string; /** The user asked for the push; report every reason it could not happen. */ explicit?: boolean; /** Skip the branch push (the snapshot refs still go) and warn with this reason. */ holdBranch?: string; } export declare function pushHandoff(repoRoot: string, meta: HandoffMeta, opts?: PushOptions): HandoffPushInfo; export interface PickupApplyResult { /** `elsewhere`: the pushed handoff belongs to another increment than the one asked for; nothing changed. */ status: 'none' | 'applied' | 'here' | 'already' | 'dirty' | 'diverged' | 'failed' | 'elsewhere'; /** Plain-language summary for the user (empty for `none`). */ message: string; snapshot?: string; meta?: Partial & { branch?: string; }; /** Branch pickup switched to from the repository's default branch. */ switchedTo?: string; /** Commits the current branch moved forward by. */ fastForwarded?: number; /** Files changed by the applied uncommitted edits. */ editedFiles?: number; } /** Read the `Handoff-*` trailers of a snapshot commit. */ export declare function readHandoffMeta(message: string): Partial & { branch?: string; }; export interface ApplyOptions { remote?: string; /** Only report what would happen. */ dryRun?: boolean; /** Apply the pushed handoff only when it is this increment's (`0874` or the folder name). */ increment?: string; } /** Does a snapshot's `Handoff-Increment` name the increment the user asked for? */ export declare function sameIncrement(snapshotIncrement: string | undefined, wanted: string): boolean; export declare function applyHandoff(repoRoot: string, opts?: ApplyOptions): PickupApplyResult; /** Mark a snapshot as present in this checkout (made here or already applied). */ export declare function rememberPickup(repoRoot: string, snapshot: string): void; //# sourceMappingURL=handoff-remote.d.ts.map