import { QueryOptions, QueryKey, QueryObserverOptions, MutationOptions, MutationObserver } from '@tanstack/query-core'; import { WeavyType } from '../client/weavy'; import { HttpMethodType } from '../types/http.types'; import { InfiniteQueryResultType, QueryPagingAroundType, QueryPagingType } from '../types/query.types'; import { IntRange, PlainObjectType } from '../types/generic.types'; export declare function getApiOptions(weavy: WeavyType, apiKey: QueryKey, apiPath?: string, options?: Partial>, body?: BodyInit, method?: HttpMethodType): QueryObserverOptions; export declare function getApi(weavy: WeavyType, apiKey: QueryKey, apiPath?: string, options?: QueryOptions, body?: BodyInit, method?: HttpMethodType, noCache?: boolean): Promise; export declare function getApiMutationOptions(weavy: WeavyType, apiKey: QueryKey, apiPath?: string, options?: MutationOptions, method?: HttpMethodType): MutationOptions; export declare function getApiMutation(weavy: WeavyType, apiKey: QueryKey, apiPath?: string, options?: MutationOptions, method?: HttpMethodType): MutationObserver; export declare const DEFAULT_PAGE_SIZE = 25; export declare function initialPageParam(around?: number, pageSize?: IntRange<1, 100>): QueryPagingAroundType; export declare function firstPageParam(pageSize?: IntRange<1, 100>): (firstPage: InfiniteQueryResultType) => QueryPagingType | null; export declare function lastPageParam(pageSize?: IntRange<1, 100>): (lastPage: InfiniteQueryResultType) => QueryPagingType | null; export declare function queryPageParams(pageParam: QueryPagingAroundType, initialQueryParams?: ConstructorParameters[0]): URLSearchParams; //# sourceMappingURL=api.d.ts.map