import type { Page } from 'playwright'; export interface Credentials { username: string; password: string; oneTimeCode?: string; getOneTimeCode?: () => Promise; } /** * Recorded login step captured by the Chrome extension. * {username} and {password} in `value` are substituted at replay time. */ export interface LoginStep { action: 'fill' | 'click' | 'wait'; selector: string; value?: string; ms?: number; } export declare function login(page: Page, appUrl: string, creds: Credentials & { loginRecipe?: LoginStep[]; }): Promise;