/** * DraftScanner — SPEC-06 Drafting Support Tools * * Scans chapter Markdown files for placeholder markers (TK, TODO, FIXME, CHECK) * and generates chapter checklists. */ /** A single placeholder marker found inside a chapter file. */ export interface PlaceholderMark { /** The marker keyword. */ marker: 'TK' | 'TODO' | 'FIXME' | 'CHECK'; /** Text after the colon inside the brackets, e.g. `[TK: write this scene]` → `write this scene`. Empty string when no note is present. */ note: string; /** Basename of the chapter file (e.g. `chapter-01.md`). */ chapterFilename: string; /** 1-based line number where the marker was found. */ lineNumber: number; /** The full trimmed line that contains the marker. */ context: string; } /** * Scans chapter Markdown files for placeholder markers and generates checklists. */ export declare class DraftScanner { private readonly projectPath; constructor(projectPath: string); /** * Find all placeholder markers in the `chapters/` directory. * * @param chapterFilter - When provided, only the chapter file whose * leading numeric prefix matches this number is scanned. * @returns Markers sorted by chapterFilename ASC, then lineNumber ASC. */ findPlaceholders(chapterFilter?: number): Promise; /** * Generate a structured checklist string for a single chapter. * * @param projectPath - Root path of the novel project (unused here but kept * for symmetry with the rest of the API — the class already holds it). * @param chapterNumber - Chapter number to check. * @returns A multi-line checklist string. */ static checkChapter(projectPath: string, chapterNumber: number): Promise; /** * Scan the text content of a single file for placeholder markers, * skipping lines inside code fences (` ``` `). */ private scanContent; } //# sourceMappingURL=draft-scanner.d.ts.map