export declare function findVendorTemplatesDir(startDir?: string): string | null; /** Test hook: reset the cached vendor templates directory */ export declare function resetVendorTemplatesDirCache(): void; export interface TemplateLoadResult { content: string; /** Absolute path the template was loaded from */ sourcePath: string; /** Parsed frontmatter (id, title, standard, clauses, required_for) */ frontmatter: TemplateFrontmatter; /** Body content (after frontmatter) */ body: string; } export interface TemplateFrontmatter { id?: string; title?: string; standard?: string; clauses?: string[]; required_for?: string[]; [key: string]: unknown; } export declare function parseFrontmatter(content: string): { frontmatter: TemplateFrontmatter; body: string; }; /** * Resolve the filesystem path for a template ID. * Searches: * 1. Custom template dir (if provided) * 2. Templates from @memoarchitect/ontology */ export declare function resolveTemplatePath(templateId: string, customTemplateDir?: string): string | null; export declare function loadTemplate(templateId: string, customTemplateDir?: string): TemplateLoadResult | null; export declare function resolveIncludes(content: string, baseDir: string, customTemplateDir?: string, depth?: number): string; export declare function resolveProjectDirectives(content: string, projectMeta: Record): string; export interface BuiltinTemplateInfo { id: string; path: string; standard: string; frontmatter: TemplateFrontmatter; } export declare function listBuiltinTemplates(): BuiltinTemplateInfo[]; //# sourceMappingURL=template-resolver.d.ts.map