import { PrivateRunLocation, RunLocation } from '../services/abstract-check-runner.js'; import type { Region } from '../index.js'; import { ReporterType } from '../reporters/reporter.js'; /** * Stops a retired run location before any API call, with the message the * backend returns. A `--location` flag is invalid input (exit 2); a * `cli.runLocation` from the Checkly config is invalid configuration (exit 1). */ export declare function rejectRetiredRunLocation(region: string, source: 'flag' | 'config'): void; export declare function prepareRunLocation(configOptions: { runLocation?: keyof Region; privateRunLocation?: string; } | undefined, cliFlags: { runLocation?: keyof Region; privateRunLocation?: string; } | undefined, api: any, accountId: string): Promise; export declare function preparePrivateRunLocation(privateLocationSlugName: string, api: any, accountId: string): Promise; export declare function prepareReportersTypes(reporterFlag: ReporterType[] | undefined, cliReporters?: ReporterType[]): ReporterType[]; export declare function validateDetachReporterTypes(reporterTypes: ReporterType[]): void; /** * Resolves the max failures limit for a run: the `--max-failures` flag wins * over `cli.maxFailures` from the config. A configured limit does not apply * to detached runs, which never wait for results, or to snapshot updates, * where checks the run stops waiting for would silently keep their old * snapshots. The flag itself is rejected together with those options. */ export declare function prepareMaxFailures(maxFailuresFlag: number | undefined, configMaxFailures: number | undefined, { detach, updateSnapshots }?: { detach?: boolean; updateSnapshots?: boolean; }): { maxFailures?: number; notice?: string; }; export declare function splitChecklyAndPlaywrightFlags(args: string[]): { checklyFlags: string[]; playwrightFlags: string[]; };