import { C as createKittyKeyboardController, D as matchKittyQueryResponse, O as resolveFlags, _ as createText, c as createFocusController, d as TuiRoot, f as TuiStatic, g as createRoot, h as createBox, i as FocusControllerForTest, k as stripKittyQueryResponsesAndTrailingPartial, l as TuiBox, m as TuiTransform, p as TuiText, r as renderToStringWithScreenReader, u as TuiNode, v as createTextLeaf, w as hasCompleteKittyQueryResponse, x as KittyKeyboardController, y as AppContext } from "./render-to-string-WECUP9vJ.mjs"; import { PropType } from "vue"; import { Node } from "yoga-layout"; //#region src/host/yoga.d.ts type YogaCarrier = TuiRoot | TuiBox | TuiText | TuiStatic | TuiTransform; declare const yogaNodeTracker: { reset(): void; snapshot(): { created: number; freed: number; live: number; }; }; declare function attachYoga(node: YogaCarrier): void; //#endregion //#region src/paint/screen-reader.d.ts interface ScreenReaderOptions { parentRole?: string; skipStaticElements?: boolean; } /** * Render a TUI node tree to a plain-text string suitable for screen readers. * * Ported from Ink's `renderNodeToScreenReaderOutput`. * * - `display: none` nodes are skipped. * - Text nodes have their content squashed (no ANSI). * - Box/root nodes recursively render children, joined by separator based on flexDirection. * - Nodes with `internal_accessibility` get role and state info prepended. */ declare function renderScreenReaderOutput(node: TuiNode, options?: ScreenReaderOptions): string; //#endregion //#region src/hmr.d.ts interface DevErrorInfo { message: string; stack?: string; loc?: { file: string; line: number; column: number; }; } type DevState = { type: "ok"; } | { type: "error"; error: DevErrorInfo; } | { type: "update"; paths: string[]; }; interface HotContext { on(event: string, cb: (payload: unknown) => void): void; send(event: string, data?: unknown): void; } declare function isDevConnected(): boolean; declare function connectDevtools(hot: HotContext): void; //#endregion //#region src/io/frame-sink.d.ts /** * Internal, test-only frame observer. * * The `@vue-tui/testing` `render()` helper needs to capture each committed * frame's CONTENT, with no terminal-control escapes mixed in. Reverse- * engineering frames out of the stdout byte stream is fragile: stdout must stay * byte-faithful to Ink (cursor hide/show, bracketed-paste enable/disable, BSU/ * ESU, etc.), so any escape the runtime legitimately writes leaks into the * captured frames. * * Instead, the runtime exposes this per-app frame sink: a callback that the * commit path invokes with the EXACT content chunks it writes to stdout (the * accumulated `` history chunk, then the dynamic frame), in write order * — but NOT the escapes. The helper passes a sink via a Symbol-keyed mount * option (so it never appears on the public `MountOptions` type, keeping that * Ink-faithful) and builds `frames[]` / `lastFrame()` from the callbacks. * * The sink is closure-captured per `mount()` call — there is NO module-global * mutable state — so concurrent test files / multiple apps are fully isolated. * * This is intentionally NOT a public API: it lives behind `@vue-tui/runtime/ * internal` and is keyed by a unique symbol the runtime reads off the loosely * typed mount options. */ type FrameSink = (chunk: string) => void; /** * Symbol key for the internal frame sink on the mount options object. Unique * (created via `Symbol(...)`, not `Symbol.for(...)`) so it can never collide * with a user-supplied key and is invisible to normal property enumeration. */ declare const INTERNAL_FRAME_SINK: unique symbol; //#endregion //#region src/components/error-overview.d.ts declare function messageForNonError(value: unknown): string; //#endregion export { type AppContext, type DevErrorInfo, type DevState, type FocusControllerForTest, type FrameSink, INTERNAL_FRAME_SINK, type KittyKeyboardController, type ScreenReaderOptions, type TuiBox, type TuiNode, type TuiRoot, type TuiText, attachYoga, connectDevtools, createBox, createFocusController, createKittyKeyboardController, createRoot, createText, createTextLeaf, hasCompleteKittyQueryResponse, isDevConnected, matchKittyQueryResponse, messageForNonError, renderScreenReaderOutput, renderToStringWithScreenReader, resolveFlags, stripKittyQueryResponsesAndTrailingPartial, yogaNodeTracker };