import type { DiscoveryResult } from '../middleware/types.ts'; interface DiscoverOptions { /** If true, throw an error when no documents are found. Default: false */ throwOnEmpty?: boolean; } /** * Discover all documents in a directory tree * * Scans the given root directory recursively for all folders containing * a valid settings.json file. Skips common non-document folders like * node_modules, .git, etc. * * @param rootDir - The root directory to scan (defaults to cwd) * @param options - Discovery options * @returns Discovery result with all found documents and any errors */ export declare function discoverDocuments(rootDir?: string, options?: DiscoverOptions): Promise; /** * Find the best redirect path when root doesn't exist * * Returns the first path alphabetically that is a top-level path * (e.g., /about, /blog rather than /blog/post-1) */ export declare function findDefaultRedirect(sortedPaths: string[]): string | null; export {}; //# sourceMappingURL=discover.d.ts.map