import { QueryKey } from '@tanstack/react-query'; type WidgetsApiClient = (data: { url: string; method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; params?: Record; headers?: Record; data?: BodyType; signal?: AbortSignal; }) => Promise; declare const useWidgetsApiClient: () => WidgetsApiClient; type ErrorType = ErrorData; type BodyType = BodyData & { headers?: any; }; declare const useWidgetsApiQueryOptions: (queryOptions: QueryOptions) => QueryOptions & { queryKey: QK; }; export { type BodyType, type ErrorType, useWidgetsApiClient, useWidgetsApiQueryOptions };