import type { DevToolsSys } from "../../types";
import type { Credentials } from "../credentials";
import type { GitConfigs, GitDiagnostics } from "$/ai-utils";
export interface RunCommandOptions {
    cwd?: string;
    debug?: boolean;
    sys: DevToolsSys;
    timeout?: number;
    skipLogging?: boolean;
    stdin?: string;
    retry?: number;
}
type FetchGitConfigsResult = {
    success: true;
    gitConfigs: GitConfigs;
} | {
    success: false;
    error: Error;
    gitDiagnostics?: GitDiagnostics;
};
export declare function runCommand(cmd: string, args: string[], opts: RunCommandOptions): Promise<string>;
export declare function getMonotonicId(): string;
export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;
export declare function fetchGitConfigs(credentials: Credentials, projectId: string): Promise<FetchGitConfigsResult>;
export {};
