export type GitMoveOrRenameFilePermission = "git:read" | "git:write" | "filesystem:read" | "filesystem:write";
export type GitMoveOrRenameFileGuard = {
    allowed?: boolean;
    accepted?: boolean;
    reason?: string;
};
export type GitMoveOrRenameFileContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: GitMoveOrRenameFileGuard;
    allowedRepositoryRoots?: readonly string[];
    grantedPermissions?: readonly GitMoveOrRenameFilePermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type GitMoveOrRenameFileTarget = {
    repositoryPath: string;
    sourcePath: string;
    destinationPath: string;
    force: boolean;
};
export type GitMoveOrRenameFileRequest = {
    target?: Partial<GitMoveOrRenameFileTarget>;
    context?: GitMoveOrRenameFileContext;
    provider?: GitMoveOrRenameFileProvider;
    timeoutMs?: number;
    metadata?: Readonly<Record<string, unknown>>;
    runtimeId?: string;
    invocationId?: string;
    repositoryPath?: string;
    sourcePath?: string;
    destinationPath?: string;
    force?: boolean;
    dryRun?: boolean;
};
export type GitMoveOrRenameFileRuntimeEntry = {
    owner: "runtime";
    port: "BaseToolExecutorPort.git.runGit";
    method: "runGit";
    binary: "git";
    argvMode: "fixed-move-or-rename-file-workspace-mutation";
    allowedSubcommand: "mv";
};
export type GitMoveOrRenameFileRisk = {
    category: "workspace-mutation";
    riskLevel: "risky";
    mutatesRepository: true;
    mutatesWorkingTree: true;
    mutatesIndex: true;
    movesTrackedFile: true;
    spawnsProcess: true;
    requiresTapApproval: true;
    runtimeOwnsExecution: true;
};
export type GitMoveOrRenameFileEnvelope = {
    parser: "git-mv-output-v1";
    sourcePath: string;
    destinationPath: string;
    force: boolean;
    exitCode?: number;
    stdoutLineCount: number;
    stderrLineCount: number;
    movedPairs: readonly {
        sourcePath: string;
        destinationPath: string;
    }[];
    unparsedLineCount: number;
};
export type GitMoveOrRenameFileOutput = {
    kind: "agentCore.basicTool.git.moveOrRenameFile";
    target: GitMoveOrRenameFileTarget;
    runtimeEntry: GitMoveOrRenameFileRuntimeEntry;
    risk: GitMoveOrRenameFileRisk;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    timeoutMs: number;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    exitCode?: number;
    stdout?: string;
    stderr?: string;
    permissionsRequired: readonly GitMoveOrRenameFilePermission[];
    unsafeSideEffects: true;
    movesTrackedFile: true;
    resultEnvelope: GitMoveOrRenameFileEnvelope;
};
export type GitMoveOrRenameFilePlan = {
    toolId: "git.moveOrRenameFile";
    toolKind: "git.moveOrRenameFile";
    capability: "move-or-rename-file";
    runtimeId: string;
    invocationId: string;
    repositoryPath: string;
    sourcePath: string;
    destinationPath: string;
    force: boolean;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    requiredPermissions: readonly GitMoveOrRenameFilePermission[];
    runtimeEntry: GitMoveOrRenameFileRuntimeEntry;
    risk: GitMoveOrRenameFileRisk;
    dispatch: "dry-run" | "runtime-git-executor";
    dryRun: boolean;
    wouldMutateWorkingTree: true;
    wouldMutateIndex: true;
    unsafeSideEffects: true;
    outputEnvelope: {
        stdoutPreview: "";
        stderrPreview: "";
        parsed: false;
    };
    audit: {
        guard: "git-mv-runtime-guard";
        event: "basicTool.git.moveOrRenameFile.planned";
        governanceRequired: true;
        tapCanWrap: true;
        metadata: Readonly<Record<string, unknown>>;
    };
};
export type GitMoveOrRenameFileErrorBoundary = "input" | "scope" | "permission" | "governance" | "provider";
export type GitMoveOrRenameFileErrorCode = "MISSING_REPOSITORY_PATH" | "MISSING_SOURCE_PATH" | "MISSING_DESTINATION_PATH" | "INVALID_ARGUMENT" | "INVALID_CONTEXT" | "UNSAFE_FILE_PATH" | "INVALID_TIMEOUT" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type GitMoveOrRenameFileError = {
    code: GitMoveOrRenameFileErrorCode;
    message: string;
    boundary: GitMoveOrRenameFileErrorBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type GitMoveOrRenameFileAuditEvent = {
    type: string;
    toolId: "git.moveOrRenameFile";
    invocationId: string;
    dryRun: boolean;
    repositoryPath?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type GitMoveOrRenameFileResult = {
    ok: true;
    toolId: "git.moveOrRenameFile";
    output: GitMoveOrRenameFileOutput;
    plan: GitMoveOrRenameFilePlan;
    audit: readonly GitMoveOrRenameFileAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "git.moveOrRenameFile";
    error: GitMoveOrRenameFileError;
    audit: readonly GitMoveOrRenameFileAuditEvent[];
    events: readonly string[];
};
export type GitMoveOrRenameFileProviderRequest = {
    repositoryPath: string;
    args: readonly string[];
    timeoutMs?: number;
};
export type GitMoveOrRenameFileProviderResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type GitMoveOrRenameFileProvider = (request: GitMoveOrRenameFileProviderRequest, context: GitMoveOrRenameFileContext) => GitMoveOrRenameFileProviderResult | Promise<GitMoveOrRenameFileProviderResult>;
export declare const gitMoveOrRenameFileDescriptor: {
    readonly toolId: "git.moveOrRenameFile";
    readonly toolKind: "git.moveOrRenameFile";
    readonly capability: "move-or-rename-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: "workspace-mutation";
    readonly permissionsRequired: readonly ["git:read", "git:write", "filesystem:read", "filesystem:write"];
    readonly defaultTimeoutMs: 30000;
    readonly maxTimeoutMs: 600000;
    readonly unsafeSideEffects: true;
};
export declare function parseGitMoveOrRenameFileResult(providerResult: GitMoveOrRenameFileProviderResult | undefined, target: GitMoveOrRenameFileTarget): GitMoveOrRenameFileEnvelope;
export declare function planGitMoveOrRenameFile(request?: GitMoveOrRenameFileRequest): GitMoveOrRenameFileResult;
export declare function executeGitMoveOrRenameFile(request?: GitMoveOrRenameFileRequest): Promise<GitMoveOrRenameFileResult>;
