export interface FileStat { filename: string; type: 'file' | 'directory'; } export interface WebDavLike { getDirectoryContents(path: string): Promise>; getFileContents(path: string, opts: { format: 'text'; }): Promise; putFileContents(path: string, data: string, opts?: { headers?: Record; }): Promise; deleteFile(path: string): Promise; } export interface WebDavOptions { collectionUrl: string; username: string; password: string; } export interface WebDavDeps { createClient?: (url: string, opts: { username?: string; password?: string; }) => WebDavLike; } export interface DavFileOps { list(path?: string): Promise; read(file: string): Promise; write(file: string, content: string): Promise; remove(file: string): Promise; } export declare class WebDavClient implements DavFileOps { private readonly client; constructor(opts: WebDavOptions, deps?: WebDavDeps); private norm; list(path?: string): Promise; read(file: string): Promise; write(file: string, content: string): Promise; remove(file: string): Promise; }