import { ReactNode } from 'react'; import { QueryParams } from '../util/query-string'; import { APIConfigOptions } from './types'; interface DataProviderCtx { [key: string]: string | object | object[] | null; } interface DataProviderProps { children?: ReactNode; key: string; data: any; } export declare function DataProvider(props: DataProviderProps): import('react').FunctionComponentElement>; interface APIDataProviderProps extends Partial { key: string; route: string; params?: QueryParams; children?: ReactNode; } export declare function APIDataProvider(props: APIDataProviderProps): import('react').FunctionComponentElement; export declare function useData(key: string): string | object | object[] | null; export {};