export type GitGetCommitHistoryPermission = "git:read" | "filesystem:read";
export type GitCommitHistoryGuard = {
    allowed?: boolean;
    accepted?: boolean;
    reason?: string;
};
export type GitGetCommitHistoryContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: GitCommitHistoryGuard;
    allowedRepositoryRoots?: readonly string[];
    grantedPermissions?: readonly GitGetCommitHistoryPermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type GitGetCommitHistoryTarget = {
    repositoryPath: string;
    maxCount: number;
    ref?: string;
    pathFilter?: string;
};
export type GitGetCommitHistoryRequest = {
    target?: Partial<GitGetCommitHistoryTarget>;
    context?: GitGetCommitHistoryContext;
    provider?: GitCommitHistoryProvider;
    timeoutMs?: number;
    metadata?: Readonly<Record<string, unknown>>;
};
export type GitCommitHistoryEntryEnvelope = {
    fullHash: string;
    shortHash: string;
    authorName: string;
    authorEmail: string;
    authoredAt: string;
    subject: string;
};
export type GitCommitHistoryRuntimeEntry = {
    owner: "runtime";
    port: "BaseToolExecutorPort.git.runGit";
    method: "runGit";
    binary: "git";
    argvMode: "fixed-log-read";
    allowedSubcommand: "log";
};
export type GitCommitHistoryRisk = {
    category: "read-only-inspection";
    riskLevel: "normal";
    mutatesRepository: false;
    mutatesWorkingTree: false;
    spawnsProcess: true;
    requiresTapApproval: true;
    runtimeOwnsExecution: true;
};
export type GitCommitHistoryEnvelope = {
    parser: "git-log-unit-separator-v1";
    entries: readonly GitCommitHistoryEntryEnvelope[];
};
export type GitGetCommitHistoryOutput = {
    kind: "agentCore.basicTool.git.getCommitHistory";
    target: GitGetCommitHistoryTarget;
    runtimeEntry: GitCommitHistoryRuntimeEntry;
    risk: GitCommitHistoryRisk;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    timeoutMs: number;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    exitCode?: number;
    stdout?: string;
    stderr?: string;
    permissionsRequired: readonly GitGetCommitHistoryPermission[];
    unsafeSideEffects: false;
    resultEnvelope: GitCommitHistoryEnvelope;
};
export type GitGetCommitHistoryPlan = {
    toolId: "git.getCommitHistory";
    capability: "get-commit-history";
    runtimeId: string;
    invocationId: string;
    repositoryPath: string;
    maxCount: number;
    ref?: string;
    pathFilter?: string;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    requiredPermissions: readonly GitGetCommitHistoryPermission[];
    runtimeEntry: GitCommitHistoryRuntimeEntry;
    risk: GitCommitHistoryRisk;
    dispatch: "dry-run" | "runtime-git-executor";
    dryRun: boolean;
    unsafeSideEffects: false;
    outputEnvelope: {
        stdoutPreview: "";
        stderrPreview: "";
        parsed: false;
    };
    audit: {
        guard: "git-log-runtime-guard";
        event: "basicTool.git.getCommitHistory.planned";
        governanceRequired: true;
        tapCanWrap: true;
        metadata: Readonly<Record<string, unknown>>;
    };
};
export type GitGetCommitHistoryErrorBoundary = "input" | "scope" | "permission" | "governance" | "provider";
export type GitGetCommitHistoryErrorCode = "MISSING_REPOSITORY_PATH" | "INVALID_ARGUMENT" | "INVALID_CONTEXT" | "INVALID_MAX_COUNT" | "UNSAFE_REF" | "UNSAFE_PATH_FILTER" | "INVALID_TIMEOUT" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type GitGetCommitHistoryError = {
    code: GitGetCommitHistoryErrorCode;
    message: string;
    boundary: GitGetCommitHistoryErrorBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type GitGetCommitHistoryAuditEvent = {
    type: string;
    toolId: "git.getCommitHistory";
    invocationId: string;
    dryRun: boolean;
    repositoryPath?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type GitGetCommitHistoryResult = {
    ok: true;
    toolId: "git.getCommitHistory";
    output: GitGetCommitHistoryOutput;
    plan: GitGetCommitHistoryPlan;
    audit: readonly GitGetCommitHistoryAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "git.getCommitHistory";
    error: GitGetCommitHistoryError;
    audit: readonly GitGetCommitHistoryAuditEvent[];
    events: readonly string[];
};
export type GitCommitHistoryProviderRequest = {
    repositoryPath: string;
    args: readonly string[];
    timeoutMs?: number;
};
export type GitCommitHistoryProviderResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type GitCommitHistoryProvider = (request: GitCommitHistoryProviderRequest, context: GitGetCommitHistoryContext) => GitCommitHistoryProviderResult | Promise<GitCommitHistoryProviderResult>;
export declare const gitGetCommitHistoryDescriptor: {
    readonly toolId: "git.getCommitHistory";
    readonly capability: "get-commit-history";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.gitBase.inspection";
    readonly defaultDryRun: true;
    readonly tapOwnsApproval: true;
    readonly requiresTapApproval: true;
    readonly runtimeEntryPort: "BaseToolExecutorPort.git.runGit";
    readonly operationRisk: "read-only-inspection";
    readonly permissionsRequired: readonly ["git:read", "filesystem:read"];
    readonly defaultMaxCount: 20;
    readonly maxAllowedCount: 200;
    readonly defaultTimeoutMs: 30000;
    readonly maxTimeoutMs: 600000;
};
export declare function parseGitCommitHistory(stdout: string): GitCommitHistoryEnvelope;
export declare function planGitCommitHistoryRead(request?: GitGetCommitHistoryRequest): GitGetCommitHistoryResult;
export declare function executeGitCommitHistory(request?: GitGetCommitHistoryRequest): Promise<GitGetCommitHistoryResult>;
