import { UseMutationOptions, UseMutationResult, UseQueryResult } from 'react-query'; import { UseQueryOptions } from 'react-query/types/react/types'; import { AxiosError } from 'axios'; import { ApiContext, ApiError, PaginatedList, RequestBody } from '../../api'; import { Ranking, RankingPeriod } from './model'; export declare function getRanking(api: ApiContext, id: string): Promise; export declare function useRanking(id?: string, options?: Omit, 'queryFn' | 'queryKey'>): UseQueryResult; export type RankingList = PaginatedList<'rankings', Ranking>; export declare function getRankings(api: ApiContext): Promise; export declare function useRankings(options?: Omit, 'queryFn' | 'queryKey'>): UseQueryResult; export interface RankingBody extends RequestBody { name?: string | null; description?: string | null; period?: RankingPeriod | null; from?: string | null; to?: string | null; is_default?: boolean; } export declare function postRanking(api: ApiContext, body: RankingBody): Promise; export declare function usePostRanking(options?: Omit, 'mutationFn'>): UseMutationResult; export declare function putRanking(api: ApiContext, id: string, body: RankingBody): Promise; export type PutRankingVariables = RankingBody & { id: string; }; export declare function usePutRanking(options?: Omit, 'mutationFn'>): UseMutationResult; export declare function deleteRanking(api: ApiContext, id: string): Promise; export declare function useDeleteRanking(options?: Omit, 'mutationFn'>): UseMutationResult;