export interface DocumentTemplate { id: string; name: string; content: string; } export interface TemplateFolder { id: string; name: string; templates: DocumentTemplate[]; } export interface TemplateLibrary { version: 1; folders: TemplateFolder[]; } export declare const MAX_TEMPLATE_NAME = 120; export declare const MAX_TEMPLATE_CONTENT = 1000000; export declare class TemplateError extends Error { status: number; constructor(status: number, message: string); } export declare function templateName(value: unknown): string; export declare function templateContent(value: unknown): string; export declare function readTemplateLibrary(docsPath: string): TemplateLibrary; export declare function writeTemplateLibrary(docsPath: string, library: TemplateLibrary): void; export declare function getTemplateFolder(library: TemplateLibrary, id: string): TemplateFolder; export declare function ensureUniqueTemplateName(items: { id: string; name: string; }[], name: string, except?: string): void; export declare function contentFromTemplate(docsPath: string, id: unknown, title: string): string; //# sourceMappingURL=documentTemplates.d.ts.map