import type { Auth, OpaqueSession } from '@microsoft/rayfin-auth'; import type { FabricAuthOptions } from './types.js'; /** * Detects embedded mode from the `fabricEmbedded` option, the * `?fabricEmbedded=true` URL query parameter, or a previously stored * `sessionStorage` flag. * * Delegates to `@microsoft/fabric-embedded-host` for the actual * detection logic. `FabricAuthOptions` satisfies the shared * `EmbeddedModeOptions` interface. */ export declare function isEmbeddedMode(options: FabricAuthOptions): boolean; /** * Returns whether an embedded postMessage handoff has already completed during this page load. */ export declare function hasEmbeddedHandoffCompleted(): boolean; /** * Marks that an embedded postMessage handoff has completed for this page load. */ export declare function markEmbeddedHandoffCompleted(): void; /** * Clears the embedded-handoff completion flag. * * @internal Test helper. Not exported from the package barrel. */ export declare function resetEmbeddedHandoffStateForTests(): void; /** * Attempts to resume an existing session without any user interaction. * * 1. Returns the current session if already authenticated. * 2. If a refresh token is available, tries `auth.refreshSession()` and * returns the refreshed session on success. * 3. Returns `null` when neither path produces an authenticated session. * * This helper never opens windows, popups, or postMessage channels — * it is always safe to call on page load. */ export declare function tryResumeSession(auth: Auth): Promise; //# sourceMappingURL=fabricAuthHelpers.d.ts.map