import type { Environment } from "@nexeraid/identity-schemas"; import { ApiClient } from "./generated/index.js"; /** * * Returns an instance of the Nexera API Client * Can be used in 4 different "modes" (types) depending on the type passed * * - members: uses a member api key * - project (workspace): uses a project api key, is used by dApps / applications / api integrations * - identity (kyc): uses an accessToken generated using a project api key and endpoint generateAccessToken, is used by the identity (kyc) widget * - no type: uses no api key, can be used to access public endpoints */ export declare const createIdentityApiClient: (props: { env?: Environment; jwt?: string; apiKey?: string; url?: string; headers?: Record; withCredentials?: boolean; }) => ApiClient; export type IdentityApiClient = ReturnType;