import { RenderOptions } from '@testing-library/react'; import type { ReactElement } from 'react'; import { SecurityLevel } from '../types/cia'; /** * Common widget test props with standard security levels * Used as baseline props for widget testing */ export declare const mockWidgetProps: { availabilityLevel: SecurityLevel; integrityLevel: SecurityLevel; confidentialityLevel: SecurityLevel; }; /** * Props for testing high security scenario */ export declare const mockHighSecurityProps: { availabilityLevel: SecurityLevel; integrityLevel: SecurityLevel; confidentialityLevel: SecurityLevel; }; /** * Props for testing low security scenario */ export declare const mockLowSecurityProps: { availabilityLevel: SecurityLevel; integrityLevel: SecurityLevel; confidentialityLevel: SecurityLevel; }; /** * Props for testing mixed security levels */ export declare const mockMixedSecurityProps: { availabilityLevel: SecurityLevel; integrityLevel: SecurityLevel; confidentialityLevel: SecurityLevel; }; /** * Props for testing Very High security scenario */ export declare const mockVeryHighSecurityProps: { availabilityLevel: SecurityLevel; integrityLevel: SecurityLevel; confidentialityLevel: SecurityLevel; }; /** * Custom render function with common providers * Currently no providers are needed, but this provides a consistent API * for future enhancements * * @param ui - React element to render * @param options - Additional render options * @returns Render result from @testing-library/react */ export declare function renderWidget(ui: ReactElement, options?: RenderOptions): import("@testing-library/react").RenderResult; /** * Wait for widget to finish loading * Checks that the loading indicator is no longer present * * @param testId - Base test ID of the widget * @throws Will throw if the loading state doesn't clear within timeout * * @example * await waitForWidgetLoad('widget-cost-estimation'); */ export declare function waitForWidgetLoad(testId: string): Promise; /** * Wait for widget content to be visible * Checks that the widget's content area is present * * @param testId - Base test ID of the widget * @throws Will throw if content doesn't appear within timeout * * @example * await waitForWidgetContent('widget-cost-estimation'); */ export declare function waitForWidgetContent(testId: string): Promise; /** * Wait for widget error state to be visible * Checks that the widget's error message is present * * @param testId - Base test ID of the widget * @throws Will throw if error doesn't appear within timeout * * @example * await waitForWidgetError('widget-cost-estimation'); */ export declare function waitForWidgetError(testId: string): Promise; //# sourceMappingURL=testUtils.d.ts.map