import { DataSourceContainerProps } from '../type';
import { FormInstance } from 'antd';
declare const useHandleAction: (initialParams: Record<string, any> | undefined, options: DataSourceContainerProps['pagination'], form: FormInstance | undefined) => {
    list: {
        pagination?: {
            pageNumber: number;
            pageSize: number;
        } | undefined;
        data: {
            list: any;
            count: any;
        };
        onSearch: (newParams?: Record<string, any>) => void;
        onReset: () => void;
        onPageChange: (pageNumber: number, pageSize: number) => void;
        loading: boolean;
        error?: Error | undefined;
        params: any;
        cancel: () => void;
        refresh: () => void;
        refreshAsync: () => Promise<any>;
        run: (...params: any) => void;
        runAsync: (...params: any) => Promise<any>;
        mutate: (data?: any) => void;
    };
    get: import("ahooks/es/useRequest/src/types").Result<any, any>;
    update: import("ahooks/es/useRequest/src/types").Result<any, any>;
    create: import("ahooks/es/useRequest/src/types").Result<any, any>;
    destroy: import("ahooks/es/useRequest/src/types").Result<any, any>;
    getCurrentRecord: () => any;
};
export default useHandleAction;
