import * as CONSTANTS from './constants'; import type { PresentationStyleIOS, AppType, StepType } from './constants'; interface Theme { brandColor?: String; overlayColor?: String; dark?: Boolean; navigationOptions?: { showBackButton?: Boolean; showBackButtonText?: Boolean; showCloseButton?: Boolean; }; } interface Task { product?: String; operation?: String; distribution?: Object; navigationOptions?: Object; apps?: AppType[]; action?: { id: String; }; headless?: boolean; } interface Customer { name: String; } interface DeeplinkOptions { step?: StepType; app?: AppType; companyId?: string; connectorId?: string; companyName?: string; singleSwitch?: boolean; payments?: string[]; accountId?: string; } interface Config { publicToken: String; scope: String; product?: String; additionalProduct?: String; linkedAccount?: String; theme?: Theme; distribution?: Object; language?: String; deeplink?: DeeplinkOptions; metadata?: Object; search?: Object; handoff?: String; experiments?: Object; tasks: Task[]; customer?: Customer; deferredPaymentMethodStrategy?: String; } export declare const Product: { DEPOSIT: string; VERIFY: string; IDENTIFY: string; WITHHOLD: string; PRESENT: string; SWITCH: string; MANAGE: string; }, Scope: { USERLINK: string; EMPLOYERLINK: string; PAYLINK: string; }, Environment: { production: CONSTANTS.TransactEnvironment; sandbox: CONSTANTS.TransactEnvironment; custom: (transactPath: string, apiPath: string) => CONSTANTS.TransactEnvironment; }, DeferredPaymentMethodStrategy: { SDK: string; API: string; }, PresentationStyles: { readonly formSheet: "formSheet"; readonly fullScreen: "fullScreen"; }, App: { readonly PAY_NOW: "pay-now"; readonly EXPENSES: "expenses"; readonly ORDERS: "orders"; readonly SUGGESTIONS: "suggestions"; }, Step: { readonly ADD_CARD: "add-card"; readonly LOGIN_COMPANY: "login-company"; readonly LOGIN_PAYROLL: "login-payroll"; readonly SEARCH_COMPANY: "search-company"; readonly SEARCH_PAYROLL: "search-payroll"; readonly ACCOUNT: "account"; }; export type { TransactEnvironment, PresentationStyleIOS, AppType, StepType, } from './constants'; export type { DeeplinkOptions }; export interface TransactTask { /** Wrapper-generated id for this launch; every event for this task carries it. */ instanceId: string; /** * Stop receiving this task's callbacks on the JS side. Does not close the native UI * (iOS dismiss is process-global); use it to detach a task you no longer care about. */ remove(): void; } export declare const Atomic: { transact({ config, environment, onInteraction, onLaunch, onFinish, onDataRequest, onClose, onAuthStatusUpdate, onTaskStatusUpdate, onCleanup, onError, presentationStyleIOS, setDebug, }: { config: Config; environment?: CONSTANTS.TransactEnvironment; onInteraction?: Function; onDataRequest?: Function; onAuthStatusUpdate?: Function; onTaskStatusUpdate?: Function; onLaunch?: Function; onFinish?: Function; onClose?: Function; onCleanup?: Function; /** In-flow SDK error. iOS only — Android surfaces no equivalent callback. */ onError?: Function; presentationStyleIOS?: PresentationStyleIOS; setDebug?: boolean; }): TransactTask; hideTransact(): void; }; //# sourceMappingURL=index.d.ts.map