import type { VFileSystem } from 'cspell-io';
/**
 * Find the git repository root directory.
 * @param directory - directory to search up from.
 * @returns resolves to `.git` root or undefined
 */
export declare function findRepoRoot(directory: string | URL, vfs?: VFileSystem): Promise<string | undefined>;
/**
 * Check if a directory is the root of a git repository, clone or worktree.
 * @param directory - directory to check.
 * @returns resolves to true when the directory has a `.git` file or directory.
 */
export declare function isRepoRoot(directory: string | URL, vfs?: VFileSystem): Promise<boolean>;
//# sourceMappingURL=findRepoRoot.d.ts.map