/** * Google Calendar API Client * * Supports two auth modes: * 1. Service Account (GOOGLE_CALENDAR_CREDENTIALS as JSON) * 2. OAuth2 (GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN) * * Config can also be stored in ~/.personal-suite/config.json under "calendar" key. */ export interface CalendarEvent { id: string; summary: string; description: string | null; location: string | null; start: string; end: string; allDay: boolean; status: string; htmlLink: string | null; creator: string | null; organizer: string | null; attendees: EventAttendee[]; recurringEventId: string | null; created: string | null; updated: string | null; } export interface EventAttendee { email: string; displayName: string | null; responseStatus: string; self: boolean; } export interface CalendarInfo { id: string; summary: string; description: string | null; primary: boolean; timeZone: string | null; backgroundColor: string | null; accessRole: string; } export interface TimeSlot { start: string; end: string; durationMinutes: number; } export interface CreateEventInput { summary: string; start: string; end: string; description?: string; location?: string; attendees?: string[]; timeZone?: string; recurrence?: string; addMeetLink?: boolean; } export interface ConflictWarning { eventName: string; eventTime: string; } export interface UpdateEventInput { eventId: string; summary?: string; start?: string; end?: string; description?: string; location?: string; attendees?: string[]; timeZone?: string; } export interface ListEventsInput { timeMin?: string; timeMax?: string; maxResults?: number; calendarId?: string; query?: string; } export interface DailySummary { date: string; totalEvents: number; allDayEvents: CalendarEvent[]; timedEvents: CalendarEvent[]; busyMinutes: number; freeMinutes: number; firstEvent: string | null; lastEvent: string | null; } export declare function resolveRecurrence(input: string): string[]; export declare function checkConflicts(start: string, end: string, calendarId?: string): Promise; export declare function listEvents(input: ListEventsInput): Promise; export declare function getEvent(eventId: string, calendarId?: string): Promise; export declare function createEvent(input: CreateEventInput, calendarId?: string): Promise<{ event: CalendarEvent; conflicts: ConflictWarning[]; }>; export declare function updateEvent(input: UpdateEventInput, calendarId?: string): Promise; export declare function deleteEvent(eventId: string, calendarId?: string): Promise; export declare function searchEvents(query: string, maxResults?: number, calendarId?: string): Promise; export declare function listCalendars(): Promise; export declare function checkAvailability(dateStr: string, durationMinutes: number, startHour: number, endHour: number, calendarId?: string): Promise; export declare function getUpcoming(count: number, calendarId?: string): Promise; export declare function getDailySummary(dateStr: string, calendarId?: string): Promise; //# sourceMappingURL=google-calendar.d.ts.map