import type { Page } from 'playwright-core'; export declare const A11Y_STATE_PATH: string; export declare const A11Y_COOKIE_NAME = "hc_accessibility"; export declare const A11Y_DOMAIN = ".hcaptcha.com"; /** Renew / re-ask user when less than this many seconds remain */ export declare const A11Y_MIN_TTL_SECONDS = 600; /** Default max-age from hCaptcha Set-Cookie */ export declare const A11Y_DEFAULT_MAX_AGE = 43200; export type HcaptchaA11yCookie = { value: string; setAt: number; maxAge: number; expiresAt: number; domain?: string; path?: string; secure?: boolean; sameSite?: 'None' | 'Lax' | 'Strict'; }; export type HcaptchaA11yState = { hc_accessibility?: HcaptchaA11yCookie | null; hmt_id?: string; loginMethod?: string; updatedAt?: string; source?: string; [key: string]: unknown; }; export declare function loadA11yState(): HcaptchaA11yState; export declare function saveA11yState(state: HcaptchaA11yState): void; export declare function getA11yCookie(): HcaptchaA11yCookie | null; export declare function a11yTtlSeconds(hc?: HcaptchaA11yCookie | null): number; export declare function isA11yCookieValid(minTtl?: number): boolean; /** Agent should ask user for a fresh cookie when this returns true. */ export declare function needsA11yCookieFromUser(): boolean; export declare function setA11yCookieFromUser(value: string, opts?: { maxAge?: number; expiresAt?: number; source?: string; }): HcaptchaA11yCookie; export declare function playwrightCookiePayload(hc?: HcaptchaA11yCookie | null): Array<{ name: string; value: string; domain: string; path: string; secure: boolean; sameSite: 'None' | 'Lax' | 'Strict'; expires: number; }>; /** * Inject hc_accessibility into the Playwright browser context (profile jar). * Call before navigating to a page with hCaptcha, or right before solve. */ export declare function injectA11yCookie(context: { addCookies: (cookies: any[]) => Promise; }): Promise<{ injected: boolean; reason: string; ttl?: number; }>; export declare function agentPromptForA11yCookie(): string; /** * After checkbox click: if challenge frame still present, a11y cookie is dead/weak. */ export declare function detectChallengeAfterClick(page: Page): Promise; //# sourceMappingURL=HcaptchaA11y.d.ts.map