/** * Enum for auth grant-types. */ /// export declare enum GrantTypes { implicit = "implicit", password = "password", code = "code", refresh_token = "refresh_token" } export interface OAuthOptions { grant_type: GrantTypes; state?: string; } export interface ConfigInterface { client_id: string; redirect_url: string; scopes?: string[]; nonce?: string; access_token?: string; default_oauth_options: OAuthOptions; default_signup_options?: any; gid_connect_base_url?: string; refresh_token?: string; branch_key?: string; version?: string; } export interface KeyPair { publicKey: string; privateKey: string; } export interface Address { address: string; city: string; postal_code: string; country_code: string; } declare type Document = string | Buffer | Uint32Array; export interface AttestInfo { document: Document; document_2?: Document; document_3?: Document; document_4?: Document; address: Address; } export interface AttestInfoArgs extends AttestInfo { publicEncryptionKey: string; access_token: string; signingPrivateKey: string; } export interface FieldValuePair { field: string; value: string; } export interface RendererOptions { labelPrefix?: string; } export declare type TRenderer = (memoryKey: string, options?: RendererOptions) => string; export interface FourStopDocsSides { drivers_license: number; identity_card: number; passport: number; residence_permit: number; travel_document: number; visa: number; } export interface ValidatorConfig { minLength?: number; maxLength?: number; datalist?: string[]; } /** * Enum for validation methods. */ export declare enum ValidatorType { name = "name", email = "email", 'equal-strings' = "equal-strings", password = "password", 'max-length' = "max-length", 'min-length' = "min-length", required = "required", optional = "optional", 'file-size' = "file-size", phone = "phone", globalid = "globalid", contains = "contains" } export interface GiDSDKError extends Error { customMessage?: string; srcError?: Error; } export {};