type Extends = T extends E ? R1 : R2; type ICallable = (...args: A) => R; type Match = string | undefined; export declare const apply: >, R2 = ReturnType>(value: V, cb: C) => Extends, R1, R2>; export type TGitRootSync = (cwd?: string) => Match; export type TGitRoot = { (cwd: string | undefined, sync: true): Match; (cwd?: string): Promise; sync: TGitRootSync; }; export declare const gitRoot: TGitRoot; export declare const gitRootSync: (cwd?: string) => Match; export {};