@difizen/mana-react
Version:
20 lines • 718 B
TypeScript
import React from 'react';
import type { NotificationArgsProps } from './protocol';
import PurePanel from './pure-panel';
import './style';
export type { NotificationArgsProps } from './protocol';
interface BaseMethods {
open: (config: NotificationArgsProps) => void;
destroy: (key?: React.Key) => void;
/** @private Internal Component. Do not use in your production. */
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
}
type StaticFn = (config: NotificationArgsProps) => void;
interface NoticeMethods {
success: StaticFn;
info: StaticFn;
warning: StaticFn;
error: StaticFn;
}
export declare const notification: NoticeMethods & BaseMethods;
//# sourceMappingURL=index.d.ts.map