import type { NoteTag } from '../../types/index.js';
/** Parse YAML frontmatter from a markdown string. Returns parsed fields and body. */
export declare function extractFrontmatter(raw: string): {
    meta: Record<string, unknown>;
    body: string;
};
/** Build a YAML frontmatter block from a metadata object. */
export declare function buildFrontmatter(meta: Record<string, unknown>): string;
/** Strip frontmatter from content, returning only the body. */
export declare function stripFrontmatter(content: string): string;
/** Parse NoteTag[] from raw frontmatter tags array. Validates tags. */
export declare function parseTagsFromMeta(rawTags: unknown): NoteTag[];
/** Build the complete .md content string with frontmatter. */
export declare function buildNoteContent(body: string, meta: {
    key: string;
    tags: NoteTag[];
    specId?: string;
    createdAt: string;
    expiresAt?: string;
}): string;
//# sourceMappingURL=tags.d.ts.map