export interface BrowserConfig { browserName: "chromium" | "firefox" | "webkit"; headless: boolean; viewport: { width: number; height: number; }; navigationTimeout: number; actionTimeout: number; outputDir: string; debug: boolean; recordOutputDir: string; recordViewport?: { width: number; height: number; }; recordHeadless: boolean; } /** * Resolve a (possibly relative) output directory to an absolute path. * * - Absolute paths are returned as-is (normalized). * - Relative paths are resolved against `cwd` when provided, otherwise against * `$HOME` — matching the convention in `server/paths.ts` (the server process * runs from `$HOME`, so relative-to-home matches the user's mental model). * * This prevents browser screenshots/recordings from leaking into * `~/.spectral/browser-output/` when the extension is loaded from a server * whose `process.cwd()` is the home directory rather than the project root. */ /** * Resolve a (possibly relative) output directory to an absolute path. * * - Absolute paths are returned as-is (normalized). * - Relative paths are resolved against `cwd` when provided, otherwise against * `$HOME` — matching the convention in `server/paths.ts` (the server process * runs from `$HOME`, so relative-to-home matches the user's mental model). * * This prevents browser screenshots/recordings from leaking into * `~/.spectral/browser-output/` when the extension is loaded from a server * whose `process.cwd()` is the home directory rather than the project root. */ export declare function resolveOutputDir(input: string, cwd?: string): string; export declare function getBrowserConfig(): BrowserConfig; //# sourceMappingURL=config.d.ts.map