/** * ADRFlow Templates * * Standard ADR templates for markdown export. * Supports multiple formats: MADR, Nygard, and custom. * * @module adrflow/core/templates */ import type { ADR } from './types.js'; /** * Supported ADR template formats */ export declare const TemplateFormat: { /** MADR - Markdown Any Decision Records (most detailed) */ readonly MADR: "madr"; /** Michael Nygard's original format (simple and popular) */ readonly NYGARD: "nygard"; /** Minimal format for quick decisions */ readonly MINIMAL: "minimal"; }; export type TemplateFormat = (typeof TemplateFormat)[keyof typeof TemplateFormat]; /** * Options for markdown export */ export interface ExportOptions { /** Template format to use */ format?: TemplateFormat; /** Include YAML front matter */ frontMatter?: boolean; /** Include table of contents */ toc?: boolean; /** Include related files section */ includeFiles?: boolean; /** Include alternatives section */ includeAlternatives?: boolean; } /** * Generates a filename for an ADR following conventions * Format: NNNN-title-in-kebab-case.md */ export declare function generateFilename(adr: ADR): string; /** * Exports an ADR to MADR format * Full template with all sections */ export declare function toMADR(adr: ADR, options?: ExportOptions): string; /** * Exports an ADR to Michael Nygard's format * Simple and concise */ export declare function toNygard(adr: ADR, options?: ExportOptions): string; /** * Exports an ADR to minimal format * Just the essentials */ export declare function toMinimal(adr: ADR): string; /** * Exports an ADR to markdown using the specified format */ export declare function toMarkdown(adr: ADR, options?: ExportOptions): string; /** * Exports multiple ADRs to a single markdown document */ export declare function toMarkdownIndex(adrs: readonly ADR[]): string; //# sourceMappingURL=templates.d.ts.map