import type { Auth } from './Auth.js'; import type { OpaqueSession, TokenResponse } from './types.js'; /** * Establishes an authenticated session on the given `Auth` instance from a raw * `TokenResponse` obtained via an external code exchange (e.g. Fabric brokered * auth). This is the supported way for first-party companion provider packages * to hand a token response back to `Auth`. * * Standard auth flows (`signIn`, `handleMagicLinkCallback`) establish sessions * internally and do not require this function. * * @param auth - The `Auth` instance to establish the session on. * @param tokenResponse - The token response from an external token exchange. * @returns The opaque session for the authenticated user. */ export declare function createSessionFromTokenResponse(auth: Auth, tokenResponse: TokenResponse): Promise; //# sourceMappingURL=_internal.d.ts.map