import { LayoutTree } from '@wolf-tui/core'; interface PatchConfig { getLayoutTree: () => LayoutTree; getScheduleRender: () => (() => void) | null; } /** * Replace globalThis.Node/Element/Text/Comment/DocumentFragment with our real * classes so Svelte's init_operations() finds proper prototype getters via * Object.getOwnPropertyDescriptor(Node.prototype, 'firstChild'). * * With fragments:'tree' in svelte compiler, no HTML parser is needed — * Svelte generates from_tree() which calls document.createElement() directly. * * Must be called BEFORE Svelte's mount(). Call restoreGlobals() on cleanup. */ export declare function patchGlobals(patchConfig: PatchConfig): void; /** * Restore all globals patched by patchGlobals(). Idempotent. */ export declare function restoreGlobals(): void; export {}; //# sourceMappingURL=wolfie-document.d.ts.map