import type { rest } from "@codesandbox/api"; import type { Event } from "@codesandbox/pitcher-common"; import { Disposable } from "@codesandbox/pitcher-common"; import type { ClientOptions, SandpackClient } from "@codesandbox/sandpack-client"; import type { BrowserFSClient } from "../FSClient"; import type { FilesState } from "../FilesState"; import type { BrowserFileClient } from "../file/FileClient"; export type EvaluationStrategy = "edit-delayed" | "edit-instant" | "save"; type Sandbox = Pick; export declare class Sandpack extends Disposable { private sandbox; private fsClient; private fileState; client: SandpackClient | undefined; prevPkgJson: Record | undefined; private bundlerUrl; private lastUpdateTimer; private evaluationStrategy; private onMessageEmitter; onMount: Event; constructor(sandbox: Sandbox, fsClient: BrowserFSClient, fileClient: BrowserFileClient, fileState: FilesState); private getNpmRegistries; setEvaluationStrategy(strategy: EvaluationStrategy): void; updateSandbox(sandbox: Partial): void; private createSetup; moduleViewOptions: Record; private initializeLegacyModuleViewListener; getOptions(): ClientOptions; mount(iframe: HTMLIFrameElement, url?: string): Promise; update(reason: "edit" | "save"): void; } export {}; //# sourceMappingURL=Sandpack.d.ts.map