/** * Utilities for generating incrementing numbered filenames. * Used by session-based artifact storage to create files like 001-feature.md. */ /** * Get the next available number in a directory. * Scans existing .md files and finds the highest numeric prefix. * Returns 1 if directory is empty or doesn't exist. * * @param dirPath - Directory to scan for numbered files * @returns Next available number (1, 2, 3, ...) */ export declare function getNextNumber(dirPath: string): number; export declare function buildNumberedFilename(number: number, description: string): string; /** * Get the next numbered file path in a directory. * Combines getNextNumber() and buildNumberedFilename(). * * @param dirPath - Directory to scan * @param description - Description for the filename * @returns Full path to the new numbered file */ export declare function getNextNumberedFilePath(dirPath: string, description: string): string;