export type GitCherryPickCommitPermission = "git:read" | "git:write" | "filesystem:read" | "filesystem:write";
export type GitCherryPickCommitRiskCategory = "history-mutation";
export type GitCherryPickCommitGuard = {
    allowed?: boolean;
    accepted?: boolean;
    reason?: string;
};
export type GitCherryPickCommitContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: GitCherryPickCommitGuard;
    allowedRepositoryRoots?: readonly string[];
    grantedPermissions?: readonly GitCherryPickCommitPermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type GitCherryPickCommitTarget = {
    repositoryPath: string;
    commitRef: string;
    noCommit: boolean;
    mainlineParent?: number;
    signoff: boolean;
};
export type GitCherryPickCommitRequest = {
    target?: Partial<GitCherryPickCommitTarget>;
    context?: GitCherryPickCommitContext;
    provider?: GitCherryPickCommitProvider;
    timeoutMs?: number;
    metadata?: Readonly<Record<string, unknown>>;
    runtimeId?: string;
    invocationId?: string;
    repositoryPath?: string;
    commitRef?: string;
    ref?: string;
    revision?: string;
    noCommit?: boolean;
    mainlineParent?: number;
    signoff?: boolean;
    dryRun?: boolean;
};
export type GitCherryPickCommitRuntimeEntry = {
    owner: "runtime";
    port: "BaseToolExecutorPort.git.runGit";
    method: "runGit";
    binary: "git";
    argvMode: "fixed-cherry-pick-commit";
    allowedSubcommand: "cherry-pick";
};
export type GitCherryPickCommitRisk = {
    category: GitCherryPickCommitRiskCategory;
    riskLevel: "risky";
    mutatesRepository: true;
    mutatesWorkingTree: true;
    mutatesIndex: true;
    mayCreateCommit: boolean;
    appliesCommit: true;
    mayCreateConflicts: true;
    spawnsProcess: true;
    requiresTapApproval: true;
    runtimeOwnsExecution: true;
};
export type GitCherryPickCommitEnvelope = {
    parser: "git-cherry-pick-output-v1";
    commitRef: string;
    noCommit: boolean;
    mainlineParent?: number;
    signoff: boolean;
    exitCode?: number;
    stdoutLineCount: number;
    stderrLineCount: number;
    operationHint?: string;
    branchName?: string;
    commitHash?: string;
    subject?: string;
    filesChanged?: number;
    cherryPickCompleted: boolean;
};
export type GitCherryPickCommitOutput = {
    kind: "agentCore.basicTool.git.cherryPickCommit";
    target: GitCherryPickCommitTarget;
    runtimeEntry: GitCherryPickCommitRuntimeEntry;
    risk: GitCherryPickCommitRisk;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    timeoutMs: number;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    exitCode?: number;
    stdout?: string;
    stderr?: string;
    permissionsRequired: readonly GitCherryPickCommitPermission[];
    unsafeSideEffects: true;
    appliesCommit: true;
    resultEnvelope: GitCherryPickCommitEnvelope;
};
export type GitCherryPickCommitPlan = {
    toolId: "git.cherryPickCommit";
    toolKind: "git.cherryPickCommit";
    capability: "cherry-pick-commit";
    runtimeId: string;
    invocationId: string;
    repositoryPath: string;
    commitRef: string;
    noCommit: boolean;
    mainlineParent?: number;
    signoff: boolean;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    requiredPermissions: readonly GitCherryPickCommitPermission[];
    runtimeEntry: GitCherryPickCommitRuntimeEntry;
    risk: GitCherryPickCommitRisk;
    dispatch: "dry-run" | "runtime-git-executor";
    dryRun: boolean;
    wouldMutateRepository: true;
    unsafeSideEffects: true;
    outputEnvelope: {
        stdoutPreview: "";
        stderrPreview: "";
        parsed: false;
    };
    audit: {
        guard: "git-history-mutation-runtime-guard";
        event: "basicTool.git.cherryPickCommit.planned";
        governanceRequired: true;
        tapCanWrap: true;
        metadata: Readonly<Record<string, unknown>>;
    };
};
export type GitCherryPickCommitErrorBoundary = "input" | "scope" | "permission" | "governance" | "provider";
export type GitCherryPickCommitErrorCode = "MISSING_REPOSITORY_PATH" | "MISSING_TARGET_REF" | "INVALID_ARGUMENT" | "INVALID_CONTEXT" | "INVALID_TIMEOUT" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type GitCherryPickCommitError = {
    code: GitCherryPickCommitErrorCode;
    message: string;
    boundary: GitCherryPickCommitErrorBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type GitCherryPickCommitAuditEvent = {
    type: string;
    toolId: "git.cherryPickCommit";
    invocationId: string;
    dryRun: boolean;
    repositoryPath?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type GitCherryPickCommitResult = {
    ok: true;
    toolId: "git.cherryPickCommit";
    output: GitCherryPickCommitOutput;
    plan: GitCherryPickCommitPlan;
    audit: readonly GitCherryPickCommitAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "git.cherryPickCommit";
    error: GitCherryPickCommitError;
    audit: readonly GitCherryPickCommitAuditEvent[];
    events: readonly string[];
};
export type GitCherryPickCommitProviderRequest = {
    repositoryPath: string;
    args: readonly string[];
    timeoutMs?: number;
};
export type GitCherryPickCommitProviderResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type GitCherryPickCommitProvider = (request: GitCherryPickCommitProviderRequest, context: GitCherryPickCommitContext) => GitCherryPickCommitProviderResult | Promise<GitCherryPickCommitProviderResult>;
export declare const gitCherryPickCommitDescriptor: {
    readonly toolId: "git.cherryPickCommit";
    readonly toolKind: "git.cherryPickCommit";
    readonly capability: "cherry-pick-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 parseGitCherryPickCommitResult(providerResult: GitCherryPickCommitProviderResult | undefined, target: GitCherryPickCommitTarget): GitCherryPickCommitEnvelope;
export declare function planGitCommitCherryPick(request?: GitCherryPickCommitRequest): GitCherryPickCommitResult;
export declare const planGitCherryPickCommit: typeof planGitCommitCherryPick;
export declare function executeGitCherryPickCommit(request?: GitCherryPickCommitRequest): Promise<GitCherryPickCommitResult>;
