/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import { Schema } from '@formily/react';
import React from 'react';
type Params = {
    filter?: any;
    pageSize?: number;
    page?: number;
    sort?: any;
};
/**
 * @internal
 */
export declare const TableSelectorContext: React.Context<any>;
type TableSelectorProviderProps = {
    params: Record<string, any>;
    resource: any;
    collection?: string;
    dragSort?: boolean;
    children?: any;
};
export declare const TableSelectorParamsProvider: ({ params, children }: {
    params: Params;
    children: any;
}) => React.JSX.Element;
export declare const recursiveParent: (schema: Schema, component: any) => any;
export declare const TableSelectorProvider: React.FunctionComponent<TableSelectorProviderProps>;
export declare const useTableSelectorContext: () => any;
export declare const useTableSelectorProps: () => {
    loading: any;
    showIndex: boolean;
    dragSort: boolean;
    rowKey: any;
    pagination: any;
    onRowSelectionChange(selectedRowKeys: any, selectedRowData: any): void;
    onRowDragEnd({ from, to }: {
        from: any;
        to: any;
    }): Promise<void>;
    onChange({ current, pageSize }: {
        current: any;
        pageSize: any;
    }): void;
};
export {};
