import type { RenderResult } from '../types.js'; import { type SpyConfig } from './spy-helper.js'; interface RenderOptions { /** * Whether to clear existing stage containers before rendering. Defaults to true. */ clearStage?: boolean; /** * Attributes to set on the stage container element. Defaults to { class: 'stencil-component-stage' }. */ stageAttrs?: Record; /** * Wait for the component to be fully rendered before returning. * In browser mode, this polls until the element has dimensions. * Defaults to true. */ waitForReady?: boolean; /** * Spy configuration for this render call. Spies on methods, props, and lifecycle hooks. */ spyOn?: SpyConfig; /** * The CustomElementRegistry in which the component is defined. * Defaults to the global `customElements`. Pass a scoped registry when * testing Scoped Custom Element Registry scenarios so that * `whenDefined()` resolves against the correct registry. */ registry?: CustomElementRegistry; } /** * Poll until element has dimensions (is rendered/visible in real browser). * Accepts either an Element or a CSS selector string. * If a selector is provided, waits for the element to appear in the DOM first. */ export declare function waitForStable(elementOrSelector: Element | string, timeout?: number): Promise; /** * Poll until element exists in the DOM. * Accepts a CSS selector string and waits for a matching element to appear. * Works in both real browsers and mock DOM environments. */ export declare function waitForExist(selector: string, timeout?: number): Promise; /** * Render using Stencil's render or raw HTML template string */ export declare function render(template: any | string, options?: RenderOptions): Promise>; export {}; //# sourceMappingURL=render.d.ts.map