interface JestAxeResult { violations: unknown[]; raw: unknown; contract: unknown; } interface ContractTestResult { passes: string[]; failures: string[]; skipped: string[]; warnings?: string[]; } type StrictnessMode = 'minimal' | 'balanced' | 'strict' | 'paranoid'; /** * Runs static and interactions accessibility test on UI components. * @param {string} componentName The name of the component contract to test against * @param {HTMLElement} component The UI component to be tested * @param {string} url URL for Playwright E2E tests */ type TestAuditOptions = { strictness?: StrictnessMode; }; declare function testUiComponent(componentName: string, url: string | null, options?: TestAuditOptions): Promise; declare let runTest: () => Promise; /** * Cleanup function to close the shared Playwright browser * Call this in afterAll() or after all tests complete */ declare function cleanupTests(): Promise; export { cleanupTests, runTest, testUiComponent };