/** * E2E Test Runner - TypeScript Test Loader * * Loads and converts TypeScript DSL test files to unified format */ import type { DiscoveredTest, Logger, TestPriority, UnifiedTestDefinition } from '../types'; interface TSTestMetadata { priority?: TestPriority; tags?: string[]; timeout?: number; retries?: number; skip?: boolean; skipReason?: string; depends?: string[]; } interface TSTestVariables { [key: string]: string | number | boolean | object | unknown[]; } interface TSTestDefinition extends TSTestMetadata { variables?: V; setup?: (ctx: unknown) => Promise; execute: (ctx: unknown) => Promise; verify?: (ctx: unknown) => Promise; teardown?: (ctx: unknown) => Promise; } /** * Load a single TypeScript test file */ export declare function loadTSTest(filePath: string, logger?: Logger): Promise; /** * Load multiple TypeScript test files */ export declare function loadTSTests(tests: DiscoveredTest[], logger?: Logger): Promise; /** * Get test metadata from TypeScript file without fully executing */ export declare function getTSTestMetadata(filePath: string): Promise<{ name: string; priority?: TestPriority; tags?: string[]; }>; /** * Create the e2e function that TypeScript tests use * This is a factory function that wraps test definitions with metadata */ export declare function createE2EFunction(): (name: string, definition: TSTestDefinition) => TSTestDefinition & { _name: string; }; /** * Check if a file is a valid TypeScript test file */ export declare function isValidTSTestFile(filePath: string): boolean; export {}; //# sourceMappingURL=ts-loader.d.ts.map