/**
 * Browser extension configuration.
 */
export function getBrowserConfig() {
    return {
        browserName: process.env.BROWSER_NAME ?? "chromium",
        headless: process.env.BROWSER_HEADLESS === "true" ? true : false,
        viewport: {
            width: Number(process.env.BROWSER_VIEWPORT_WIDTH) || 1280,
            height: Number(process.env.BROWSER_VIEWPORT_HEIGHT) || 720,
        },
        navigationTimeout: Number(process.env.BROWSER_NAVIGATION_TIMEOUT) || 60_000,
        actionTimeout: Number(process.env.BROWSER_ACTION_TIMEOUT) || 5_000,
        outputDir: process.env.BROWSER_OUTPUT_DIR ?? ".spectral/browser-output",
        debug: process.env.BROWSER_DEBUG === "true" ? true : false,
    };
}
