/**
 * Method-body pattern extraction — shared between grep-only and CodeGraph
 * backends. CodeGraph provides the call-graph piece via SQL; everything
 * else (event emission, DB writes, throws, async boundaries, branch points,
 * region slicing) is regex over raw source text. These patterns are
 * deliberately broad — adapters can refine per framework.
 *
 * Patterns covered for v1: TypeScript / JavaScript. Python / Go / Java
 * adapters add their own pattern sets per language.
 */
import type { MethodFactSheet } from '../interface.js';
/** Slice a method body into the canonical PRECONDITIONS/EXECUTE/POSTCONDITIONS/EVENTS regions. */
export declare function sliceBody(body: string): MethodFactSheet['bodyTextSliced'];
/** Extract event names emitted from a TS/JS method body. */
export declare function extractEmits(body: string): string[];
/** Extract Prisma-style DB writes from a TS/JS method body. */
export declare function extractDbWrites(body: string): MethodFactSheet['dbWrites'];
/** Extract external system calls from a TS/JS method body. */
export declare function extractExternalCalls(body: string): MethodFactSheet['externalCalls'];
/** Extract throw statements (the type of error being thrown). */
export declare function extractThrows(body: string): string[];
/** Find async boundaries (await / Promise.all / Promise.race). */
export declare function extractAsyncBoundaries(body: string): MethodFactSheet['asyncBoundaries'];
/** Count branch points — if / else if / switch case / catch / ternary. */
export declare function countBranchPoints(body: string): number;
export declare function extractCallNames(body: string): string[];
//# sourceMappingURL=method-patterns.d.ts.map