import type * as React from 'react'; /** * Playwright JSX object structure that mimics Playwright's jsx-runtime output. * This is the internal structure Playwright expects when mounting components. */ type PlaywrightJsxObject = { __pw_type: 'jsx'; type: T; props: React.JSX.IntrinsicElements[T]; key: string | null; }; /** * Creates a wrapper around a component with styling and animation controls. * * This wrapper: * 1. Wraps component in a div with TEST_WRAPPER_CLASS for screenshot targeting * 2. Applies padding and fit-content sizing for better visual testing * 3. Injects global styles to disable CSS transform animations * 4. Supports custom width and rootStyle options * * The wrapper uses only string element types ('div', 'style') because * Playwright blocks function components defined in test context. * See createPlaywrightJsxObject documentation for details. */ export declare function createComponentWrapper(component: React.JSX.Element, options?: { width?: number | string; rootStyle?: React.CSSProperties; }): PlaywrightJsxObject<"div">; export {};