export declare const BASH_DEFAULT_TIMEOUT_SECONDS = 1800;
export declare const BASH_MAX_TIMEOUT_SECONDS = 1800;
export interface BashTimeoutDefaults {
    defaultSeconds: number;
    maxSeconds: number;
}
type EnvLike = Record<string, string | undefined>;
export declare function resolveBashTimeoutDefaults(env: EnvLike): BashTimeoutDefaults;
export interface BashToolInputLike {
    command: string;
    timeout?: number;
    [key: string]: unknown;
}
export declare function applyBashTimeout<TInput extends BashToolInputLike>(input: TInput, defaults: BashTimeoutDefaults): TInput;
export interface BashTimeoutPromptOptions {
    /**
     * `undefined` when no PTY bash tool is live (native Anthropic bash replaces
     * it). Nothing implements auto-detach then, so the policy must not promise
     * it — a prompt that describes impossible behavior is worse than a silent one.
     */
    readonly foregroundWindowSeconds?: number;
    /** True when the session routes shell tools through eval cells, so the call shape must be `tool.bash(`. */
    readonly evalOnly?: boolean;
}
/** The pre-diet timeout policy section; only presets that render full shared sections append it (senpi#5665). */
export declare function buildBashTimeoutPrompt(defaults: BashTimeoutDefaults, options?: BashTimeoutPromptOptions): string;
export {};
//# sourceMappingURL=timeout.d.ts.map