import { Connector, Item } from 'pluggy-js/dist/types'; export interface PluggyData { value: JSON; } export interface PluggyError { code: string; msg: string; } export declare enum CountryCode { AR = "AR", BR = "BR", CL = "CL", MX = "MX" } export declare enum CountryName { AR = "ARGENTINA", BR = "BRAZIL", CL = "COLOMBIA", MX = "MEXICO" } export declare type CountryCodes = keyof typeof CountryCode; export declare type CountryNames = keyof typeof CountryName; export declare type Country = { code: CountryCode; name: CountryName; }; export declare enum ConnectorType { PERSONAL_BANK = "PERSONAL_BANK", BUSINESS_BANK = "BUSINESS_BANK", INVESTMENT = "INVESTMENT" } export declare type ConnectorTypes = keyof typeof ConnectorType; export declare type Institution = Partial; export declare enum InstitutionTabType { PERSONAL = "PERSONAL", BUSINESS = "BUSINESS", INVESTMENT = "INVESTMENT" } export declare type InstitutionTabTypes = keyof typeof InstitutionTabType; export declare type StackParams = { Welcome: undefined; Countries: undefined; Institutions: { country: CountryCodes; } | undefined; Connect: { institution: Institution; }; Connecting: { item: Item; }; Connected: undefined; }; export interface Dictionary { [key: string]: T; } export declare type PluggyConnectProps = { token: string; countries?: Array; withSandbox?: boolean; onSuccess: () => void; onError: () => void; }; export declare type ConnectProps = { onSuccess: Function; onError: Function; withSandbox: boolean; }; export declare type ErrorField = { parameter: string; message: string; };