import type { UserSession } from '@servicenow/sdk-cli-core/dist/auth/index.js'; import { SessionCredentials } from './CredentialProvider.js'; /** Standard Playwright cookie representation, with no Playwright runtime dependency. */ export interface BrowserCookie { name: string; value: string; domain: string; path: string; expires: number; httpOnly: boolean; secure: boolean; sameSite: 'Strict' | 'Lax' | 'None'; } /** Secret browser state: pass in memory or save to an owner-only file, never log it. */ export interface BrowserSession { alias: string; instanceUrl: string; createdAt: number; oauthExpiresAt?: number; storageState: { cookies: BrowserCookie[]; origins: []; }; } /** Establish SDK cookies and prove they authenticate without the OAuth bearer token. */ export declare function verifiedUserSession(credentials: SessionCredentials): Promise; /** Create a fresh, verified Playwright session using an existing SDK alias. */ export declare function createBrowserSession(options: { alias: string; /** Pre-resolved credentials. When omitted, the alias is looked up in the SDK store. */ credentials?: SessionCredentials; }): Promise;