import { type Static, Type } from "typebox";
import type { ShellTrust } from "../../engine-trust/shell-trust.ts";
import type { TruncationResult } from "./truncate.ts";
export declare const bashSchema: Type.TObject<{
    command: Type.TString;
    timeout: Type.TOptional<Type.TNumber>;
}>;
export declare const bashToolSystemPromptContribution: {
    readonly snippet: "Execute bash commands (ls, rg, find, etc.)";
    readonly guidelines: readonly ["PI_* env vars = current model + session details."];
    readonly fullGuidelines: readonly ["You can inspect PI_* environment variables for current model and session details."];
};
export type BashToolInput = Static<typeof bashSchema>;
/**
 * Result for programmatic callers such as codemode scripts. A non-zero exit code is an error result for the model, but scripts still resolve to this value.
 * `output` is not limited like the model-facing output: callers decide how much of it reaches the model.
 */
export declare const bashOutputSchema: Type.TObject<{
    output: Type.TString;
    truncated: Type.TBoolean;
    full_output_path: Type.TOptional<Type.TString>;
    exit_code: Type.TNumber;
    wall_time_seconds: Type.TNumber;
}>;
export type BashToolOutput = Static<typeof bashOutputSchema>;
export interface BashToolDetails {
    truncation?: TruncationResult;
    fullOutputPath?: string;
    trust?: ShellTrust;
}
export interface BashSpawnContext {
    command: string;
    cwd: string;
    env: NodeJS.ProcessEnv;
}
export type BashSpawnHook = (context: BashSpawnContext) => BashSpawnContext;
export interface ShellToolConfig {
    name: string;
    label: string;
    shellName: string;
    prompt: string;
    promptSnippet: string;
    promptGuidelines?: readonly string[];
    fullPromptGuidelines?: readonly string[];
    tempFilePrefix: string;
}
export declare const bashToolConfig: ShellToolConfig;
//# sourceMappingURL=bash-schema.d.ts.map