@slashid/react-primitives
Version:
Primitive components for the /id React SDK
21 lines • 756 B
TypeScript
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]; };
//# sourceMappingURL=utils.d.ts.map