import type { Page } from "playwright";
export interface DiscoveredEndpoint {
    url: string;
    method: string;
    status: number;
    resourceType: string;
    responseSize: number;
    responseTime: number;
    hasAuth: boolean;
}
export interface ApiDiscoveryOptions {
    /** Duration to monitor network traffic (ms) */
    durationMs?: number;
    /** Filter to only XHR/fetch requests */
    onlyXhr?: boolean;
    /** Filter URLs by pattern */
    urlPattern?: string | RegExp;
}
/**
 * Discover API endpoints by monitoring network traffic during page navigation.
 * Useful for generating API health check scenarios from actual network activity.
 */
export declare function discoverApiEndpoints(page: Page, options?: ApiDiscoveryOptions): Promise<DiscoveredEndpoint[]>;
/**
 * Generate API check scenarios from discovered endpoints.
 * Returns CreateScenarioInput objects ready to insert into the DB.
 */
export declare function generateApiScenarios(endpoints: DiscoveredEndpoint[]): Array<{
    name: string;
    description: string;
    type: string;
    apiUrl: string;
    method: string;
    expectedStatus: number;
    tags: string[];
    priority: string;
}>;
/**
 * Group endpoints by base URL pattern.
 */
export declare function groupEndpoints(endpoints: DiscoveredEndpoint[]): Record<string, DiscoveredEndpoint[]>;
/**
 * Summarize discovered endpoints.
 */
export declare function summarizeEndpoints(endpoints: DiscoveredEndpoint[]): string;
//# sourceMappingURL=api-discovery.d.ts.map