/** * Local recovery for things the vault cannot restore. * * `.git` is ignored on purpose (size, machine-local, credentials in config), * so a vault pull after a wiped HQ tree brings files back and loses history. * Empty `repos/public` and `repos/private` are also never uploaded (S3 has no * empty directories). * * The sidecar lives under the machine HQ state dir (`~/.hq/hq-root-git/…`), * which survived the 2026-09-18 wipe that removed `core/`, `personal/`, and * `.git` while leaving the sync daemon running. */ export declare const HQ_LAYOUT_DIRS: readonly ["repos", "repos/public", "repos/private"]; export type GitSidecarAction = "restored" | "snapshotted" | "unchanged" | "absent"; export declare function gitSidecarDir(hqRoot: string, homeDir?: string): string; export declare function shouldCopyGitSidecarEntry(src: string): boolean; export declare function snapshotHqGit(hqRoot: string, opts?: { homeDir?: string; }): GitSidecarAction; export declare function restoreHqGitIfMissing(hqRoot: string, opts?: { homeDir?: string; }): GitSidecarAction; export declare function ensureLocalLayoutDirs(hqRoot: string): number; export declare function recoverHqRootLocalState(hqRoot: string, opts?: { homeDir?: string; }): { layoutCreated: number; git: GitSidecarAction; }; //# sourceMappingURL=hq-root-recovery.d.ts.map