/** * Stealth configuration and platform detection for cloakbrowser. * Mirrors Python cloakbrowser/config.py. */ declare let WRAPPER_VERSION: string; export { WRAPPER_VERSION }; export declare const CHROMIUM_VERSION = "146.0.7680.177.5"; export declare const PLATFORM_CHROMIUM_VERSIONS: Record; export declare const BINARY_SIGNING_PUBKEYS: string[]; export declare function normalizeRequestedVersion(version?: string): string | undefined; export declare function getChromiumVersion(): string; export declare function getPlatformTag(): string; export declare function getCacheDir(): string; export declare function getBinaryDir(version?: string, pro?: boolean): string; export declare function getBinaryPath(version?: string, pro?: boolean): string; export declare function checkPlatformAvailable(): void; export declare const DOWNLOAD_BASE_URL: string; export declare const GITHUB_API_URL = "https://api.github.com/repos/CloakHQ/cloakbrowser/releases"; export declare const GITHUB_DOWNLOAD_BASE_URL = "https://github.com/CloakHQ/cloakbrowser/releases/download"; export declare function getArchiveExt(): string; export declare function getArchiveName(tag?: string): string; export declare function getDownloadUrl(version?: string): string; export declare function getFallbackDownloadUrl(version?: string): string; export declare function getEffectiveVersion(pro?: false): string; export declare function getEffectiveVersion(pro: boolean): string | null; export declare function parseVersion(v: string): number[]; export declare function versionNewer(a: string, b: string): boolean; export declare function getLocalBinaryOverride(): string | undefined; export declare const HEADLESS_NO_VIEWPORT_MIN_VERSION: string | null; /** * Whether headless can launch without an emulated viewport on the resolved * binary. Only binaries at or above HEADLESS_NO_VIEWPORT_MIN_VERSION qualify; * older ones keep DEFAULT_VIEWPORT. A local override binary * (CLOAKBROWSER_BINARY_PATH) is unknown-version, so stay on the safe path. */ export declare function binarySupportsHeadlessNoViewport(licenseKey?: string, browserVersion?: string): boolean; /** * Whether the wrapper may auto-add `--start-maximized`. Gated on the same * threshold as the no_viewport shim: only binaries whose headless surface-fix + * headed screen-clamp make a maximized window coherent (`outer == screen`). * Below it, maximizing headless while the CDP viewport stays at 1280x720 yields * `outerWidth < innerWidth` — a bot tell — so the flag must NOT be added. Shares * HEADLESS_NO_VIEWPORT_MIN_VERSION; own name so the two can diverge later. * Python, JS and .NET mirror this gate. */ export declare function binarySupportsMaximizedWindow(licenseKey?: string, browserVersion?: string): boolean; export declare const HTTP_PROXY_INLINE_AUTH_MIN_VERSION: Record; /** * Whether the resolved binary accepts inline HTTP proxy credentials. The * capability is a function of the binary version; `licenseKey` only resolves * which version launches (Pro build vs free default), exactly like * binarySupportsHeadlessNoViewport. A declared pin wins, else a valid Pro * license resolves to the Pro build (which ships the patch), else the free * per-platform default — then it compares to this platform's floor. Below the * floor, credentialed HTTP proxies fall back to Playwright's proxy dict. A * local override with no declared version is unknown-version, so fail safe. * Python, JS and .NET mirror this gate. */ export declare function binarySupportsHttpProxyInlineAuth(licenseKey?: string, browserVersion?: string): boolean; export declare const IGNORE_DEFAULT_ARGS: string[]; export declare const DEFAULT_VIEWPORT: { width: number; height: number; }; export declare function getDefaultStealthArgs(): string[]; //# sourceMappingURL=config.d.ts.map