import React from 'react'; import { ButtonType } from 'acud/lib/button/button'; import './index.less'; export declare type ACTION_TYPE = 'link' | 'ajax' | 'dialog' | 'drawer' | 'custom'; export interface DialogOptionBody { type: 'alert' | 'plain' | 'common'; content: any; $payloadFields?: any; $extraPayload?: any; $onBeforeDialogOpen?: (payload: any) => any; } export interface DialogOption { body: DialogOptionBody; className?: string; title?: string; width?: number; maskClosable?: boolean; foot?: boolean; okText?: string; cancelText?: string; cancelWithSuccess?: boolean; fromTable?: boolean; mask?: boolean; } export interface DrawerOptionBody { content: any; $payloadFields?: any; $extraPayload?: any; $onBeforeOpen?: (payload: any) => any; } export interface DrawerOption { body: DrawerOptionBody; className?: string; title?: string; width?: number; maskClosable?: boolean; foot?: boolean; okText?: string; cancelText?: string; cancelWithSuccess?: boolean; fromTable?: boolean; mask?: boolean; } export declare type ConfirmType = 'warning' | 'info' | 'error' | 'sucess'; export interface AjaxOption { apiAction: string; $toastMessage?: string; cancelText?: string; okText?: string; confirmTitle?: string; confirmText?: string; confirmType?: ConfirmType; $onRequest?: (requestPayload: any) => any; $onResponse?: (response: any, requestPayload: any) => any; $onError?: (error: any, requestPayload: any) => void; $payloadFields?: string[]; $extraPayload?: any; } export interface BulkItem { position?: string; id: string; text: string; icon?: React.ReactNode; type?: 'button' | 'checkbox'; skin?: ButtonType | 'danger'; select?: boolean; disabled?: boolean; actionType: ACTION_TYPE; link?: string; ajax?: AjaxOption; dialog?: DialogOption; drawer?: DrawerOption; action?: string; } export declare type FilterType = 'textbox' | 'search' | 'select' | 'rangecalendar' | 'tagselect' | 'radio'; export interface FilterControl { type: FilterType; name: string; width?: number; defaultValue?: any; value?: any; label?: string; multi?: boolean; options?: any[]; time?: boolean; range?: any; acudProps?: any; } export interface FilterConfig { position?: string; submitText?: string; controls: FilterControl[]; } declare const HooksList: (props: any) => JSX.Element; export default HooksList;