import { showOnboardingHexclaveConfigValue } from "./config-authoring.js"; //#region src/config-eval.d.ts /** * Thrown when a config file evaluates successfully but its exported `config` * isn't a usable shape (missing, or not an object / "show-onboarding" string). * Distinct from the underlying loader errors jiti throws, so callers can tell a * malformed config apart from a file that simply failed to load. */ declare class ConfigFileEvalError extends Error { constructor(message: string); } /** * Walks up from `dir` to find the nearest `package.json` and returns the * best SDK package to use for the `HexclaveConfig` type import. */ declare function detectImportPackageFromDir(dir: string): string | undefined; /** A config object, or the `"show-onboarding"` sentinel that stands in for one. */ type ParsedConfigValue = Record | typeof showOnboardingHexclaveConfigValue; /** * Evaluates config file content using jiti and returns the exported `config` * value. * * WARNING: This executes arbitrary code via `jiti.evalModule` — only use on * content that is fully operator-controlled (local filesystem). Never call * this on untrusted input (e.g. content fetched from a remote repository). */ declare function evalConfigFileContent(content: string, filePath: string): ParsedConfigValue; //#endregion export { ConfigFileEvalError, ParsedConfigValue, detectImportPackageFromDir, evalConfigFileContent }; //# sourceMappingURL=config-eval.d.ts.map