import type { MiddlewareOptions } from './types'; export interface GlobalConfig extends MiddlewareOptions { /** Disable internal caching for paths and regexes (saves memory, costs CPU). */ disableCache?: boolean; /** Default mode applied to `maskSensitiveFields` when not overridden per call. */ mode?: 'mask' | 'allow'; } /** * Type-safe helper to define Maskify configuration in config files. * Narrows the return type so IDE autocomplete works inside the object literal. */ export declare function defineConfig(config: GlobalConfig): GlobalConfig; /** * Validates + narrows arbitrary config input into GlobalConfig shape. * Silently drops unknown keys rather than throwing, so a typo in a config * file can't crash an app at startup. */ export declare function validateConfig(raw: unknown): GlobalConfig; export declare class ConfigLoader { private static cached; static load(options?: { strict?: boolean; }): GlobalConfig; static reload(): GlobalConfig; } export declare const GlobalConfigLoader: typeof ConfigLoader; //# sourceMappingURL=config.d.ts.map