import { type CalendarCreatedBy, type CalendarEvent, type CalendarEventCategory, type CalendarEventStatus, type CalendarRecurrenceFreq } from '@xopcai/gateway-contract'; export interface CalendarEventPersistRecord { id: string; title: string; startAtMs: number; endAtMs: number; allDay: boolean; timezone: string; status: CalendarEventStatus; category: CalendarEventCategory; location: string | null; meetingUrl: string | null; notes: string | null; source: string; sourceUrl: string | null; externalKey: string | null; recurrenceFreq: CalendarRecurrenceFreq | null; recurrenceInterval: number; recurrenceUntilMs: number | null; recurrenceCount: number | null; recurrenceExceptions: string[]; createdBy: CalendarCreatedBy; conversationId: string | null; revision: number; createdAtMs: number; updatedAtMs: number; } export declare function insertCalendarEvent(record: CalendarEventPersistRecord): CalendarEvent; export declare function updateCalendarEventRecord(record: CalendarEventPersistRecord): CalendarEvent; export declare function deleteCalendarEventById(eventId: string): boolean; export declare function getCalendarEventById(eventId: string): CalendarEvent | null; export declare function getCalendarEventByExternalKey(source: string, externalKey: string): CalendarEvent | null; export declare function findExactTimeDuplicate(title: string, startAtMs: number, endAtMs: number): CalendarEvent | null; export declare function listCandidateEventsForRange(rangeStartMs: number, rangeEndMs: number, options?: { includeCancelled?: boolean; }): CalendarEvent[]; export declare function listAllCalendarEvents(options?: { includeCancelled?: boolean; limit?: number; offset?: number; }): CalendarEvent[]; export declare function listDistinctCalendarSources(): string[];