export interface HttpTypesConfig { /** Glob patterns keyed by area name (e.g. "admin", "store"), relative to project root */ validatorGlobs: Record; /** Root directory for generated HTTP type files, relative to project root */ outputBase: string; /** tsconfig filename to look up from project root */ tsconfig: string; /** Source paths for generated import statements (package names or project-root-relative paths) */ importSources: { /** Module exporting FindParams, SelectParams */ commonRequest: string; /** Module exporting BaseFilterable, OperatorMap */ dal: string; }; /** Regex string (no surrounding slashes) that captures (area, routeDir) from a validator path */ validatorPathPattern: string; /** Only schemas whose export name starts with one of these prefixes are processed */ publicPrefixes: string[]; } export interface ResolvedHttpTypesConfig extends HttpTypesConfig { /** Absolute path to the project root (process.cwd()) */ projectRoot: string; } export declare class Config { /** Package defaults — used when no http-types.config.json is present */ static readonly DEFAULTS: HttpTypesConfig; private static readonly CONFIG_FILE_NAME; private static _instance; /** * Walks up the directory tree from `startDir` to find the nearest ancestor * (inclusive) that contains `http-types.config.json`. Returns the directory * path and parsed contents, or `undefined` if the file is not found. */ private static findConfigFile; /** * Builds a resolved config by deep-merging `override` over DEFAULTS. * When `override` is provided the config file is not read and `projectRoot` * is set to `process.cwd()`. When omitted, the nearest `http-types.config.json` * is found by searching upward from `process.cwd()`; its directory becomes * `projectRoot`. Falls back to `process.cwd()` when no config file is found. */ static load(override?: Partial): ResolvedHttpTypesConfig; /** * Returns the cached config, loading it from the config file on first call. */ static get(): ResolvedHttpTypesConfig; /** * Resets the cached config singleton. Primarily used in tests. */ static reset(): void; } //# sourceMappingURL=index.d.ts.map