import { UseMutationOptions, UseMutationResult, UseQueryResult } from 'react-query'; import { UseQueryOptions } from 'react-query/types/react/types'; import { AxiosError } from 'axios'; import { ApiContext, ApiError, ListRequestQuery, PaginatedList, RequestBody } from '../../api'; import { TournamentParticipant } from './model'; export declare function getTournamentParticipant(api: ApiContext, id: string): Promise; export declare function useTournamentParticipant(id?: string, options?: Omit, 'queryFn' | 'queryKey'>): UseQueryResult; export type TournamentParticipantList = PaginatedList<'tournament_participants', TournamentParticipant>; export type GetTournamentParticipantsQuery = ListRequestQuery; export declare function getTournamentParticipants(api: ApiContext, query?: GetTournamentParticipantsQuery): Promise; export declare function useTournamentParticipants(query?: GetTournamentParticipantsQuery, options?: Omit, 'queryFn' | 'queryKey'>): UseQueryResult; export interface TournamentParticipantBody extends RequestBody { tournament?: string | null; wallet?: string | null; } export declare function postTournamentParticipant(api: ApiContext, body: TournamentParticipantBody): Promise; export declare function usePostTournamentParticipant(options?: Omit, 'mutationFn'>): UseMutationResult; export declare function putTournamentParticipant(api: ApiContext, id: string, body: TournamentParticipantBody): Promise; export type PutTournamentParticipantVariables = TournamentParticipantBody & { id: string; }; export declare function usePutTournamentParticipant(options?: Omit, 'mutationFn'>): UseMutationResult;