import type { DiagramSettings } from './config.js'; export interface ProjectConfigResult { /** The resolved settings (default export of the config file). */ settings: DiagramSettings; /** Absolute path of the config file actually loaded. */ path: string; } /** * Search `startDir` and each parent for a gridgram config file. Returns * the first match's absolute path or null. */ export declare function findProjectConfig(startDir: string): string | null; /** Load a config file at an absolute path. Inferred format from extension. */ export declare function loadConfigFile(path: string): Promise; /** * Convenience: find + load in one call. `explicitPath`, when given, * skips discovery. Returns null when no config is found (no error). */ export declare function loadProjectConfig(opts?: { cwd?: string; explicitPath?: string; }): Promise; //# sourceMappingURL=config-loader.d.ts.map