import { n as TuiApp, t as MountOptions } from "../render-Bfq_buOu.mjs"; import { ComponentPublicInstance } from "vue"; //#region src/testing.d.ts interface TestContentFrame { readonly dynamic: string; readonly staticOutput: string; } interface TestHostBridgeOptions { readonly onFrame?: (frame: TestContentFrame) => void; } interface TestHostBridge { mount(app: TuiApp, options?: MountOptions): ComponentPublicInstance; writeInput(data: string | Uint8Array): Promise; suspend(): Promise; resume(): Promise; } declare function createTestHostBridge(options?: TestHostBridgeOptions): TestHostBridge; //#endregion //#region src/test-events.d.ts type TestEventSink = (line: string) => void; declare function setTestEventSink(sink: TestEventSink): void; /** * Events the runtime itself reports. Named here rather than written as string * literals on both sides: renaming one used to type-check cleanly and turn every * waiter that expected it into a wall-clock timeout in a child process. */ declare const RUNTIME_TEST_EVENT: Readonly<{ readonly terminalAcquired: "terminal:acquired"; readonly terminalReleased: "terminal:released"; readonly paintCommitted: "paint:committed"; readonly hmrUpdateReceived: "hmr:update-received"; readonly hmrUpdateApplied: "hmr:update-applied"; readonly hmrError: "hmr:error"; }>; type RuntimeTestEvent = (typeof RUNTIME_TEST_EVENT)[keyof typeof RUNTIME_TEST_EVENT]; declare function emitTestEvent(event: string, data?: unknown): void; //#endregion export { RUNTIME_TEST_EVENT, type RuntimeTestEvent, type TestContentFrame, type TestHostBridge, type TestHostBridgeOptions, createTestHostBridge, emitTestEvent, setTestEventSink };