export type FlagAppearance = 'info' | 'success' | 'warning' | 'error'; export type FlagType = FlagAppearance; export interface Flag { close: () => Promise; } export interface FlagAction { text: string; onClick: () => void; } export interface FlagOptions { id: number | string; title?: string; description?: string; /** * `type` is used to determine the icon of Flag. * If `appearance` is given, `type` is overriden to equal `appearance`. */ type?: FlagType; /** * When `appearance` is given, the Flag is bold. If not, it's a normal Flag. */ appearance?: FlagAppearance; actions?: FlagAction[]; isAutoDismiss?: boolean; } export declare const showFlag: (options: FlagOptions) => Flag; //# sourceMappingURL=flag.d.ts.map