export type ExecFileFn = (cmd: string, args: string[]) => Promise<{ stdout: string; stderr: string; }>; export declare function resolveWorktreeMainRoot(cwd: string | undefined, execFile?: ExecFileFn): Promise;