export declare const fetcher: (url: any) => Promise<any>;
type GET_FUNC = (params: {
    query: string;
    page: number;
}) => string;
export declare const useInfiniteAPI: ({ defaultQuery, timeout, getAPI, getSize, }: {
    defaultQuery?: string;
    timeout?: number;
    getAPI: GET_FUNC;
    getSize?: (firstResult: any) => number;
}) => {
    setQuery: (query: any) => void;
    isLoading: boolean;
    loadMore: () => void;
    isReachingEnd: boolean;
    data: any[];
    items: any;
    hasMore: boolean;
    error: any;
};
export {};
