import { GeneratedArtifacts, type RouteArtifact } from "../lib/generated-artifacts.js"; import type { PageMeta } from "../lib/types.js"; export declare class GeneratedRouteManager { private readonly outputDir; private readonly artifacts; private generatedSectionIndexSlugs; private pendingStaleMdxRoutes; constructor(outputDir: string, artifacts: GeneratedArtifacts); private outputPath; routeForMdxSource(source: string): string | undefined; sectionIndexSlugs(): Set; replaceSectionIndexSlugs(slugs: Iterable): void; replaceMdxRoutes(realPages: PageMeta[]): Promise; removeMdxRoute(source: string): Promise; removeOwnedRoute(slug: string): Promise; removeStaleMdxRoutes(realPages: PageMeta[], removeOwnedRoute: (slug: string) => Promise, previousRoutes?: readonly RouteArtifact[]): Promise; cleanupStaleSectionIndexPages(nextSlugs: Set, occupiedSlugs: Set, removeEmptyDirs: (dir: string, stopDir: string) => Promise): Promise; private removeSectionIndexPage; /** Best-effort removal of now-empty directories up to (not incl.) stopDir. */ removeEmptyDirsUpTo(dir: string, stopDir: string): Promise; }