@slashid/react
Version:
React SDK for the /id platform
17 lines • 630 B
TypeScript
import { TextConfigKey } from "./text/constants";
type ToTextConfigKey<T> = (error: T | undefined) => {
title: TextConfigKey;
description: TextConfigKey;
};
export declare namespace ImageQualityError {
type Reason = "detect_blur" | "detect_cutoff" | "document_detection";
const toReason: (msg: string) => Reason | undefined;
const toTextConfigKey: ToTextConfigKey<Reason>;
}
export declare namespace LivePhotoError {
type Reason = "face_detection";
const toReason: (msg: string) => Reason | undefined;
const toTextConfigKey: ToTextConfigKey<Reason>;
}
export {};
//# sourceMappingURL=error.d.ts.map