import React from 'react';
import { DataSourceTableProps } from '../type';
import { OperationItem } from '../type';
interface UseTablePropsProps {
    data: any;
    originProps: DataSourceTableProps;
    openDrawer: (type: OperationItem) => void;
    closeDrawer: () => void;
    refreshData: () => void;
    handleFilterChange: (changedFields: any, allFields: any) => void;
    tableRef: any;
    getInitialValues: () => Record<string, any>;
}
/**
 * 处理table的props
 * 转换title
 * @param props
 * @returns
 */
declare const useTableProps: (props: UseTablePropsProps) => {
    currentComponentId: any;
    title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
    pagination: {
        total: number;
        current: number;
        pageSize: number;
        size: string;
        showSizeChanger: boolean;
    };
    columns: import("./useColumns").Column[];
    subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
    buttons: any[] | null;
    filter: {
        dom: any;
        items: any;
    } | null;
    onRow: (this: unknown, record: any) => any;
    actionButtons: any[] | null;
    __id?: string | undefined;
    currentSettingKey?: string | undefined;
    titleButtons?: {
        show: boolean;
        maxCount: number;
        items: OperationItem[];
    } | undefined;
    tableButtons?: {
        show: boolean;
        maxCount: number;
        items: OperationItem[];
    } | undefined;
    operation?: {
        show: boolean;
        title: string;
        width: number;
        align: "center" | "left" | "right";
        fixed: false | "left" | "right";
        type: "button" | "link";
        items: OperationItem[];
    } | undefined;
    operationContent?: {
        [key: string]: React.ReactNode;
    } | undefined;
    dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
    search?: {
        show: boolean;
        placeholder: string;
    } | undefined;
    __designMode: string;
    componentId: string;
    clickToDetail?: {
        show: boolean;
        useCustomAction: boolean;
        actionType: string;
        openMode: "modal" | "drawer";
        openContentSize: "small" | "middle" | "large";
        openTitle: string;
        key: string;
    } | undefined;
    filterBy?: Record<string, any> | undefined;
    sortBy: string;
    tabs?: {
        show: boolean;
        type: string;
        items: {
            name: string;
            filterBy: Record<string, any>;
            sortBy: string;
        }[];
    } | undefined;
    onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
    extraParams?: {
        list?: Record<string, any> | undefined;
        get?: Record<string, any> | undefined;
        update?: Record<string, any> | undefined;
        create?: Record<string, any> | undefined;
        destroy?: Record<string, any> | undefined;
    } | undefined;
    localSettings?: import("../../../table/types").LocalSettingsType | undefined;
};
export default useTableProps;
