/** * Auto-numbering utilities for spec-kit * * Provides functions to find the next available feature number * by scanning both spec directories and git branches. */ /** * Find the next available feature number by scanning spec directories and git branches. * * Scans both: * 1. The specs directory for existing feature directories (e.g., 001-feature, 042-another) * 2. Git branches (local and remote) for feature patterns * * Returns the maximum found number + 1, defaulting to 1 if no features exist. * * @param repoRoot - Absolute path to the repository root * @param specsDir - Name of the specs directory (e.g., 'specs') * @returns The next available feature number * * @example * ```typescript * const nextNum = await findNextFeatureNumber('/path/to/repo', 'specs'); * // Returns: 3 (if highest existing is 002) * ``` */ export declare function findNextFeatureNumber(repoRoot: string, specsDir: string): Promise; /** * Pad a feature number to a specified width. * * @param num - Feature number to pad * @param padding - Number of digits to pad to (default: 3) * @returns Zero-padded number string * * @example * ```typescript * padFeatureNumber(1); // '001' * padFeatureNumber(42); // '042' * padFeatureNumber(999); // '999' * padFeatureNumber(1, 4); // '0001' * ``` */ export declare function padFeatureNumber(num: number, padding?: number): string; //# sourceMappingURL=numbering.d.ts.map