import { addressBookMultiGet as rawAddressBookMultiGet, addressBookQuery as rawAddressBookQuery, createVCard as rawCreateVCard, deleteVCard as rawDeleteVCard, fetchAddressBooks as rawFetchAddressBooks, fetchVCards as rawFetchVCards, updateVCard as rawUpdateVCard } from './addressBook'; import { calendarMultiGet as rawCalendarMultiGet, calendarQuery as rawCalendarQuery, createCalendarObject as rawCreateCalendarObject, deleteCalendarObject as rawDeleteCalendarObject, fetchCalendarObjects as rawFetchCalendarObjects, fetchCalendars as rawFetchCalendars, makeCalendar as rawMakeCalendar, updateCalendarObject as rawUpdateCalendarObject, fetchCalendarUserAddresses as rawFetchCalendarUserAddresses } from './calendar'; import { collectionQuery as rawCollectionQuery, isCollectionDirty as rawIsCollectionDirty, makeCollection as rawMakeCollection, supportedReportSet as rawSupportedReportSet, syncCollection as rawSyncCollection } from './collection'; import { createObject as rawCreateObject, deleteObject as rawDeleteObject, propfind as rawPropfind, updateObject as rawUpdateObject } from './request'; import { DAVRequest, DAVResponse } from './types/DAVTypes'; import { SmartCollectionSync, SyncCalendars } from './types/functionsOverloads'; import { DAVAccount, DAVAddressBook, DAVCalendar, DAVCalendarObject, DAVCollection, DAVCredentials, DAVObject, DAVVCard } from './types/models'; import { Optional } from './util/typeHelpers'; export declare const createDAVClient: (params: { serverUrl: string; credentials: DAVCredentials; authMethod?: "Basic" | "Oauth" | "Digest" | "Custom"; authFunction?: (credentials: DAVCredentials) => Promise>; defaultAccountType?: DAVAccount["accountType"] | undefined; }) => Promise<{ davRequest: (params0: { url: string; init: DAVRequest; convertIncoming?: boolean; parseOutgoing?: boolean; }) => Promise; propfind: (params: { url: string; props: import("xml-js/types").ElementCompact; depth?: import("./types/DAVTypes").DAVDepth; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; createAccount: (params0: { account: Optional; headers?: Record; loadCollections?: boolean; loadObjects?: boolean; }) => Promise; createObject: (params: { url: string; data: BodyInit; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; updateObject: (params: { url: string; data: BodyInit; etag?: string; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; deleteObject: (params: { url: string; etag?: string; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; calendarQuery: (params: { url: string; props: import("xml-js/types").ElementCompact; filters?: import("xml-js/types").ElementCompact; timezone?: string; depth?: import("./types/DAVTypes").DAVDepth; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; addressBookQuery: (params: { url: string; props: import("xml-js/types").ElementCompact; filters?: import("xml-js/types").ElementCompact; depth?: import("./types/DAVTypes").DAVDepth; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; collectionQuery: (params: { url: string; body: any; depth?: import("./types/DAVTypes").DAVDepth; defaultNamespace?: import("./consts").DAVNamespaceShort; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; makeCollection: (params: { url: string; props?: import("xml-js/types").ElementCompact; depth?: import("./types/DAVTypes").DAVDepth; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; calendarMultiGet: (params: { url: string; props: import("xml-js/types").ElementCompact; objectUrls?: string[]; timezone?: string; depth: import("./types/DAVTypes").DAVDepth; filters?: import("xml-js/types").ElementCompact; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; makeCalendar: (params: { url: string; props: import("xml-js/types").ElementCompact; depth?: import("./types/DAVTypes").DAVDepth; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; syncCollection: (params: { url: string; props: import("xml-js/types").ElementCompact; headers?: Record; headersToExclude?: string[]; syncLevel?: number; syncToken?: string; fetchOptions?: RequestInit; }) => Promise; supportedReportSet: (params: { collection: DAVCollection; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; isCollectionDirty: (params: { collection: DAVCollection; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise<{ isDirty: boolean; newCtag: string; }>; smartCollectionSync: SmartCollectionSync; fetchCalendars: (params?: { account?: DAVAccount; props?: import("xml-js/types").ElementCompact; projectedProps?: Record; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; } | undefined) => Promise; fetchCalendarUserAddresses: (params: { account: DAVAccount; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; fetchCalendarObjects: (params: { calendar: DAVCalendar; objectUrls?: string[]; filters?: import("xml-js/types").ElementCompact; timeRange?: { start: string; end: string; }; expand?: boolean; urlFilter?: (url: string) => boolean; headers?: Record; headersToExclude?: string[]; useMultiGet?: boolean; fetchOptions?: RequestInit; }) => Promise; createCalendarObject: (params: { calendar: DAVCalendar; iCalString: string; filename: string; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; updateCalendarObject: (params: { calendarObject: DAVCalendarObject; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; deleteCalendarObject: (params: { calendarObject: DAVCalendarObject; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; syncCalendars: SyncCalendars; fetchAddressBooks: (params?: { account?: DAVAccount; props?: import("xml-js/types").ElementCompact; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; } | undefined) => Promise; addressBookMultiGet: (params: { url: string; props: import("xml-js/types").ElementCompact; objectUrls: string[]; depth: import("./types/DAVTypes").DAVDepth; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; fetchVCards: (params: { addressBook: DAVAddressBook; headers?: Record; objectUrls?: string[]; urlFilter?: (url: string) => boolean; useMultiGet?: boolean; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; createVCard: (params: { addressBook: DAVAddressBook; vCardString: string; filename: string; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; updateVCard: (params: { vCard: DAVVCard; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; deleteVCard: (params: { vCard: DAVVCard; headers?: Record; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise; }>; export declare class DAVClient { serverUrl: string; credentials: DAVCredentials; authMethod: 'Basic' | 'Oauth' | 'Digest' | 'Custom'; accountType: DAVAccount['accountType']; authHeaders?: Record; account?: DAVAccount; fetchOptions?: RequestInit; authFunction?: (credentials: DAVCredentials) => Promise>; constructor(params: { serverUrl: string; credentials: DAVCredentials; authMethod?: 'Basic' | 'Oauth' | 'Digest' | 'Custom'; authFunction?: (credentials: DAVCredentials) => Promise>; defaultAccountType?: DAVAccount['accountType'] | undefined; fetchOptions?: RequestInit; }); login(): Promise; davRequest(params0: { url: string; init: DAVRequest; convertIncoming?: boolean; parseOutgoing?: boolean; fetchOptions?: RequestInit; }): Promise; createObject(...params: Parameters): Promise; updateObject(...params: Parameters): Promise; deleteObject(...params: Parameters): Promise; propfind(...params: Parameters): Promise; createAccount(params0: { account: Optional; headers?: Record; loadCollections?: boolean; loadObjects?: boolean; fetchOptions?: RequestInit; }): Promise; collectionQuery(...params: Parameters): Promise; makeCollection(...params: Parameters): Promise; syncCollection(...params: Parameters): Promise; supportedReportSet(...params: Parameters): Promise; isCollectionDirty(...params: Parameters): Promise<{ isDirty: boolean; newCtag: string; }>; smartCollectionSync(param: { collection: T; method?: 'basic' | 'webdav'; headers?: Record; fetchOptions?: RequestInit; account?: DAVAccount; detailedResult?: false; }): Promise; smartCollectionSync(param: { collection: T; method?: 'basic' | 'webdav'; headers?: Record; fetchOptions?: RequestInit; account?: DAVAccount; detailedResult: true; }): Promise & { objects: { created: DAVObject[]; updated: DAVObject[]; deleted: DAVObject[]; }; }>; calendarQuery(...params: Parameters): Promise; makeCalendar(...params: Parameters): Promise; calendarMultiGet(...params: Parameters): Promise; fetchCalendars(...params: Parameters): Promise; fetchCalendarUserAddresses(...params: Parameters): Promise; fetchCalendarObjects(...params: Parameters): Promise; createCalendarObject(...params: Parameters): Promise; updateCalendarObject(...params: Parameters): Promise; deleteCalendarObject(...params: Parameters): Promise; syncCalendars(...params: Parameters): Promise>; addressBookQuery(...params: Parameters): Promise; addressBookMultiGet(...params: Parameters): Promise; fetchAddressBooks(...params: Parameters): Promise; fetchVCards(...params: Parameters): Promise; createVCard(...params: Parameters): Promise; updateVCard(...params: Parameters): Promise; deleteVCard(...params: Parameters): Promise; }