/// import { getCreatorByFileId, getCreatorByPath } from './common'; export * from './errors'; import { configureOcsConnection } from './ocs/ocs'; import { OcsShareType, OcsSharePermissions, type OcsEditUserField, type OcsNewUser, type OcsUser } from './ocs/types'; import { NextcloudClientProperties, type NextcloudClientInterface, type ConnectionOptions } from './types'; export { createOwnCloudFileDetailProperty, createNextCloudFileDetailProperty, } from './helper'; export { createDetailProperty } from './webdav.utils'; export declare class NextcloudClient extends NextcloudClientProperties implements NextcloudClientInterface { private options; configureOcsConnection: typeof configureOcsConnection; createFolderHierarchy: (path: string) => Promise; getFolderFileDetails: (path: string, extraProperties?: import("./webdav.utils").DetailProperty[]) => Promise<{ isFile: boolean; isDirectory: boolean; lastModified: string; href: string; name: string; extraProperties: import("webdav").DAVResultResponseProps & Record; filename: string; basename: string; lastmod: string; size: number; type: "file" | "directory"; etag: string; mime?: string; props: import("webdav").DAVResultResponseProps & Record; }[]>; getFolderProperties: (path: string, extraProperties?: import("./webdav.utils").DetailProperty[]) => Promise>; checkConnectivity: () => Promise; downloadToStream: (path: string, writeStream: import("stream").Writable) => Promise; uploadFromStream: (path: string, readStream: import("stream").Readable) => Promise; getFilesDetailed: { []>(path: string, options: import("webdav").GetDirectoryContentsOptions & { details: true; } & import("./webdav").WebDAVMethodOptionProperties): Promise, any>; })[]>>; (path: string, options: import("webdav").GetDirectoryContentsOptions & { details?: false; }): Promise; (path: string, options?: import("webdav").GetDirectoryContentsOptions): Promise; }; getWriteStream: (path: string, options?: import("webdav").CreateWriteStreamOptions & { onFinished: () => void; }) => Promise; getReadStream: (path: string, options?: import("webdav").CreateReadStreamOptions) => Promise; touchFolder: (path: string, options?: import("webdav").CreateDirectoryOptions) => Promise; getPathInfo: { []>(path: string, options: import("webdav").StatOptions & { details: true; } & import("./webdav").WebDAVMethodOptionProperties): Promise, any>; }>>; (path: string, options: import("webdav").StatOptions & { details?: false; }): Promise; (path: string, options?: import("webdav").StatOptions): Promise; }; getFiles: (path: string) => Promise; rename: (path: string, newName: string, options?: import("webdav").WebDAVMethodOptions) => Promise; remove: (path: string, options?: import("webdav").WebDAVMethodOptions) => Promise; exists: (path: string, options?: import("webdav").WebDAVMethodOptions) => Promise; move: (path: string, destination: string, options?: import("webdav").WebDAVMethodOptions) => Promise; put: (path: string, content: string | import("stream").Readable | import("webdav").BufferLike, options?: import("webdav").PutFileContentsOptions) => Promise; get: (path: string, options?: import("webdav").GetFileContentsOptions) => Promise>; getCreatorByFileId: typeof getCreatorByFileId; getCreatorByPath: typeof getCreatorByPath; activities: { get: (fileId: number | string, sort?: 'asc' | 'desc', limit?: number, sinceActivityId?: number) => Promise; }; users: { removeSubAdminFromGroup: (userId: string, groupId: string) => Promise; addSubAdminToGroup: (userId: string, groupId: string) => Promise; resendWelcomeEmail: (userId: string) => Promise; getSubAdminGroups: (userId: string) => Promise; removeFromGroup: (userId: string, groupId: string) => Promise; setEnabled: (userId: string, isEnabled: boolean) => Promise; addToGroup: (userId: string, groupId: string) => Promise; getGroups: (userId: string) => Promise; delete: (userId: string) => Promise; edit: (userId: string, field: OcsEditUserField, value: string) => Promise; list: (search?: string, limit?: number, offset?: number) => Promise; add: (user: OcsNewUser) => Promise; get: (userId: string) => Promise; }; groups: { getSubAdmins: (groupId: string) => Promise; getUsers: (groupId: string) => Promise; delete: (groupId: string) => Promise; list: (search?: string, limit?: number, offset?: number) => Promise; add: (groupId: string) => Promise; }; shares: { delete: (shareId: number | string) => Promise; edit: { permissions: (shareId: number | string, permissions: OcsSharePermissions) => Promise; password: (shareId: number | string, password: string) => Promise; publicUpload: (shareId: number | string, isPublicUpload: boolean) => Promise; expireDate: (shareId: number | string, expireDate: string) => Promise; note: (shareId: number | string, note: string) => Promise; }; list: (path?: string, includeReshares?: boolean, showForSubFiles?: boolean) => Promise; add: (path: string, shareType: OcsShareType, shareWith?: string, permissions?: OcsSharePermissions, password?: string, publicUpload?: boolean) => Promise; get: (shareId: number | string) => Promise; }; groupfolders: { getFolders: () => Promise; getFolder: (fid: number) => Promise; addFolder: (mountpoint: string) => Promise; removeFolder: (fid: number) => Promise; addGroup: (fid: number, gid: string) => Promise; removeGroup: (fid: number, gid: string) => Promise; setPermissions: (fid: number, gid: string, permissions: number) => Promise; enableACL: (fid: number, enable: boolean) => Promise; setManageACL: (fid: number, type: 'group' | 'user', id: string, manageACL: boolean) => Promise; setQuota: (fid: number, quota: number) => Promise; renameFolder: (fid: number, mountpoint: string) => Promise; }; constructor(options: ConnectionOptions); as(username: string, password: string): NextcloudClient; /** * Wrap a given prototype function to ensure such that the function called is * using the initialized WebDAV connection. * @param fn The function to wrap * @returns The wrapped function */ private wrapWebDav; } export default NextcloudClient; //# sourceMappingURL=client.d.ts.map