import { GetListResponse } from '@dvn/core/api/dto/list';
import { Unavailability } from '@dvn/takvim/api/models/Unavailability';
import { CreateItemResponse } from '../../../mentornity-js-client/api';
import { Availability, CalendarConfig, Event } from './models';
export interface TakvimApi {
  getCalendarConfig: (id: string) => Promise<CalendarConfig>;
  getAvailabilities: (availabilityConfigId: string) => Promise<GetListResponse<Availability>>;
  getAvailabilitiesOfUser: (calendarConfigId: string, userId: string) => Promise<GetListResponse<Availability>>;
  getUnavailabilitiesOfUser: (calendarConfigId: string, userId: string, startTime: string, endTime: string) => Promise<GetListResponse<Unavailability>>;
  getMeetingsOfUser: (calendarConfigId: string, guestIDs: string[]) => Promise<GetListResponse<Event>>;
  createMeeting: (meeting: Partial<Event>) => Promise<CreateItemResponse>;
}
