import { DynamicStructuredTool } from '@langchain/core/tools';
import { z } from 'zod';
import { type ToolExecutionObserver } from './observer.js';
/**
 * Environment variable that must be set to '1' to enable runShell.
 * This opt-in prevents accidental shell access in default deployments.
 */
export declare const YAGR_ENABLE_SHELL_ENV = "YAGR_ENABLE_SHELL";
export declare function isShellEnabled(): boolean;
export declare function createRunShellTool(observer?: ToolExecutionObserver): DynamicStructuredTool<z.ZodObject<{
    command: z.ZodString;
    cwd: z.ZodOptional<z.ZodString>;
    timeoutMs: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    command: string;
    timeoutMs: number;
    cwd?: string | undefined;
}, {
    command: string;
    cwd?: string | undefined;
    timeoutMs?: number | undefined;
}>, {
    command: string;
    timeoutMs: number;
    cwd?: string | undefined;
}, {
    command: string;
    cwd?: string | undefined;
    timeoutMs?: number | undefined;
}, string, unknown, "runShell">;
//# sourceMappingURL=run-shell.d.ts.map