/** * Shared token capture logic via Chrome DevTools Protocol (CDP). * * Used by both the auto-login and interactive login flows (Playwright-based). * Captures skype, bearer, and substrate tokens from intercepted network requests. */ import type { Page } from "playwright"; export declare const TOKEN_INTERCEPT_TIMEOUT: number; export declare const PAGE_RELOAD_TIMEOUT: number; export declare const PAGE_STATE_POLL_INTERVAL: number; export type LogFunction = (...arguments_: unknown[]) => void; /** Chat Service calls made by the current Teams web client (Bearer-authenticated). */ export declare function isWebChatServiceRequest(requestUrl: string): boolean; /** * Wait for the page to reach Teams and capture authentication tokens via CDP. * * Polls the page state periodically to provide diagnostic feedback instead of * relying solely on timeouts. Throws a descriptive error if the login flow * stalls or reaches an unexpected state. */ export declare function captureTokensFromPage(page: Page, log: LogFunction, interceptTimeout: number): Promise<{ skypeToken: string; chatBearerToken: string | undefined; region: string | undefined; bearerToken: string | undefined; substrateToken: string | undefined; amsToken: string | undefined; sharePointToken: string | undefined; sharePointHost: string | undefined; }>; //# sourceMappingURL=token-capture.d.ts.map