export type ProjectRootSource = "env" | "default-env" | "default-config" | "strong-marker" | "home-git-fallback" | "git" | "cwd";
export interface ProjectRootResolution {
    root: string;
    source: ProjectRootSource;
    cwd: string;
    home: string;
    gitRoot?: string;
    marker?: string;
    configuredDefaultProjectRoot?: string;
    defaultProjectRootError?: string;
    isHomeRoot: boolean;
    homeIsGitRepo: boolean;
    warning?: string;
    recommendation?: string;
}
export interface ResolveProjectRootOptions {
    cwd?: string;
    env?: NodeJS.ProcessEnv;
    home?: string;
    allowHomeGitRoot?: boolean;
}
export declare function resolveProjectRoot(options?: ResolveProjectRootOptions): ProjectRootResolution;
export declare function resolveProjectRootAsync(options?: ResolveProjectRootOptions): Promise<ProjectRootResolution>;
export declare function getProjectRoot(): string;
export declare function getProjectRootAsync(): Promise<string>;
export declare function getProjectRootDiagnostics(): ProjectRootResolution;
export declare function displayProjectRootPath(path: string | undefined, home?: string): string | null;
