import { IPicGo } from '../types';
export declare class ScriptHandler {
    private ctx;
    private scriptCache;
    private readonly stages;
    constructor(ctx: any);
    refreshCache(): Promise<void>;
    runStage(stage: string, extra?: Record<string, any>): Promise<void>;
    private createSandbox;
}
export declare function runScript(ctx: IPicGo, script: string, extra: Record<string, any>): Promise<any>;
