UNPKG

@baqhub/sdk-react

Version:

The official React SDK for the BAQ federated app platform.

18 lines (17 loc) 692 B
import { AuthenticationState, BlobUrlBuilder, Client, EntityRecord } from "@baqhub/sdk"; export type FindClient = (entity: string) => Client; export interface StoreIdentity { isAuthenticated: boolean; entityRecord: EntityRecord; findClient: FindClient; blobUrlBuilder: BlobUrlBuilder; discover: Client["discover"]; downloadBlob: Client["downloadBlob"]; } declare function buildAuthenticatedIdentity(authState: AuthenticationState): StoreIdentity; declare function buildUnauthenticatedIdentity(): StoreIdentity; export declare const StoreIdentity: { new: typeof buildAuthenticatedIdentity; newUnauthenticated: typeof buildUnauthenticatedIdentity; }; export {};