import type { DOMAttributes } from 'react'; import type { DefineComponent } from 'vue'; import type { BusinessFinancingSchema } from '../../components/EFP/tasks/BusinessFinancingDropin/types'; import type { BaseEmbedProps } from '../baseEmbedProps'; /** * @see https://docs.adyen.com/platforms/onboard-users/components/transfer-instrument/#initialize-components */ export interface AdyenBusinessFinancingProps extends BaseEmbedProps { /** Invoked when form has been completed by user */ oncomplete?(data: BusinessFinancingSchema): void; /** Invoked when user clicks the close button in the modal or nav bar */ onclose?(): void; } declare module 'preact/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'adyen-business-financing': AdyenBusinessFinancingProps; } } } type CustomElement = Partial & { children: any; }>; declare global { namespace JSX { interface IntrinsicElements { 'adyen-business-financing': CustomElement; } } namespace preact.JSX { interface IntrinsicElements { 'adyen-business-financing': AdyenBusinessFinancingProps; } } } declare module 'react/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'adyen-business-financing': AdyenBusinessFinancingProps; } } } declare module 'vue' { interface GlobalComponents { 'adyen-business-financing': DefineComponent; } } export {};