UNPKG

@slashid/react

Version:

React SDK for the /id platform

32 lines 1.17 kB
import { KYC } from "@slashid/slashid"; export declare const isUploadSupported: () => boolean; export type DocumentConstraints = { formats: string; maxResolution: number; maxSize: number; }; export declare const blobResize: (blob: Blob, constraints: DocumentConstraints) => Promise<Blob>; export declare const blobToBase64: (blob: Blob) => Promise<string>; export type CommonProps = { flowId: string; kyc: KYC; onContinue: () => void; }; export declare const documentConstraints: { formats: string; maxResolution: number; maxSize: number; }; export declare const fromEntries: <T extends readonly (readonly [PropertyKey, unknown])[]>(entries: T) => { [K in T[number] as K[0]]: K[1]; }; /** * Executes each operation sequentially until completion * or until the [until] predicate is satisfied, whichever * comes first. * * Upon completion, fires [then] if provided. */ export declare const sequence: <R>(operations: (() => R | Promise<R>)[], { until, then, }?: { until?: ((value: R) => boolean) | undefined; then?: ((value?: R | undefined) => void) | undefined; }) => Promise<void>; //# sourceMappingURL=utils.d.ts.map