import type { EnvScope } from '../config/types.js'; /** * Options for discovering example scopes. */ interface DiscoverExampleScopesOptions { /** Extra exclude patterns (added to the default scan excludes). */ exclude?: string[]; /** Keys to ignore when building each scope's key set. */ ignore?: string[]; /** Regex patterns of keys to ignore when building each scope's key set. */ ignoreRegex?: RegExp[]; } /** * Discovers `.env.example`-style files in subdirectories of `cwd` and returns the * documented keys for each, scoped to the directory the file lives in. * * Files at the root of `cwd` are intentionally skipped: the root is already covered * by the primary comparison file, so only nested scopes are returned here. Excluded * directories (e.g. `node_modules`) are skipped using the same rules as the code scan. * * @param cwd - The directory to search from. * @param opts - Exclude and ignore configuration. * @returns One scope per discovered nested example file, sorted by directory depth (deepest first). */ export declare function discoverExampleScopes(cwd: string, opts?: DiscoverExampleScopesOptions): EnvScope[]; export {}; //# sourceMappingURL=exampleDiscovery.d.ts.map