import { WebContainer } from '@webcontainer/api'; /** * Provide the promise resulting from `WebContainer.boot()` to be injected and used by components and composables. * * Keep in mind that [only one WebContainer instance can run at a time](https://webcontainers.io/api#%E2%96%B8-boot). * It is the responsibility of the consumer to make sure that the old instance has been torn down before booting another. * * @example * provideWebContainer(WebContainer.boot()) * // or * const { boot, isBooting } = useSandboxBoot() * provideWebContainer(boot) * * @param webContainerPromise the promise returned by `WebContainer.boot()` */ export declare const provideWebContainer: (webContainerPromise: Promise) => void; /** * Injects the web container promise using `WebContainerInjectionKey`. Used internally by `useSandbox()`. * * @throws Error if the web container promise has not been injected. */ export declare const injectWebContainer: () => Promise;