import { StreamLayerContext } from '@streamlayer/sdk-web-interfaces'; import { CoreStores, StoreObj } from '../store/store'; import { UserStorage } from '../storage'; import { BypassAuth } from './bypass'; declare module '@streamlayer/sdk-web-interfaces' { interface StreamLayerSDK { authorizationBypass: (schema: string, userKey: string) => Promise; logout: () => void; getUserStore: () => CoreStores['user']; userId: StoreObj['user']['getAtomStore']; isUserAuthorized: BypassAuth['isAuthenticated']; } interface StreamLayerContext { auth: BypassAuth; } } export declare const storage: UserStorage; /** * Bypass authorization, used for login with external token. * Automatically login user if SDK initialized and READY. */ export declare const bypass: (instance: StreamLayerContext, _opts: unknown, done: () => void) => void;