import * as react from 'react'; import { ReactNode } from 'react'; import { UseQueryOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; import { Fetcher, ClaimsResponse, SyncReactError, BuildClaimTransactionRequest, BuildClaimTransactionResponse } from '../core/index.mjs'; interface SyncContextValue { basePath: string; fetcher?: Fetcher; } interface SyncProviderProps { basePath?: string; fetcher?: Fetcher; children: ReactNode; } declare function SyncProvider({ basePath, fetcher, children }: SyncProviderProps): react.FunctionComponentElement>; interface SyncClient { basePath: string; request(path: string, init?: RequestInit): Promise; get(path: string, init?: RequestInit): Promise; post(path: string, body?: unknown, init?: RequestInit): Promise; } declare function useSyncClient(): SyncClient; type QueryOptions = Omit, "queryKey" | "queryFn">; declare function useClaims(wallet?: string | null, options?: QueryOptions): UseQueryResult; type ClaimTransactionInput = BuildClaimTransactionRequest; declare function useClaimTransaction(options?: UseMutationOptions): UseMutationResult; export { type ClaimTransactionInput, type SyncClient, SyncProvider, type SyncProviderProps, useClaimTransaction, useClaims, useSyncClient };