import type { PathSpec } from '@struktoai/mirage-core/types'; import type { NextcloudAccessor } from '../../accessor/nextcloud.ts'; /** * Remove an empty collection. * * WebDAV DELETE on a collection is recursive (RFC 4918 9.6.1), so this is * the same request `rmR` sends and the emptiness check is the only thing * separating them. Without it `rmdir` destroyed the whole subtree for * every caller that does not pre-check emptiness itself, and the command * builders are the only callers that do: FUSE, `ws.fs` and the sandbox * runtimes all reach the op directly. * * PROPFIND on a collection returns the collection itself, so an entry * naming the collection is not a child -- the same self-entry rule * `readdir` documents. */ export declare function rmdir(accessor: NextcloudAccessor, path: PathSpec): Promise; //# sourceMappingURL=rmdir.d.ts.map