/** * Shared test utilities for Loquix component tests. */ /** * Returns a Promise that resolves with the next occurrence of a named event. * Automatically cleans up the listener. */ export declare function waitForEvent(el: EventTarget, eventName: string, timeout?: number): Promise>; /** * Queries an element by its `part` attribute inside a component's shadow root. */ export declare function getShadowPart(el: Element, partName: string): HTMLElement | null; /** * Queries all elements by their `part` attribute inside a component's shadow root. */ export declare function getShadowParts(el: Element, partName: string): HTMLElement[]; /** * Dispatches a keyboard event on the given element. */ export declare function simulateKeyboard(el: EventTarget, key: string, options?: Partial): void; /** * Returns the elements assigned to a named slot inside a component's shadow root. */ export declare function getSlotContent(el: Element, slotName: string): Element[]; /** * Waits for the next animation frame + microtask flush. */ export declare function nextFrame(): Promise; //# sourceMappingURL=test-utils.d.ts.map