export declare class CodeValidationError extends Error { constructor(message: string); } export declare function validateCodeInput(input: unknown): { script: string; files: Record | null; }; export declare function stringifyReturnValue(value: unknown): string; export declare function formatCodeResult(value: unknown, logs?: string[], options?: { maxBytes?: number; onSpill?: (full: string) => string | null; }): { text: string; content: Array<{ type: "text"; text: string; }>; }; export declare function formatCodeError(error: string, options?: { logs?: string[]; waves?: number; calls?: number; maxBytes?: number; onSpill?: (full: string) => string | null; }): { text: string; content: Array<{ type: "text"; text: string; }>; isError: true; }; //# sourceMappingURL=format.d.ts.map