UNPKG

@sumsub/websdk

Version:

SumSub WebSdk

23 lines (22 loc) 797 B
import SnsWebSdk from './SnsWebSdk'; import type { SnsWebSdkOptions, LegacyExpirationHandler, SnsWebSdkBaseConfig, ErrorHandler, MessageHandler } from './types'; interface SnsWebSdkConfig extends SnsWebSdkBaseConfig { onError?: ErrorHandler; onMessage?: MessageHandler; } export default class Builder { private baseUrl; private flowName?; private debugEnabled; private options; private config; private accessToken; private expirationHandler; constructor(baseUrl: string, flowName?: string); withAccessToken(accessToken: string, expirationHandler: LegacyExpirationHandler): this; debug(debug: boolean): this; withOptions(options: Partial<SnsWebSdkOptions>): this; withConf(config: SnsWebSdkConfig): this; build(): SnsWebSdk; } export {};