import type { ReadonlyFS } from "../types.js";
import { type IndexBucket } from "./parse-bucket.js";
/** Outcome of one bucket's generation pass; `entryCount` is null when the bucket was skipped. */
export interface GeneratedIndex {
    bucket: IndexBucket;
    /** POSIX-shaped project-relative INDEX.md path, safe for user-visible output on Windows. */
    indexRelPath: string;
    entryCount: number | null;
}
/**
 * Regenerate INDEX.md for every learning-loop bucket that exists in the target project.
 *
 * @param projectPath - absolute target project root used to resolve write destinations
 * @param fs - read-only filesystem adapter rooted at the same project, used for parsing
 * @param bucketPaths - bucket-keyed relative directory paths, normally from `resolveIndexBucketPaths`
 * @returns one result per bucket in stable order; skipped buckets carry `entryCount: null`
 */
export declare function generateIndexes(projectPath: string, fs: ReadonlyFS, bucketPaths: Record<IndexBucket, string>): GeneratedIndex[];
//# sourceMappingURL=generate.d.ts.map