type Nullable = T | null | undefined export declare namespace com.trulioo.docv.core.workflow { abstract class Sequence { private constructor(); static get WELCOME(): com.trulioo.docv.core.workflow.Sequence & { get name(): "WELCOME"; get ordinal(): 0; }; static get USER_CONSENT(): com.trulioo.docv.core.workflow.Sequence & { get name(): "USER_CONSENT"; get ordinal(): 1; }; static get CAPTURE_DOCUMENT(): com.trulioo.docv.core.workflow.Sequence & { get name(): "CAPTURE_DOCUMENT"; get ordinal(): 2; }; static get CAPTURE_FACE(): com.trulioo.docv.core.workflow.Sequence & { get name(): "CAPTURE_FACE"; get ordinal(): 3; }; static get COMPLETE(): com.trulioo.docv.core.workflow.Sequence & { get name(): "COMPLETE"; get ordinal(): 4; }; static values(): Array; static valueOf(value: string): com.trulioo.docv.core.workflow.Sequence; get name(): "WELCOME" | "USER_CONSENT" | "CAPTURE_DOCUMENT" | "CAPTURE_FACE" | "COMPLETE"; get ordinal(): 0 | 1 | 2 | 3 | 4; } } export declare namespace com.trulioo.docv.core.workflow { class WorkflowTheme { constructor(logoSource?: Nullable, primaryButtonColor?: Nullable, primaryButtonTextColor?: Nullable); get logoSource(): Nullable; get primaryButtonColor(): Nullable; get primaryButtonTextColor(): Nullable; copy(logoSource?: Nullable, primaryButtonColor?: Nullable, primaryButtonTextColor?: Nullable): com.trulioo.docv.core.workflow.WorkflowTheme; toString(): string; hashCode(): number; equals(other: Nullable): boolean; } } export declare abstract class Response { protected constructor(); abstract asJs(): any; } export declare namespace Response { class Success extends Response { constructor(transactionId: Nullable); get transactionId(): Nullable; asJs(): any; copy(transactionId?: Nullable): Response.Success; toString(): string; hashCode(): number; equals(other: Nullable): boolean; } class Error extends Response { constructor(code: number, message: Nullable, transactionId: Nullable); get code(): number; get message(): Nullable; get transactionId(): Nullable; asJs(): any; copy(code?: number, message?: Nullable, transactionId?: Nullable): Response.Error; toString(): string; hashCode(): number; equals(other: Nullable): boolean; } class Exception extends Response { constructor(message: Nullable); get message(): Nullable; asJs(): any; copy(message?: Nullable): Response.Exception; toString(): string; hashCode(): number; equals(other: Nullable): boolean; } } export declare const Trulioo: { workflow(): workflow.WorkflowBuilder; workflowTheme(): workflow.WorkflowThemeBuilder; event(): event.EventBuilder; initialize(workflowBuilder: workflow.WorkflowBuilder): Promise; launch(parentId: string, eventBuilder: event.EventBuilder): Promise; getSessionResult(): Promise; }; export declare abstract class TruliooResult { protected constructor(); static get Authorized(): { } & TruliooResult; static get Complete(): { } & TruliooResult; } export declare namespace TruliooResult { class Result extends TruliooResult { constructor(transactionId: string, status: TruliooStatus); get transactionId(): string; get status(): TruliooStatus; copy(transactionId?: string, status?: TruliooStatus): TruliooResult.Result; toString(): string; hashCode(): number; equals(other: Nullable): boolean; } class Error extends TruliooResult { constructor(message: string, code?: Nullable, transactionId?: Nullable); get message(): string; get code(): Nullable; get transactionId(): Nullable; toString(): string; copy(message?: string, code?: Nullable, transactionId?: Nullable): TruliooResult.Error; hashCode(): number; equals(other: Nullable): boolean; } } export declare abstract class TruliooStatus { private constructor(); static get ACCEPTED(): TruliooStatus & { get name(): "ACCEPTED"; get ordinal(): 0; }; static get REVIEW(): TruliooStatus & { get name(): "REVIEW"; get ordinal(): 1; }; static get DECLINED(): TruliooStatus & { get name(): "DECLINED"; get ordinal(): 2; }; static get ERROR(): TruliooStatus & { get name(): "ERROR"; get ordinal(): 3; }; static values(): Array; static valueOf(value: string): TruliooStatus; get name(): "ACCEPTED" | "REVIEW" | "DECLINED" | "ERROR"; get ordinal(): 0 | 1 | 2 | 3; } export declare namespace event { class EventBuilder { constructor(); setCallbacks(obj: Nullable): event.EventBuilder; } } export declare namespace event.adapters { class ListenerCallback { constructor(obj?: any); get onComplete(): (p0: Response.Success) => void; get onError(): (p0: Response.Error) => void; get onException(): (p0: Response.Exception) => void; } } export declare namespace workflow { class WorkflowBuilder { constructor(); setShortCode(code: Nullable): workflow.WorkflowBuilder; setRedirectUrl(url: Nullable): workflow.WorkflowBuilder; setLanguage(language: Nullable): workflow.WorkflowBuilder; setTheme(workflowTheme: Nullable): workflow.WorkflowBuilder; setDemoMode(isDemo: boolean): workflow.WorkflowBuilder; setRegionSelection(enableRegionSelection: boolean): workflow.WorkflowBuilder; setWebView(isWebView: boolean): workflow.WorkflowBuilder; } class TruliooWorkflowBuilder extends workflow.WorkflowBuilder { constructor(); setEnvironment(environment: workflow.Environment): workflow.TruliooWorkflowBuilder; } abstract class Environment { private constructor(); static get INTERNAL(): workflow.Environment & { get name(): "INTERNAL"; get ordinal(): 0; }; static get BETA(): workflow.Environment & { get name(): "BETA"; get ordinal(): 1; }; static get RELEASE(): workflow.Environment & { get name(): "RELEASE"; get ordinal(): 2; }; static values(): Array; static valueOf(value: string): workflow.Environment; get name(): "INTERNAL" | "BETA" | "RELEASE"; get ordinal(): 0 | 1 | 2; } } export declare namespace workflow { class WorkflowThemeBuilder { constructor(); setLogoSource(source: Nullable): workflow.WorkflowThemeBuilder; setPrimaryButtonColor(color: Nullable): workflow.WorkflowThemeBuilder; setPrimaryButtonTextColor(color: Nullable): workflow.WorkflowThemeBuilder; build(): com.trulioo.docv.core.workflow.WorkflowTheme; } } export as namespace trulioo_docv;