/** * HTTP Mock Type Definitions */ export type MockStrategy = 'legacy-axios' | 'msw-modern' | 'simple-axios' | 'user-configurable'; export interface MockResponse { status?: number; statusText?: string; headers?: Record; data?: any; delay?: number; } export interface AxiosResponse { data: any; status: number; statusText: string; headers: Record; config: Record; request: Record; } export interface RequestMatcher { method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS'; url: string | RegExp; headers?: Record; body?: any; } export interface MockHttpClientConfig { strategy?: MockStrategy; defaultResponse?: any; defaultStatus?: number; simulateErrors?: boolean; responseDelay?: number; presetData?: Record; } export interface MockHttpClient { get(url: string, config?: any): Promise; post(url: string, data?: any, config?: any): Promise; put(url: string, data?: any, config?: any): Promise; delete(url: string, config?: any): Promise; patch(url: string, data?: any, config?: any): Promise; request(config?: any): Promise; cleanup?(): void; } export interface UserMockAxios extends MockHttpClient { __set?(url: string, data: any, status?: number, reject?: boolean): void; } //# sourceMappingURL=mockTypes.d.ts.map