import React from 'react'; import { ButtonProps } from 'acud/lib/button'; export declare type TActionType = 'link' | 'ajax' | 'dialog' | 'drawer' | 'custom'; export interface CommandParams { config: any; payload?: any; } export interface BulkItemConfig extends ButtonProps { id?: string; text?: React.ReactNode; skin?: 'primary' | 'text' | 'highlight' | 'enhance' | 'default' | 'danger'; select?: boolean; actionType?: TActionType; link?: string; ajax?: object; dialog?: object; drawer?: object; action?: string; } export interface BulkProps { prefixCls?: string; bulkComp?: React.ComponentType; bulkConfig?: any[]; selectedRowKeys?: any[]; handleCommand?: (commandParams: CommandParams) => void; handleFilterChange?: (filterItemData: any) => void; } export interface SelectedProps { prefixCls?: string; selectedRowKeys?: any[]; total?: number; } export interface IFilterConfig { controls?: any[]; } export interface FilterProps { prefixCls?: string; filterComp?: React.ComponentType; filterConfig?: IFilterConfig; handleCommand?: (commandParams: CommandParams) => void; handleFilterChange?: (filterItemData: any) => void; } export interface ToolbarProps { prefixCls?: string; withToolbar?: boolean; bulkProps?: BulkProps; selectedProps?: SelectedProps; filterProps?: FilterProps; handleCommand?: (commandParams: CommandParams) => void; handleFilterChange?: (filterItemData: any) => void; } export declare const renderButton: (props: any) => any; declare const ToolBar: (props: ToolbarProps) => JSX.Element | null; export default ToolBar;