import { Event, EventType, EventVisibility } from "../../interfaces/models/Event"; import { CoverUploadConfig, GalleryUploadConfig } from "./useCreateEvent"; export interface UpdateEventProps { eventId: string; update: { title?: string; description?: string; startTime?: string; endTime?: string; timezone?: string; type?: EventType; url?: string; venueName?: string; address?: string; location?: { latitude: number; longitude: number; }; visibility?: EventVisibility; capacity?: number; allowMaybe?: boolean; guestListVisible?: boolean; metadata?: Record; /** * File IDs of existing event images to REMOVE (gallery photos and/or the * current cover). Combine with `gallery` (append) + `cover` (replace) to * fully curate the image set in one update. */ removeImageIds?: string[]; }; /** New cover image (single) — REPLACES the existing cover. Sends multipart. */ cover?: CoverUploadConfig; /** Gallery images (multi) — APPENDED to the event. Sends multipart. */ gallery?: GalleryUploadConfig; } declare function useUpdateEvent(): (props: UpdateEventProps) => Promise; export default useUpdateEvent;