/** * Extracts governed Manifest command invocations from application source. * * Adapted from codebase-explorer * `src/reconcile/featureCompleteness/manifestInvocationExtractor.ts`. */ export interface ManifestInvocation { entity: string; command: string; intent: string; bodyFields: string[]; /** Approximate start index in source for line mapping. */ index: number; /** Raw argument / body slice when available for mismatch analysis. */ payloadSource: string; } export declare function extractAllManifestInvocations(content: string): ManifestInvocation[]; /** * Detect posts to `/api/manifest/{Entity}/commands/{command}` with a literal body. * e.g. apiPostJsonServer("/api/manifest/Dish/commands/update", { id, presentationImageUrl }) */ export declare function extractApiManifestPosts(content: string): ManifestInvocation[]; /** * Isolate the `body` property value from a runManifestCommand options object. * Literal `{ … }` → fields extracted. Helper / identifier / other expression → * expression text with empty fields (never fall back to outer option keys). */ export declare function extractRunManifestBody(optionsBlock: string): { payloadSource: string; bodyFields: string[]; }; /** * Detect generated Manifest client calls: entityCommandCamel(...) * e.g. recipeVersionSetPackaging(...) for RecipeVersion.setPackaging * * Builds a single reverse index (fn → intent) so large contracts stay O(files × hits), * not O(files × capabilities). */ export declare function extractGeneratedClientCalls(content: string, capabilityIds: ReadonlySet, fnIndex?: Map): ManifestInvocation[]; export declare function buildClientFunctionIndex(capabilityIds: ReadonlySet): Map; export declare function clientFunctionName(entity: string, command: string): string; export declare function readStringProp(block: string, key: string): string | undefined; export declare function extractBalancedBraces(content: string, openIndex: number): string; export declare function extractBalancedParens(content: string, openIndex: number): string; export { extractObjectFieldNames, objectLiteralHasKey, readObjectLiteralFieldExpression, scanObjectLiteralKeys, } from './object-literal-keys.js'; export type { ObjectLiteralKey } from './object-literal-keys.js'; export declare function lineAtIndex(content: string, index: number): number; export declare function escapeRegExp(s: string): string; //# sourceMappingURL=invocation-extractor.d.ts.map