/** * E2E Test Runner - Base Adapter * * Abstract base class for all adapters */ import type { AdapterConfig, AdapterContext, AdapterStepResult, Logger } from '../types'; /** * Abstract base class for E2E test adapters */ export declare abstract class BaseAdapter { protected config: AdapterConfig; protected logger: Logger; protected connected: boolean; constructor(config: AdapterConfig, logger: Logger); /** * Get the adapter name for logging */ abstract get name(): string; /** * Connect to the underlying service */ abstract connect(): Promise; /** * Disconnect from the underlying service */ abstract disconnect(): Promise; /** * Execute an action on the adapter */ abstract execute(action: string, params: Record, ctx: AdapterContext): Promise; /** * Check if the service is healthy */ abstract healthCheck(): Promise; /** * Check if the adapter is connected */ isConnected(): boolean; /** * Execute with duration measurement */ protected measureDuration(fn: () => Promise): Promise<{ result: T; duration: number; }>; /** * Create a successful result */ protected successResult(data: unknown, duration: number): AdapterStepResult; /** * Create a failed result */ protected failResult(error: Error, duration: number): AdapterStepResult; /** * Log adapter action */ protected logAction(action: string, params?: Record): void; /** * Log action result */ protected logResult(action: string, success: boolean, duration: number): void; } /** * Helper to run assertions on adapter results */ export declare function runAdapterAssertions(data: unknown, assertions: unknown, assertionRunner: (data: unknown, assertions: unknown) => void): void; /** * Helper to capture values from adapter results */ export declare function captureValues(data: unknown, capture: Record | undefined, ctx: AdapterContext, getValueFn: (data: unknown, path: string) => unknown): void; //# sourceMappingURL=base.adapter.d.ts.map