import { DcEvent } from "./DcEvent.js"; /** * Dispatched once when the engine failed and will not become usable on its * own. The embedder should replace the engine view with an error state; a new * attempt is possible with `unload` followed by `load`. */ export interface EngineErrorEvent extends DcEvent { /** * - `unreachable`: the engine page did not start within the alive timeout, * e.g. because the engine server is down or the page failed to load. * - `not-ready`: the engine page started but did not become ready within * the ready timeout. * - `engine-error`: the engine reported a fatal error. */ reason: "unreachable" | "not-ready" | "engine-error"; /** Whether the engine failed before or after it was ready. */ phase: "startup" | "runtime"; /** A technical description for logs, not meant to be shown to users. */ message: string; }