import type { ScreenComparison, ElementConfig } from './types.js'; import { ScreenResult } from './screen-result.js'; import type { Page } from '@playwright/test'; /** * @deprecated Use `createScreen` from the package root instead. * `defineTypedScreen` will be removed in the next major version. */ export interface TypedScreenConfig { name: string; blankScreenPath: string; elementConfigs: TElements; baseDir?: string | undefined; debug?: boolean | undefined; } type ExtractElementNames = T[number]['name']; /** * @deprecated Use `createScreen` from the package root instead. * `TypedScreenResult` will be removed in the next major version. */ export declare class TypedScreenResult extends ScreenResult { private elementNames; constructor(comparison: ScreenComparison, elementNames: Set, page?: Page); element>(name: TName): ReturnType; } /** * @deprecated Use `createScreen` from the package root instead. * `defineTypedScreen` will be removed in the next major version. */ export declare function defineTypedScreen(config: { name: string; baseDir: string; blankScreen?: string; elements: TElements; debug?: boolean; }): TypedScreenConfig; export {}; //# sourceMappingURL=typed-screen.d.ts.map