export type GitResetStagingOrCommitPermission = "git:read" | "git:write" | "filesystem:read" | "filesystem:write";
export type GitResetStagingOrCommitGuard = {
    allowed?: boolean;
    accepted?: boolean;
    reason?: string;
};
export type GitResetStagingOrCommitContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: GitResetStagingOrCommitGuard;
    allowedRepositoryRoots?: readonly string[];
    grantedPermissions?: readonly GitResetStagingOrCommitPermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type GitResetStagingOrCommitAction = "staging" | "commit";
export type GitResetCommitMode = "soft" | "mixed" | "hard" | "merge" | "keep";
export type GitResetStagingOrCommitTarget = {
    repositoryPath: string;
    action: GitResetStagingOrCommitAction;
    pathspecs: readonly string[];
    targetRef?: string;
    mode?: GitResetCommitMode;
};
export type GitResetStagingOrCommitRequest = {
    target?: Partial<GitResetStagingOrCommitTarget>;
    context?: GitResetStagingOrCommitContext;
    provider?: GitResetStagingOrCommitProvider;
    timeoutMs?: number;
    metadata?: Readonly<Record<string, unknown>>;
    runtimeId?: string;
    invocationId?: string;
    repositoryPath?: string;
    action?: GitResetStagingOrCommitAction;
    pathspecs?: readonly string[];
    targetRef?: string;
    mode?: GitResetCommitMode;
    dryRun?: boolean;
};
export type GitResetStagingOrCommitRuntimeEntry = {
    owner: "runtime";
    port: "BaseToolExecutorPort.git.runGit";
    method: "runGit";
    binary: "git";
    argvMode: "fixed-reset-staging-or-commit-mutation";
    allowedSubcommand: "reset";
};
export type GitResetStagingOrCommitRisk = {
    category: "workspace-mutation" | "history-mutation" | "destructive";
    riskLevel: "risky" | "dangerous";
    mutatesRepository: true;
    mutatesWorkingTree: boolean;
    mutatesIndex: true;
    spawnsProcess: true;
    requiresTapApproval: true;
    runtimeOwnsExecution: true;
};
export type GitResetStagingOrCommitEnvelope = {
    parser: "git-reset-exit-v1";
    action: GitResetStagingOrCommitAction;
    pathspecs: readonly string[];
    targetRef?: string;
    mode?: GitResetCommitMode;
    exitCode?: number;
    stdoutLineCount: number;
    stderrLineCount: number;
};
export type GitResetStagingOrCommitOutput = {
    kind: "agentCore.basicTool.git.resetStagingOrCommit";
    target: GitResetStagingOrCommitTarget;
    runtimeEntry: GitResetStagingOrCommitRuntimeEntry;
    risk: GitResetStagingOrCommitRisk;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    timeoutMs: number;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    exitCode?: number;
    stdout?: string;
    stderr?: string;
    permissionsRequired: readonly GitResetStagingOrCommitPermission[];
    unsafeSideEffects: true;
    resultEnvelope: GitResetStagingOrCommitEnvelope;
};
export type GitResetStagingOrCommitPlan = {
    toolId: "git.resetStagingOrCommit";
    toolKind: "git.resetStagingOrCommit";
    capability: "reset-staging-or-commit";
    runtimeId: string;
    invocationId: string;
    repositoryPath: string;
    action: GitResetStagingOrCommitAction;
    pathspecs: readonly string[];
    targetRef?: string;
    mode?: GitResetCommitMode;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    requiredPermissions: readonly GitResetStagingOrCommitPermission[];
    runtimeEntry: GitResetStagingOrCommitRuntimeEntry;
    risk: GitResetStagingOrCommitRisk;
    dispatch: "dry-run" | "runtime-git-executor";
    dryRun: boolean;
    wouldMutateIndex: true;
    wouldMutateWorkingTree: boolean;
    unsafeSideEffects: true;
    outputEnvelope: {
        stdoutPreview: "";
        stderrPreview: "";
        parsed: false;
    };
    audit: {
        guard: "git-reset-runtime-guard";
        event: "basicTool.git.resetStagingOrCommit.planned";
        governanceRequired: true;
        tapCanWrap: true;
        metadata: Readonly<Record<string, unknown>>;
    };
};
export type GitResetStagingOrCommitErrorBoundary = "input" | "scope" | "permission" | "governance" | "provider";
export type GitResetStagingOrCommitErrorCode = "MISSING_REPOSITORY_PATH" | "MISSING_REQUIRED_FIELD" | "MISSING_TARGET_REF" | "INVALID_ARGUMENT" | "INVALID_CONTEXT" | "INVALID_ACTION" | "INVALID_MODE" | "INVALID_TARGET_REF" | "INVALID_PATHSPEC" | "PATHSPEC_OUTSIDE_SCOPE" | "INVALID_TIMEOUT" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type GitResetStagingOrCommitError = {
    code: GitResetStagingOrCommitErrorCode;
    message: string;
    boundary: GitResetStagingOrCommitErrorBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type GitResetStagingOrCommitAuditEvent = {
    type: string;
    toolId: "git.resetStagingOrCommit";
    invocationId: string;
    dryRun: boolean;
    repositoryPath?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type GitResetStagingOrCommitResult = {
    ok: true;
    toolId: "git.resetStagingOrCommit";
    output: GitResetStagingOrCommitOutput;
    plan: GitResetStagingOrCommitPlan;
    audit: readonly GitResetStagingOrCommitAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "git.resetStagingOrCommit";
    error: GitResetStagingOrCommitError;
    audit: readonly GitResetStagingOrCommitAuditEvent[];
    events: readonly string[];
};
export type GitResetStagingOrCommitProviderRequest = {
    repositoryPath: string;
    args: readonly string[];
    timeoutMs?: number;
};
export type GitResetStagingOrCommitProviderResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type GitResetStagingOrCommitProvider = (request: GitResetStagingOrCommitProviderRequest, context: GitResetStagingOrCommitContext) => GitResetStagingOrCommitProviderResult | Promise<GitResetStagingOrCommitProviderResult>;
export declare const gitResetStagingOrCommitDescriptor: {
    readonly toolId: "git.resetStagingOrCommit";
    readonly toolKind: "git.resetStagingOrCommit";
    readonly capability: "reset-staging-or-commit";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.gitBase.staging";
    readonly defaultDryRun: true;
    readonly defaultDispatch: "dry-run";
    readonly tapOwnsApproval: true;
    readonly requiresTapApproval: true;
    readonly runtimeEntryPort: "BaseToolExecutorPort.git.runGit";
    readonly operationRisk: "workspace-mutation-or-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 parseGitResetStagingOrCommitResult(providerResult: GitResetStagingOrCommitProviderResult | undefined, target: GitResetStagingOrCommitTarget): GitResetStagingOrCommitEnvelope;
export declare function planGitStagingOrCommitReset(request?: GitResetStagingOrCommitRequest): GitResetStagingOrCommitResult;
export declare function executeGitStagingOrCommitReset(request?: GitResetStagingOrCommitRequest): Promise<GitResetStagingOrCommitResult>;
