import React, { ReactNode } from 'react'; import { MessageApi } from "apusic-ui/lib/message"; import { NotificationApi } from "apusic-ui/lib/notification"; export declare enum Types { ajax = "ajax", modal = "modal", message = "message", confirm = "confirm", notification = "notification", drawer = "drawer", dialog = "dialog", email = "email", download = "download", upload = "upload", cancel = "cancel", close = "close", reload = "reload", link = "link", url = "url", prev = "prev", next = "next", custom = "custom" } export declare enum ActionType { add = "add", detail = "detail", edit = "edit", confirm = "confirm", message = "message", notification = "notification", openNewWindow = "openNewWindow", custom = "custom" } export interface action { type?: Types | ActionType; title?: string | ReactNode; body?: any; api?: string | Promise | object; content?: string | ReactNode; status?: string | NotificationApi | MessageApi; data?: any; } export declare enum AType { modal = "modal", confirm = "confirm", message = "message", notification = "notification", openNewWindow = "openNewWindow", upload = "upload", custom = "custom" } export interface TProps { type?: ActionType; showType?: "link" | "text" | "ghost" | "primary" | "default" | "dashed" | React.ReactElement | undefined; text: string | Function | React.ReactNode; title: string; enable?: boolean; value?: any; rows?: any; initApi?: string | Promise; api?: string | Promise; url?: string; body?: any; content?: string; messageContent?: string; icon?: React.ReactNode; onfetchData?: Function; callback?: Function; } export declare const Action: (props: TProps) => JSX.Element; export default Action;