import type { NoteMeta } from '../../types/index.js';
import type { NoteTag } from '../../types/common/index.js';
/** Directory where context notes are stored for a project. */
export declare function contextDir(projectId: string): string;
/** Directory where tagged notes (with frontmatter) are stored. */
export declare function notesDir(projectId: string): string;
/** Sanitize a key to use as a safe filename (no path traversal). */
export declare function sanitizeKey(key: string): string;
/** Generate a short preview from content (first 120 chars of first line). */
export declare function preview(content: string): string;
/** Read the metadata sidecar for a note. Returns null if not found. */
export declare function readMeta(projectId: string, safeKey: string): Promise<NoteMeta | null>;
/** Write the metadata sidecar for a note. */
export declare function writeMeta(projectId: string, safeKey: string, meta: NoteMeta): Promise<void>;
/** Delete both the .md and .meta.json files for a note. */
export declare function deleteNote(projectId: string, safeKey: string): Promise<void>;
/** List all note keys in the context directory. */
export declare function listNoteKeys(projectId: string): Promise<string[]>;
/** List all note filenames in the notes/ directory. */
export declare function listNoteFilenames(projectId: string): Promise<string[]>;
/** Check if a note has expired. */
export declare function isExpired(meta: NoteMeta): boolean;
/** Priority order for NoteTag-based sorting. */
export declare const TAG_PRIORITY: Record<NoteTag, number>;
/** Get the minimum priority tag from a list of tags. Lower number = higher priority. */
export declare function getMinPriority(tags: NoteTag[]): number;
/** Generate YAML frontmatter for a tagged note. */
export declare function generateFrontmatter(tags: NoteTag[], specId: string | undefined, createdAt: string): string;
/** Parse YAML frontmatter from a note's .md content. Returns null if none. */
export declare function parseFrontmatter(content: string): {
    tags: NoteTag[];
    specId?: string;
    createdAt?: string;
    resolvedAt?: string;
} | null;
//# sourceMappingURL=store.d.ts.map