export type GitCreateCommitPermission = "git:read" | "git:write" | "filesystem:read" | "filesystem:write";
export type GitCreateCommitRiskCategory = "history-mutation";
export type GitCreateCommitGuard = {
    allowed?: boolean;
    accepted?: boolean;
    reason?: string;
};
export type GitCreateCommitContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: GitCreateCommitGuard;
    allowedRepositoryRoots?: readonly string[];
    grantedPermissions?: readonly GitCreateCommitPermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type GitCreateCommitTarget = {
    repositoryPath: string;
    commitMessage: string;
    includeAllTracked: boolean;
    allowEmpty: boolean;
    signoff: boolean;
};
export type GitCreateCommitRequest = {
    target?: Partial<GitCreateCommitTarget>;
    context?: GitCreateCommitContext;
    provider?: GitCreateCommitProvider;
    timeoutMs?: number;
    metadata?: Readonly<Record<string, unknown>>;
    runtimeId?: string;
    invocationId?: string;
    repositoryPath?: string;
    commitMessage?: string;
    message?: string;
    includeAllTracked?: boolean;
    all?: boolean;
    allowEmpty?: boolean;
    signoff?: boolean;
    dryRun?: boolean;
};
export type GitCreateCommitRuntimeEntry = {
    owner: "runtime";
    port: "BaseToolExecutorPort.git.runGit";
    method: "runGit";
    binary: "git";
    argvMode: "fixed-create-commit";
    allowedSubcommand: "commit";
};
export type GitCreateCommitRisk = {
    category: GitCreateCommitRiskCategory;
    riskLevel: "risky";
    mutatesRepository: true;
    mutatesWorkingTree: false;
    mutatesIndex: true;
    createsCommit: true;
    mayStageTrackedChanges: boolean;
    spawnsProcess: true;
    requiresTapApproval: true;
    runtimeOwnsExecution: true;
};
export type GitCreateCommitEnvelope = {
    parser: "git-commit-output-v1";
    commitMessage: string;
    includeAllTracked: boolean;
    allowEmpty: boolean;
    signoff: boolean;
    exitCode?: number;
    stdoutLineCount: number;
    stderrLineCount: number;
    operationHint?: string;
    branchName?: string;
    commitHash?: string;
    subject?: string;
    filesChanged?: number;
    commitCreated: boolean;
};
export type GitCreateCommitOutput = {
    kind: "agentCore.basicTool.git.createCommit";
    target: GitCreateCommitTarget;
    runtimeEntry: GitCreateCommitRuntimeEntry;
    risk: GitCreateCommitRisk;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    timeoutMs: number;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    exitCode?: number;
    stdout?: string;
    stderr?: string;
    permissionsRequired: readonly GitCreateCommitPermission[];
    unsafeSideEffects: true;
    createsCommit: true;
    resultEnvelope: GitCreateCommitEnvelope;
};
export type GitCreateCommitPlan = {
    toolId: "git.createCommit";
    toolKind: "git.createCommit";
    capability: "create-commit";
    runtimeId: string;
    invocationId: string;
    repositoryPath: string;
    commitMessage: string;
    includeAllTracked: boolean;
    allowEmpty: boolean;
    signoff: boolean;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    requiredPermissions: readonly GitCreateCommitPermission[];
    runtimeEntry: GitCreateCommitRuntimeEntry;
    risk: GitCreateCommitRisk;
    dispatch: "dry-run" | "runtime-git-executor";
    dryRun: boolean;
    wouldMutateRepository: true;
    unsafeSideEffects: true;
    outputEnvelope: {
        stdoutPreview: "";
        stderrPreview: "";
        parsed: false;
    };
    audit: {
        guard: "git-commit-runtime-guard";
        event: "basicTool.git.createCommit.planned";
        governanceRequired: true;
        tapCanWrap: true;
        metadata: Readonly<Record<string, unknown>>;
    };
};
export type GitCreateCommitErrorBoundary = "input" | "scope" | "permission" | "governance" | "provider";
export type GitCreateCommitErrorCode = "MISSING_REPOSITORY_PATH" | "MISSING_REQUIRED_FIELD" | "INVALID_ARGUMENT" | "INVALID_CONTEXT" | "INVALID_TIMEOUT" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type GitCreateCommitError = {
    code: GitCreateCommitErrorCode;
    message: string;
    boundary: GitCreateCommitErrorBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type GitCreateCommitAuditEvent = {
    type: string;
    toolId: "git.createCommit";
    invocationId: string;
    dryRun: boolean;
    repositoryPath?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type GitCreateCommitResult = {
    ok: true;
    toolId: "git.createCommit";
    output: GitCreateCommitOutput;
    plan: GitCreateCommitPlan;
    audit: readonly GitCreateCommitAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "git.createCommit";
    error: GitCreateCommitError;
    audit: readonly GitCreateCommitAuditEvent[];
    events: readonly string[];
};
export type GitCreateCommitProviderRequest = {
    repositoryPath: string;
    args: readonly string[];
    timeoutMs?: number;
};
export type GitCreateCommitProviderResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type GitCreateCommitProvider = (request: GitCreateCommitProviderRequest, context: GitCreateCommitContext) => GitCreateCommitProviderResult | Promise<GitCreateCommitProviderResult>;
export declare const gitCreateCommitDescriptor: {
    readonly toolId: "git.createCommit";
    readonly toolKind: "git.createCommit";
    readonly capability: "create-commit";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.gitBase.commit";
    readonly defaultDryRun: true;
    readonly defaultDispatch: "dry-run";
    readonly tapOwnsApproval: true;
    readonly requiresTapApproval: true;
    readonly runtimeEntryPort: "BaseToolExecutorPort.git.runGit";
    readonly operationRisk: "history-mutation";
    readonly permissionsRequired: readonly ["git:read", "git:write", "filesystem:read", "filesystem:write"];
    readonly defaultTimeoutMs: 30000;
    readonly maxTimeoutMs: 600000;
    readonly unsafeSideEffects: true;
};
export declare function parseGitCreateCommitResult(providerResult: GitCreateCommitProviderResult | undefined, target: GitCreateCommitTarget): GitCreateCommitEnvelope;
export declare function planGitCommitCreation(request?: GitCreateCommitRequest): GitCreateCommitResult;
export declare const planGitCreateCommit: typeof planGitCommitCreation;
export declare function executeGitCreateCommit(request?: GitCreateCommitRequest): Promise<GitCreateCommitResult>;
