declare function defineDefineConfig(): (config: T) => T; type UserInputConfig = Record; interface ResolvedConfig { config: T; configFile: string; } /** * load *.config.ts */ type LoadConfigOptions = { /** * The directory to resolve the config file from. * * @default process.cwd() */ cwd?: string; /** * if the config file not found, throw error * if false, return empty config * @default true */ throwOnNotFound?: boolean; /** * whether to reuse the loaded module cache * * disable by default so repeated loads can pick up config changes in HMR/dev flows * when `jiti` is unavailable on native-TS runtimes, Node's module cache will apply * @default false */ moduleCache?: boolean; } & ({ /** * The name of the config file to load. * * load {name}.config.ts */ name: string; /** * full/relative config file path * override cwd/name.config.ts */ configFile?: string; } | { /** * The name of the config file to load. * * load {name}.config.ts */ name?: string; /** * full/relative config file path * override cwd/name.config.ts */ configFile: string; }); /** * load `{name}.config.ts` file * @param options */ declare function loadConfig(options: LoadConfigOptions): Promise>; export { defineDefineConfig, loadConfig }; export type { LoadConfigOptions, ResolvedConfig, UserInputConfig };