/** * See "Configuration options" section in * https://docs.mx.com/api#connect_request_a_url for more details. */ export declare enum Type { AccountsWidget = "accounts_widget", BudgetsWidget = "budgets_widget", ConnectWidget = "connect_widget", ConnectionsWidget = "connections_widget", DebtsWidget = "debts_widget", FinstrongWidget = "finstrong_widget", GoalsWidget = "goals_widget", HelpWidget = "help_widget", MasterWidget = "master_widget", MiniBudgetsWidget = "mini_budgets_widget", MiniFinstrongWidget = "mini_finstrong_widget", MiniPulseCarouselWidget = "mini_pulse_carousel_widget", MiniSpendingWidget = "mini_spending_widget", PulseWidget = "pulse_widget", SettingsWidget = "settings_widget", SpendingWidget = "spending_widget", TransactionsWidget = "transactions_widget", TrendsWidget = "trends_widget" } type CWM = "verification" | "aggregation"; export type ConnectWidgetMode = `${CWM}` | `${CWM},${CWM}` | `${CWM},${CWM},${CWM}` | `${CWM},${CWM},${CWM},${CWM}` | `${CWM},${CWM},${CWM},${CWM},${CWM}` | `${CWM},${CWM},${CWM},${CWM},${CWM},${CWM}` | `${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM}` | `${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM}` | `${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM}` | `${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM},${CWM}`; type Camelize = { [K in keyof T as CamelizeString]: T[K]; }; type CamelizeString = T extends string ? string extends T ? string : T extends `${infer F}_${infer R}` ? CamelizeString, `${C}${F}`> : `${C}${T}` : T; export type InternalWidgetConfigurationProps = Camelize; export type InternalWidgetConfiguration = WidgetConfiguration & { widget_type: Type; oauth_referral_source?: string; is_mobile_webview?: boolean; ui_message_version?: number; }; export type WidgetConfigurationProps = Camelize; export type WidgetConfiguration = { ui_message_webview_url_scheme?: string; color_scheme?: "dark" | "light"; language?: string; }; export type ConnectWidgetConfigurationProps = Camelize; export type ConnectWidgetConfiguration = WidgetConfiguration & { client_redirect_url?: string; current_institution_code?: string; current_institution_guid?: string; current_member_guid?: string; disable_institution_search?: boolean; include_transactions?: boolean; mode?: ConnectWidgetMode; update_credentials?: boolean; }; export declare function getWidgetConfigurationFromProps(props: ConnectWidgetConfigurationProps & InternalWidgetConfigurationProps): { client_redirect_url: string | undefined; color_scheme: "dark" | "light" | undefined; current_institution_code: string | undefined; current_institution_guid: string | undefined; current_member_guid: string | undefined; disable_institution_search: boolean | undefined; include_transactions: boolean | undefined; is_mobile_webview: boolean; mode: ConnectWidgetMode | undefined; ui_message_version: number; ui_message_webview_url_scheme: string | undefined; update_credentials: boolean | undefined; widget_type: Type; }; export {};