import { IScriptOptions } from "./IScriptOptions"; import { IUnsafe } from "./IUnsafe"; export declare class Script { id: string; code: string; sandbox: any; result: any; error: any; timeout: number; asyncTimeout: number; private timer; defer: Promise; resolve: (value?: any) => void; reject: (value?: any) => void; params: any; unsafe: IUnsafe; constructor(options: IScriptOptions); start(fn: Function): this; stop(): this; toJSON(): { id: string; code: string; result: any; error: any; timeout: number; asyncTimeout: number; params: any; unsafe: IUnsafe; }; }