export interface AuthCredentials { username: string; password: string; } export interface ResolveCredentialsOptions { credentials?: AuthCredentials; /** * Path to a JSON fixture identifying the account. Either name-only * (`{ username }`, password resolved at run time) or a full * `{ username, password }`. Defaults to `playwright/fixtures/auth.json` * relative to cwd. */ fixturePath?: string; } /** * Resolves auth credentials for a **single** account (one `login()` call logs in * as one user), from the first source that yields a complete pair, tried in * order: * * 1. explicit `options.credentials`; * 2. a full JSON fixture (`{ username, password }`); * 3. a **name-only** fixture (`{ username }`), whose password is resolved at * `login()` time by {@link resolveE2EPassword} — env-first (`E2E_PW_`, * set by the CircleCI context in CI) then Vault locally. No `globalSetup` is * involved, so this works in `e2e-ui` mode too. * * Throws if none yield a complete pair. Async because the name-only path (step 3) * may reach out to Vault. */ export declare const resolveCredentials: (options?: ResolveCredentialsOptions) => Promise;