import type { IncomingHttpHeaders } from "node:http";
export declare function checkpointAction(route: string): "list" | "preview" | "restore" | undefined;
export declare const isGitWriteRoute: (route: string) => boolean;
export declare function requireGitWrite(route: string, expectedRepository: unknown, headers: IncomingHttpHeaders, diagnostics?: GitWriteDiagnostics): void;
export declare function requireGitCheckout(root: string | undefined, expectedRepository: unknown): string;
/** Per Hook run, bounded client counts and one warning per client and route. */
export declare class GitWriteDiagnostics {
    private readonly clients;
    record(route: string, headers: IncomingHttpHeaders): void;
    snapshot(): {
        client: string;
        count: number;
        warning: string;
    }[];
}
