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 { PhysicalEvent, PhysicalEventType } from './model'; export declare function getPhysicalEvent(api: ApiContext, id: string): Promise; export declare function usePhysicalEvent(id?: string, options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; export interface GetPhysicalEventsQuery extends ListRequestQuery { match?: string; composition?: string; } export type PhysicalEventList = PaginatedList<'physical_events', PhysicalEvent>; export declare function getPhysicalEvents(api: ApiContext, query?: GetPhysicalEventsQuery): Promise; export declare function usePhysicalEvents(query?: GetPhysicalEventsQuery, options?: Omit, 'queryKey' | 'queryFn'>): UseQueryResult; export interface PhysicalEventBody extends RequestBody { type?: PhysicalEventType; name?: string | null; description?: string | null; beginning?: string | null; end?: string | null; parent_event?: string | null; } export declare function postPhysicalEvent(api: ApiContext, body: PhysicalEventBody): Promise; export declare function usePostPhysicalEvent(options?: Omit, 'mutationFn'>): UseMutationResult; export declare function putPhysicalEvent(api: ApiContext, id: string, body: PhysicalEventBody): Promise; export type PutPhysicalEventVariables = PhysicalEventBody & { id: string; }; export declare function usePutPhysicalEvent(options?: Omit, 'mutationFn'>): UseMutationResult; export interface PostPhysicalEventIconBody extends RequestBody { icon: File; } export declare function postPhysicalEventIcon(api: ApiContext, id: string, body: PostPhysicalEventIconBody): Promise; export type PostPhysicalEventIconVariables = PostPhysicalEventIconBody & { id: string; }; export declare function usePostPhysicalEventPicture(options?: Omit, 'mutationFn'>): UseMutationResult;