export type GitInitializeRepositoryPermission = "git:write" | "filesystem:write";
export type GitInitializeRepositoryRiskCategory = "workspace-mutation";
export type GitInitializeRepositoryGuard = {
    allowed?: boolean;
    accepted?: boolean;
    reason?: string;
};
export type GitInitializeRepositoryContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: GitInitializeRepositoryGuard;
    allowedRepositoryRoots?: readonly string[];
    grantedPermissions?: readonly GitInitializeRepositoryPermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type GitInitializeRepositoryTarget = {
    repositoryPath: string;
    initialBranch?: string;
    bare: boolean;
    separateGitDir?: string;
};
export type GitInitializeRepositoryRequest = {
    target?: Partial<GitInitializeRepositoryTarget>;
    context?: GitInitializeRepositoryContext;
    provider?: GitInitializeRepositoryProvider;
    timeoutMs?: number;
    metadata?: Readonly<Record<string, unknown>>;
    runtimeId?: string;
    invocationId?: string;
    repositoryPath?: string;
    initialBranch?: string;
    bare?: boolean;
    separateGitDir?: string;
    dryRun?: boolean;
};
export type GitInitializeRepositoryRuntimeEntry = {
    owner: "runtime";
    port: "BaseToolExecutorPort.git.runGit";
    method: "runGit";
    binary: "git";
    argvMode: "fixed-initialize-repository";
    allowedSubcommand: "init";
};
export type GitInitializeRepositoryRisk = {
    category: GitInitializeRepositoryRiskCategory;
    riskLevel: "risky";
    mutatesRepository: true;
    mutatesWorkingTree: true;
    createsRepositoryMetadata: true;
    spawnsProcess: true;
    requiresTapApproval: true;
    runtimeOwnsExecution: true;
};
export type GitInitializeRepositoryEnvelope = {
    parser: "git-init-output-v1";
    repositoryPath: string;
    initialBranch?: string;
    bare: boolean;
    separateGitDir?: string;
    exitCode?: number;
    stdoutLineCount: number;
    stderrLineCount: number;
    operationHint?: string;
    initialized: boolean;
};
export type GitInitializeRepositoryOutput = {
    kind: "agentCore.basicTool.git.initializeRepository";
    target: GitInitializeRepositoryTarget;
    runtimeEntry: GitInitializeRepositoryRuntimeEntry;
    risk: GitInitializeRepositoryRisk;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    timeoutMs: number;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    exitCode?: number;
    stdout?: string;
    stderr?: string;
    permissionsRequired: readonly GitInitializeRepositoryPermission[];
    unsafeSideEffects: true;
    resultEnvelope: GitInitializeRepositoryEnvelope;
};
export type GitInitializeRepositoryPlan = {
    toolId: "git.initializeRepository";
    toolKind: "git.initializeRepository";
    capability: "initialize-repository";
    runtimeId: string;
    invocationId: string;
    repositoryPath: string;
    initialBranch?: string;
    bare: boolean;
    separateGitDir?: string;
    gitArgs: readonly string[];
    commandPreview: readonly string[];
    requiredPermissions: readonly GitInitializeRepositoryPermission[];
    runtimeEntry: GitInitializeRepositoryRuntimeEntry;
    risk: GitInitializeRepositoryRisk;
    dispatch: "dry-run" | "runtime-git-executor";
    dryRun: boolean;
    wouldMutateRepository: true;
    unsafeSideEffects: true;
    outputEnvelope: {
        stdoutPreview: "";
        stderrPreview: "";
        parsed: false;
    };
    audit: {
        guard: "git-repository-mutation-runtime-guard";
        event: "basicTool.git.initializeRepository.planned";
        governanceRequired: true;
        tapCanWrap: true;
        metadata: Readonly<Record<string, unknown>>;
    };
};
export type GitInitializeRepositoryErrorBoundary = "input" | "scope" | "permission" | "governance" | "provider";
export type GitInitializeRepositoryErrorCode = "MISSING_REPOSITORY_PATH" | "INVALID_ARGUMENT" | "INVALID_CONTEXT" | "INVALID_TIMEOUT" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type GitInitializeRepositoryError = {
    code: GitInitializeRepositoryErrorCode;
    message: string;
    boundary: GitInitializeRepositoryErrorBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type GitInitializeRepositoryAuditEvent = {
    type: string;
    toolId: "git.initializeRepository";
    invocationId: string;
    dryRun: boolean;
    repositoryPath?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type GitInitializeRepositoryResult = {
    ok: true;
    toolId: "git.initializeRepository";
    output: GitInitializeRepositoryOutput;
    plan: GitInitializeRepositoryPlan;
    audit: readonly GitInitializeRepositoryAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "git.initializeRepository";
    error: GitInitializeRepositoryError;
    audit: readonly GitInitializeRepositoryAuditEvent[];
    events: readonly string[];
};
export type GitInitializeRepositoryProviderRequest = {
    repositoryPath: string;
    args: readonly string[];
    timeoutMs?: number;
};
export type GitInitializeRepositoryProviderResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type GitInitializeRepositoryProvider = (request: GitInitializeRepositoryProviderRequest, context: GitInitializeRepositoryContext) => GitInitializeRepositoryProviderResult | Promise<GitInitializeRepositoryProviderResult>;
export declare const gitInitializeRepositoryDescriptor: {
    readonly toolId: "git.initializeRepository";
    readonly toolKind: "git.initializeRepository";
    readonly capability: "initialize-repository";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.gitBase.repository";
    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:write", "filesystem:write"];
    readonly defaultTimeoutMs: 30000;
    readonly maxTimeoutMs: 600000;
    readonly unsafeSideEffects: true;
};
export declare function parseGitInitializeRepositoryResult(providerResult: GitInitializeRepositoryProviderResult | undefined, target: GitInitializeRepositoryTarget): GitInitializeRepositoryEnvelope;
export declare function planGitRepositoryInitialization(request?: GitInitializeRepositoryRequest): GitInitializeRepositoryResult;
export declare const planGitInitializeRepository: typeof planGitRepositoryInitialization;
export declare function executeGitInitializeRepository(request?: GitInitializeRepositoryRequest): Promise<GitInitializeRepositoryResult>;
