import { ValConfig } from "@valbuild/core"; /** * Read and evaluate a `val.config.{ts,js}` file from disk. * * Returns `null` if the file does not exist, and throws if it exists but does * not export a valid `config` object. * * Used by the Val CLI and by `@valbuild/language-server`, so that an editor * resolves project config exactly the way the CLI does. */ export declare function evalValConfigFile(projectRoot: string, configFileName: string): Promise; /** * Resolve the project's Val config, trying the TypeScript file first and * falling back to JavaScript. Mirrors what the CLI has always done at each of * its call sites. */ export declare function findAndEvalValConfigFile(projectRoot: string): Promise;