UNPKG

tsdav

Version:

WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser

29 lines (28 loc) 936 B
import 'cross-fetch/polyfill'; import { DAVAccount } from './types/models'; export declare const serviceDiscovery: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise<string>; export declare const fetchPrincipalUrl: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise<string>; export declare const fetchHomeUrl: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; fetchOptions?: RequestInit; }) => Promise<string>; export declare const createAccount: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; loadCollections?: boolean; loadObjects?: boolean; fetchOptions?: RequestInit; }) => Promise<DAVAccount>;