import type { PlaygroundWorkerEndpoint, WorkerBootOptions, MountDescriptor } from './playground-worker-endpoint'; export type { MountDescriptor, WorkerBootOptions }; import type { WebClientMixin } from './playground-client'; type PHPRemoteApi = WebClientMixin & Pick; export declare const serviceWorkerUrl: URL; /** * Start remote.html's PHP host and expose its client API to the embedding window. * * This document and the PHP worker stay on the app origin. PHP keeps access to * the site's OPFS files or user-picked directory handles there. With a separate * origin configured, the rendered WordPress iframe uses wordPressSiteUrl; this * document and PHP do not move. * * Finish activating the app service worker before starting PHP's module worker. * WebKit can interrupt that worker's script download if a service-worker update * takes over during the download, leaving the embed on its "Try again" screen. * * The returned API's boot() method starts PHP and connects HTTP requests to it. * With separate origins it creates a hidden WordPress-origin request iframe; * with one origin a dedicated runtime uses the existing service-worker listener. * Same-origin shared runtimes receive requests directly through MessagePorts. * The WordPress request connection is separate from the full client API exposed * to the embedding window: rendered WordPress does not receive that API here. */ export declare function bootPlaygroundRemote(): Promise>>;