/** * Heuristic auth-form detection. Strategy: * * 1. Find every visible `input[type=password]` on the page. * 2. For each, walk up to the nearest `form` (or document body if * formless) and look for sibling/descendant fields: a * username/email-style input + a submit affordance. * 3. Classify login vs signup by: * - URL hint (`/signup`, `/register`, `/join` → signup; * `/login`, `/signin` → login) * - presence of a confirm-password input (signup) * - presence of additional fields like `name` (signup) * - default: login (more common on a generic `/auth` URL) * * We deliberately don't try to be clever about i18n. If the page has * `` it's something we can attack. If we can't * find a submit button it isn't. */ import type { Page } from "playwright"; import type { DetectedAuthForm } from "./types.js"; export declare function detectAuthForm(page: Page): Promise; //# sourceMappingURL=detect.d.ts.map