export interface ToastOption { title: string; duration?: number; icon?: 'success' | 'loading' | 'none' | 'error'; image?: string; mask?: boolean; } export declare type ShowToast = (option?: Partial) => Promise; export declare type ShowStringToast = (title: string) => Promise; export declare type HideToast = () => Promise; declare function useToast(initialOption?: Partial): [ { showToastAsync: ShowToast; showSuccessAsync: ShowStringToast; showErrorAsync: ShowStringToast; showNoneAsync: ShowStringToast; showNoneTimeoutAsync: (title: string) => Promise; }, HideToast ]; export default useToast;