import { AgentFunctionResult } from '../agent-core/index.js';
import { Agent } from '../agents/index.js';
import { AgentFunctionBase } from './utils/index.js';
interface WriteScriptFuncParameters {
    namespace: string;
    description: string;
    arguments: string;
    code: string;
}
export declare class WriteScriptFunction extends AgentFunctionBase<WriteScriptFuncParameters> {
    static allowedLibs: string[];
    name: string;
    description: string;
    parameters: any;
    buildExecutor({ context }: Agent<unknown>): (params: WriteScriptFuncParameters, rawParams?: string) => Promise<AgentFunctionResult>;
    private onSuccess;
    private onError;
    private extractRequires;
    private onErrorCannotCreateInAgentNamespace;
    private onErrorCannotRequireLib;
    static formatSupportedLibraries(): string;
}
export {};
