import type { HybridObject } from 'react-native-nitro-modules'; export type PAM_NativeAssetSource = { uri: string; width?: number; height?: number; scale?: number; }; export type PAM_LottieLoadingParams = { lottie: PAM_NativeAssetSource; title?: string; subtitle?: string; }; export type PAM_ToastParams = { message: string; /** * màu nền của toast */ backgroundColor: string; /** * màu chữ của toast */ textColor: string; /** * kích thước chữ của toast */ fontSize?: number; image?: PAM_NativeAssetSource; /** * kích thước của ảnh, mặc định là 24 px */ imageSize?: number; /** * thời gian hiển thị toast (ms), mặc định là 2000 */ duration?: number; }; export type PAM_ConfigParams = { /** * màu của indicator * * chỉ truyền dạng hex, ví dụ: #000000 */ indicatorColor?: string; /** * alpha của background nằm trong khoảng 0.0 - 1.0 */ backgroundAlpha?: number; }; export interface ProgressAndModal extends HybridObject<{ ios: 'swift'; android: 'kotlin'; }> { configure(params: PAM_ConfigParams): void; /** * hiện 1 cái xoay ở giữa màn hình, nền trong suốt, hơi mờ */ showLoading(): void; /** * ẩn cái xoay ở giữa màn hình */ hideLoading(): void; /** * ẩn cái xoay ở giữa màn hình, dù có có loading nào đang hiển thị hay không */ forceHideLoading(): void; /** * hiện 1 cái lottie */ showLottie(params: PAM_LottieLoadingParams): void; /** * ẩn cái lottie */ hideLottie(params: PAM_LottieLoadingParams): void; showToast(params: PAM_ToastParams): void; } //# sourceMappingURL=ProgressAndModal.nitro.d.ts.map