import React from 'react';
import { Result } from 'ahooks/es/useRequest/src/types';
export declare const ResourceActionContext: React.Context<Result<any, any> & {
    state?: any;
    setState?: any;
    dragSort?: boolean;
    defaultRequest?: any;
}>;
interface ResourceActionProviderProps {
    type?: 'association' | 'collection';
    collection?: any;
    request?: any;
    dragSort?: boolean;
    children: React.ReactNode;
    uid?: string;
}
export declare const ResourceActionProvider: (props: ResourceActionProviderProps) => React.JSX.Element;
export declare const useResourceActionContext: () => Result<any, any> & {
    state?: any;
    setState?: any;
    dragSort?: boolean;
    defaultRequest?: any;
};
export declare const useDataSourceFromRAC: (options: any) => Result<any, any> & {
    state?: any;
    setState?: any;
    dragSort?: boolean;
    defaultRequest?: any;
};
export declare const useResourceContext: () => {
    type: any;
    resource: any;
    collection: any;
    association: any;
    targetKey: any;
};
export {};
