import type { CliMiddlewareFactory, DiscoveryGetter } from './types.ts'; /** * Middleware that checks if a URL path has duplicates in the discovery result. * If the path is found in the duplicates map, returns a 500 error. * * This is important because documents with duplicate paths (e.g., templates/slots * reused across multiple documents) cannot be served as standalone pages. * * @param getDiscovery - Getter function for the current discovery result * @returns Middleware handler * * @example * ```ts * let discovery = await discoverDocuments() * app.get('/*', checkDuplicatePath(() => discovery), ...) * ``` */ export declare const checkDuplicatePath: CliMiddlewareFactory<[getDiscovery: DiscoveryGetter]>; //# sourceMappingURL=checkDuplicatePath.d.ts.map