export declare const DEFAULT_CLONE_TIMEOUT_MS = 3600000; export declare const DEFAULT_CLONE_IDLE_TIMEOUT_MS = 0; export interface CloneWirePolicy { clone_timeout_seconds?: number | null; clone_idle_timeout_seconds?: number | null; clone_depth?: number | null; clone_filter?: string | null; single_branch?: boolean | null; } export interface ResolvedCloneOptions { timeoutMs: number; idleTimeoutMs: number; strategyArgs: string[]; } export declare function resolveCloneOptions(policy?: CloneWirePolicy | null): ResolvedCloneOptions; export declare function parseClonePolicy(raw: unknown): CloneWirePolicy | null; export interface RepoCredential { username?: string; token: string; } interface GitRun { ok: boolean; stdout: string; stderr: string; } export declare function cloneWithRepoCredential(args: { url: string; dir: string; branch?: string; credential?: RepoCredential | null; timeoutMs?: number; policy?: CloneWirePolicy | null; }): Promise; export declare function authenticatedCloneUrl(url: string, cred?: RepoCredential | null): string; export declare function scrubOriginUrl(cwd: string, cleanUrl: string): Promise; export declare function installRepoCredential(cwd: string, url: string, cred?: RepoCredential | null): Promise; export declare function maskCredential(text: string, cred?: RepoCredential | null): string; export {};