import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import type { LoadError, LoaderStart } from './connectTypes'; import type { FinancialConnections } from '../types'; export interface CommonComponentProps { onLoaderStart?: ({ elementTagName }: LoaderStart) => void; onLoadError?: ({ error, elementTagName }: LoadError) => void; onPageDidLoad?: () => void; style?: StyleProp; } type EmbeddedComponentType = 'invoice-history' | 'transactions-list' | 'payments' | 'payment-details' | 'payment-disputes' | 'payouts' | 'payouts-list' | 'balances' | 'account-management' | 'account-management-form' | 'account-onboarding' | 'disputes-list' | 'instant-payouts' | 'instant-payouts-promotion' | 'notification-banner' | 'debug-utils' | 'debug-ui-config' | 'debug-ui-library' | 'debug-ui-preview' | 'debug-components-list' | 'debug-hosted-dashboard-preview' | 'app-onboarding' | 'app-install' | 'app-viewport' | 'payment-method-settings' | 'capital-financing' | 'capital-financing-application' | 'capital-financing-promotion' | 'capital-overview' | 'terminal-hardware-orders' | 'terminal-hardware-shop' | 'app-settings' | 'instant-payouts-promotion' | 'issuing-cards-list' | 'issuing-card' | 'financial-account' | 'financial-account-transactions' | 'recipients' | 'product-tax-code-selector' | 'check-scanning' | 'tax-threshold-monitoring' | 'export-tax-transactions' | 'tax-settings' | 'tax-registrations' | 'documents' | 'earnings-chart' | 'reporting-chart' | 'payout-details' | 'balance-report' | 'payout-reconciliation-report'; type EmbeddedComponentProps = CommonComponentProps & { component: EmbeddedComponentType; componentProps?: Record; callbacks?: Record void) | undefined>; sizeToContent?: boolean; onContentHeightChange?: (height: number) => void; onOpenNotificationBannerForm?: (form: Record) => void; presentExternalLinksInApp?: boolean; }; export declare function EmbeddedComponent(props: EmbeddedComponentProps): React.JSX.Element | null; /** @internal Exported for testing only. */ export declare function toStripeJsBankAccountToken(token: FinancialConnections.BankAccountToken): { id: string | null; object: "token"; type: "bank_account"; used: boolean; livemode: boolean; created: number | null; bank_account: { id: string; object: "bank_account"; account_holder_name: string | null; account_holder_type: import("../types/Token").BankAcccountHolderType | null; bank_name: string | null; country: string | null; currency: string | null; fingerprint: string | null; last4: string | null; routing_number: string | null; status: import("../types/Token").BankAccountStatus | null; } | null; }; export declare function isAllowedStripeHost(url: string): boolean; export {}; //# sourceMappingURL=EmbeddedComponent.d.ts.map