UNPKG

tsdav

Version:

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

33 lines (32 loc) 1.05 kB
import { DAVAccount } from './types/models'; import { fetch } from './util/fetch'; export declare const serviceDiscovery: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; fetchOptions?: RequestInit; fetch?: typeof fetch; }) => Promise<string>; export declare const fetchPrincipalUrl: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; fetchOptions?: RequestInit; fetch?: typeof fetch; }) => Promise<string>; export declare const fetchHomeUrl: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; fetchOptions?: RequestInit; fetch?: typeof fetch; }) => Promise<string>; export declare const createAccount: (params: { account: DAVAccount; headers?: Record<string, string>; headersToExclude?: string[]; loadCollections?: boolean; loadObjects?: boolean; fetchOptions?: RequestInit; fetch?: typeof fetch; }) => Promise<DAVAccount>;