UNPKG

zarm

Version:

基于 React 的移动端UI库

13 lines (12 loc) 501 B
import * as React from 'react'; import { ToastProps } from './Toast'; export interface ToastHandler { close: () => void; replace: (element: React.ReactElement) => void; } export declare const show: (props: Omit<ToastProps, 'visible'> | string) => ToastHandler; export declare const clear: () => void; declare type ToastPropsKey = keyof ToastProps; declare const ALLOW_KEYS: ToastPropsKey[]; export declare const config: (props: Pick<ToastProps, typeof ALLOW_KEYS[number]>) => void; export {};