export type GitRemoveTrackedFilePermission = "git:read" | "git:write" | "filesystem:read" | "filesystem:write";
export type GitRemoveTrackedFileGuard = {
    allowed?: boolean;
    accepted?: boolean;
    reason?: string;
};
export type GitRemoveTrackedFileContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: GitRemoveTrackedFileGuard;
    allowedRepositoryRoots?: readonly string[];
    grantedPermissions?: readonly GitRemoveTrackedFilePermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type GitRemoveTrackedFileTarget = {
    repositoryPath: string;
    filePath: string;
    keepWorkingTree: boolean;
    force: boolean;
};
export type GitRemoveTrackedFileRequest = {
    target?: Partial<GitRemoveTrackedFileTarget>;
    context?: GitRemoveTrackedFileContext;
    provider?: GitRemoveTrackedFileProvider;
    timeoutMs?: number;
    metadata?: Readonly<Record<string, unknown>>;
    runtimeId?: string;
    invocationId?: string;
    repositoryPath?: string;
    filePath?: string;
    keepWorkingTree?: boolean;
    force?: boolean;
    dryRun?: boolean;
};
export type GitRemoveTrackedFileRuntimeEntry = {
    owner: "runtime";
    port: "BaseToolExecutorPort.git.runGit";
    method: "runGit";
    binary: "git";
    argvMode: "fixed-remove-tracked-file-workspace-mutation";
    allowedSubcommand: "rm";
};
export type GitRemoveTrackedFileRisk = {
    category: "workspace-mutation" | "destructive";
    riskLevel: "risky" | "destructive";
    mutatesRepository: true;
    mutatesWorkingTree: boolean;
    mutatesIndex: true;
    removesTrackedFile: true;
    keepsWorkingTreeFile: boolean;
    spawnsProcess: true;
    requiresTapApproval: true;
    runtimeOwnsExecution: true;
};
export type GitRemoveTrackedFileEnvelope = {
    parser: "git-rm-output-v1";
    filePath: string;
    keepWorkingTree: boolean;
    force: boolean;
    exitCode?: number;
    stdoutLineCount: number;
    stderrLineCount: number;
    removedPaths: readonly string[];
    cachedOnlyPaths: readonly string[];
    unparsedLineCount: number;
};
export type GitRemoveTrackedFileOutput = {
    kind: "agentCore.basicTool.git.removeTrackedFile";
    target: GitRemoveTrackedFileTarget;
    runtimeEntry: GitRemoveTrackedFileRuntimeEntry;
    risk: GitRemoveTrackedFileRisk;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    timeoutMs: number;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    exitCode?: number;
    stdout?: string;
    stderr?: string;
    permissionsRequired: readonly GitRemoveTrackedFilePermission[];
    unsafeSideEffects: true;
    removesTrackedFile: true;
    resultEnvelope: GitRemoveTrackedFileEnvelope;
};
export type GitRemoveTrackedFilePlan = {
    toolId: "git.removeTrackedFile";
    toolKind: "git.removeTrackedFile";
    capability: "remove-tracked-file";
    runtimeId: string;
    invocationId: string;
    repositoryPath: string;
    filePath: string;
    keepWorkingTree: boolean;
    force: boolean;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    requiredPermissions: readonly GitRemoveTrackedFilePermission[];
    runtimeEntry: GitRemoveTrackedFileRuntimeEntry;
    risk: GitRemoveTrackedFileRisk;
    dispatch: "dry-run" | "runtime-git-executor";
    dryRun: boolean;
    wouldMutateWorkingTree: boolean;
    wouldMutateIndex: true;
    unsafeSideEffects: true;
    outputEnvelope: {
        stdoutPreview: "";
        stderrPreview: "";
        parsed: false;
    };
    audit: {
        guard: "git-rm-runtime-guard";
        event: "basicTool.git.removeTrackedFile.planned";
        governanceRequired: true;
        tapCanWrap: true;
        metadata: Readonly<Record<string, unknown>>;
    };
};
export type GitRemoveTrackedFileErrorBoundary = "input" | "scope" | "permission" | "governance" | "provider";
export type GitRemoveTrackedFileErrorCode = "MISSING_REPOSITORY_PATH" | "MISSING_FILE_PATH" | "INVALID_ARGUMENT" | "INVALID_CONTEXT" | "UNSAFE_FILE_PATH" | "INVALID_TIMEOUT" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type GitRemoveTrackedFileError = {
    code: GitRemoveTrackedFileErrorCode;
    message: string;
    boundary: GitRemoveTrackedFileErrorBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type GitRemoveTrackedFileAuditEvent = {
    type: string;
    toolId: "git.removeTrackedFile";
    invocationId: string;
    dryRun: boolean;
    repositoryPath?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type GitRemoveTrackedFileResult = {
    ok: true;
    toolId: "git.removeTrackedFile";
    output: GitRemoveTrackedFileOutput;
    plan: GitRemoveTrackedFilePlan;
    audit: readonly GitRemoveTrackedFileAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "git.removeTrackedFile";
    error: GitRemoveTrackedFileError;
    audit: readonly GitRemoveTrackedFileAuditEvent[];
    events: readonly string[];
};
export type GitRemoveTrackedFileProviderRequest = {
    repositoryPath: string;
    args: readonly string[];
    timeoutMs?: number;
};
export type GitRemoveTrackedFileProviderResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type GitRemoveTrackedFileProvider = (request: GitRemoveTrackedFileProviderRequest, context: GitRemoveTrackedFileContext) => GitRemoveTrackedFileProviderResult | Promise<GitRemoveTrackedFileProviderResult>;
export declare const gitRemoveTrackedFileDescriptor: {
    readonly toolId: "git.removeTrackedFile";
    readonly toolKind: "git.removeTrackedFile";
    readonly capability: "remove-tracked-file";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.gitBase.file";
    readonly defaultDryRun: true;
    readonly defaultDispatch: "dry-run";
    readonly tapOwnsApproval: true;
    readonly requiresTapApproval: true;
    readonly runtimeEntryPort: "BaseToolExecutorPort.git.runGit";
    readonly operationRisk: "destructive";
    readonly permissionsRequired: readonly ["git:read", "git:write", "filesystem:read", "filesystem:write"];
    readonly defaultTimeoutMs: 30000;
    readonly maxTimeoutMs: 600000;
    readonly unsafeSideEffects: true;
};
export declare function parseGitRemoveTrackedFileResult(providerResult: GitRemoveTrackedFileProviderResult | undefined, target: GitRemoveTrackedFileTarget): GitRemoveTrackedFileEnvelope;
export declare function planGitRemoveTrackedFile(request?: GitRemoveTrackedFileRequest): GitRemoveTrackedFileResult;
export declare function executeGitRemoveTrackedFile(request?: GitRemoveTrackedFileRequest): Promise<GitRemoveTrackedFileResult>;
