/** * ADF Manifest — parsing, trigger resolution, and module routing. * * Extracts structured manifest data from parsed ADF documents, resolves * which ON_DEMAND modules to load for a given task, and produces trigger * match reports for observability. */ import type { AdfDocument, Manifest, ManifestModule, BundleResult } from './types'; /** * Extract a Manifest from a parsed ADF document (manifest.adf). */ export declare function parseManifest(doc: AdfDocument): Manifest; /** * Format a ManifestModule back into an ON_DEMAND bullet string — the * inverse of parseTriggerEntry. Single source of truth for the bullet * format so writers (e.g. `adf suggest --emit-ops`) can't drift from what * parseTriggerEntry actually accepts. */ export declare function formatTriggerEntry(mod: ManifestModule): string; /** * Resolve which modules to load given a manifest and task keywords. * Always includes defaultLoad modules; adds ON_DEMAND modules whose * triggers match any keyword (case-insensitive). */ export declare function resolveModules(manifest: Manifest, taskKeywords: string[]): string[]; /** * Check if a single trigger matches a single keyword via exact or prefix stemming. * Prefix match requires minimum 4 chars and >=66% length ratio. */ export declare function isKeywordMatch(trigger: string, keyword: string): boolean; /** * Build a trigger match report for observability. * Shows which triggers matched which keywords and why each module was loaded. */ export declare function buildTriggerReport(manifest: Manifest, resolvedPaths: string[], taskKeywords: string[]): BundleResult['triggerMatches']; //# sourceMappingURL=manifest.d.ts.map