import { tick } from 'svelte'; /** * Wait for Svelte to apply pending changes to the DOM. * * Runes update asynchronously: a click handler that sets state has NOT * touched the DOM by the time `click()` returns. Every assertion that * follows an interaction needs this, and forgetting it reads as "the handler * did nothing" rather than as a timing problem. */ export declare const flush: typeof tick; /** * Mount a component into a detached container and hand back the root element. * * Every test gets its own container and tears it down, because these components * write to `document` (scroll locks, key listeners) and a leak shows up as a * failure three tests later. */ export declare function render
>(Component: unknown, props: P): {
target: HTMLDivElement;
instance: Record