@gray-adeyi/korapay-vue
Version:
A Vue plugin for Korapay integration
42 lines • 1.52 kB
TypeScript
import { InitializePayload, PayResponse } from '../types.ts';
type __VLS_Props = {
payload: InitializePayload;
text?: string;
};
declare function initializePay(): Promise<void>;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
button?(_: {
initPayWithKorapay: typeof initializePay;
isInitializingPay: boolean;
role: string;
}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
close: () => any;
success: (value: PayResponse) => any;
fail: (value: PayResponse) => any;
tokenized: () => any;
pending: () => any;
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
onClose?: (() => any) | undefined;
onSuccess?: ((value: PayResponse) => any) | undefined;
onFail?: ((value: PayResponse) => any) | undefined;
onTokenized?: (() => any) | undefined;
onPending?: (() => any) | undefined;
}>, {
text: string;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
//# sourceMappingURL=KorapayButton.vue.d.ts.map