import { Plug } from "../plug.ts"; import { Manifest } from "../types.ts"; export type SandboxFactory = (plug: Plug) => Sandbox; export interface Sandbox { manifest?: Manifest; init(): Promise; invoke(name: string, args: any[]): Promise; stop(): void; }