import { type ShellArgumentAssemblyOutput } from "../shell.argumentAssembly/core.js";
export type ShellCommandGenerationPermission = "shell:generate";
export type ShellCommandGenerationBoundary = "input" | "permission" | "contract" | "governance";
export type ShellCommandShell = "sh" | "bash" | "zsh";
export type ShellCommandGenerationContext = {
    runtimeId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: {
        allowed?: boolean;
        accepted?: boolean;
        reason?: string;
    };
    grantedPermissions?: readonly ShellCommandGenerationPermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type ShellCommandGenerationRequest = {
    argv?: readonly string[];
    assembledArguments?: ShellArgumentAssemblyOutput;
    shell?: ShellCommandShell;
    workingDirectory?: string;
    environmentKeys?: readonly string[];
    context?: ShellCommandGenerationContext;
};
export type ShellCommandGenerationErrorCode = "MISSING_ARGUMENT_VECTOR" | "INVALID_ARGUMENT_VECTOR" | "INVALID_SHELL" | "INVALID_WORKING_DIRECTORY" | "INVALID_ENVIRONMENT" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED" | "PERMISSION_DENIED" | "REAL_EXECUTION_BLOCKED";
export type ShellCommandGenerationError = {
    code: ShellCommandGenerationErrorCode;
    message: string;
    boundary: ShellCommandGenerationBoundary;
    publicSafe: true;
    internalDetailExposed: false;
};
export type ShellCommandGenerationAuditEvent = {
    type: string;
    toolId: "shell.commandGeneration";
    invocationId: string;
    dryRun: boolean;
    commandPreview?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type ShellCommandGenerationOutput = {
    kind: "agentCore.basicTool.shell.commandGeneration";
    shell: ShellCommandShell;
    commandLine: string;
    argv: readonly string[];
    executable: string;
    workingDirectory?: string;
    environmentKeys: readonly string[];
    requiredPermission: ShellCommandGenerationPermission;
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: true;
    unsafeSideEffects: false;
};
export type ShellCommandGenerationResult = {
    ok: true;
    toolId: "shell.commandGeneration";
    output: ShellCommandGenerationOutput;
    audit: readonly ShellCommandGenerationAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "shell.commandGeneration";
    error: ShellCommandGenerationError;
    audit: readonly ShellCommandGenerationAuditEvent[];
    events: readonly string[];
};
export declare const shellCommandGenerationDescriptor: {
    readonly toolId: "shell.commandGeneration";
    readonly capability: "shell-command-generation";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.shellBase.shellGeneration";
    readonly defaultDryRun: true;
    readonly tapOwnsApproval: true;
    readonly requiredPermission: "shell:generate";
    readonly unsafeSideEffects: false;
};
export declare function generateShellCommand(request?: ShellCommandGenerationRequest): ShellCommandGenerationResult;
