/** * `defineEvent()` 创建的事件未在 `DeckConfig.events` 中显式列出时, * `publish()` 会抛此错。避免 module-load-order 隐式注册。 */ export declare class UndeclaredHostEventError extends Error { readonly eventName: string; constructor(eventName: string); } /** * 在 Init / Bind 阶段调用 `HostEvent.publish()` 时抛 —— transport 尚未就绪。 * Setup / Ready 之后调用是安全的(fire-and-forget,无 replay)。 */ export declare class EventNotBoundError extends Error { readonly eventName: string; constructor(eventName: string); } /** * webview 调 `client.ready()` 时 framework bridge 不在 `window` 上(host preload * 漏装 `exposeDeckBridge()`)。 */ export declare class DeckClientNotReadyError extends Error { constructor(message?: string); } /** * `client.invoke(name, ...)` 时远端 hostServices handler 抛错的封装。 * 保留原 error message,附带 remoteName / 可选 code 让 webview 侧便于分类。 */ export declare class DeckRemoteError extends Error { readonly remoteName: string; readonly code?: string; constructor(remoteName: string, message: string, code?: string); } //# sourceMappingURL=errors.d.ts.map