import { ModuleInfo, ApiEndpoint, DatabaseOperation, ErrorPattern, CodePattern } from '../types'; /** * Parse a TypeScript/JavaScript file and extract detailed information. * Uses regex-based parsing for zero-dependency operation. * Falls back gracefully if file cannot be parsed. */ export declare function parseModule(filePath: string): ModuleInfo; export declare function detectApiEndpoints(content: string, filePath: string): ApiEndpoint[]; export declare function detectDatabaseOperations(content: string, filePath: string): DatabaseOperation[]; export declare function detectErrorPatterns(content: string, filePath: string): ErrorPattern[]; export interface ParamPropertyAccess { name: string; isMethod: boolean; valueHint?: string; subProperties?: string[]; } export interface ParameterUsageInfo { paramName: string; properties: ParamPropertyAccess[]; isIterable: boolean; isDestructured: boolean; destructuredNames: string[]; isSpread: boolean; } /** * Analyze which properties/methods are accessed on each parameter within a function body. * Used by the Writer to generate test values with the correct shape. */ export declare function analyzeParameterUsage(body: string, paramNames: string[]): ParameterUsageInfo[]; /** * Extract the body of a named function from source content. * Returns the body string or empty string if not found. */ export declare function extractNamedFunctionBody(content: string, funcName: string): string; export declare function detectCodePatterns(content: string, filePath: string): CodePattern[]; //# sourceMappingURL=parser.d.ts.map