import { Plugin } from "../../plugin/types.mjs"; import { AppConfig, EnvValue } from "../../configure/config/types.mjs"; //#region src/cli/shared/config-loader.d.ts /** * App config whose `env` entries have been resolved to the values that get * deployed: the `{ value, allowSecretReason }` form accepted in `defineConfig` * is unwrapped during loading, so nothing downstream can deploy a wrapper * object or the reason string alongside the value. */ export type ResolvedEnvAppConfig = Omit & { env?: Record; }; /** Loaded configuration with resolved path. */ export type LoadedConfig = ResolvedEnvAppConfig & { path: string; }; export interface LoadConfigOptions { /** Import cache-busting value for callers that reload the config module after a rebuild. */ importNonce?: string; } /** * Load Tailor configuration file and associated plugins. * @param configPath - Optional explicit config path * @param options - Optional module import behavior. * @returns Loaded config, plugins, and config path */ export declare function loadConfig(configPath?: string, options?: LoadConfigOptions): Promise<{ config: LoadedConfig; plugins: Plugin[]; }>; //#endregion