import type { SessionHandle } from "./session.js";
export interface GitCloneParams {
    branch?: string;
    depth?: number;
    directory?: string;
}
export interface GitCheckoutParams {
    create?: boolean;
    /** Repository to operate on (git -C); required when the repo was cloned into a subdirectory. */
    directory?: string;
}
export interface GitDiffParams {
    range?: string;
    base?: string;
    head?: string;
    path?: string;
    /** Repository to operate on (git -C); required when the repo was cloned into a subdirectory. */
    directory?: string;
}
export interface GitLogParams {
    maxCount?: number;
    range?: string;
    path?: string;
    /** Repository to operate on (git -C); required when the repo was cloned into a subdirectory. */
    directory?: string;
}
export interface GitFetchPRParams {
    directory?: string;
    remote?: string;
    branchPrefix?: string;
}
export declare class Git {
    private session;
    constructor(session: SessionHandle);
    clone(repo: string, params?: GitCloneParams): Promise<string>;
    checkout(ref: string, params?: GitCheckoutParams): Promise<string>;
    diff(params?: GitDiffParams): Promise<string>;
    log(params?: GitLogParams): Promise<string>;
    fetchPR(prNumber: number, params?: GitFetchPRParams): Promise<string>;
}
