import type { IndexCacheStore } from '../../../cache/index/store.ts'; import type { PathSpec, ResourceName } from '../../../types.ts'; import type { Accessor } from '../../../accessor/base.ts'; import { type RegisteredCommand } from '../../config.ts'; import { type CommandIO } from '../generic_bind/index.ts'; type UnlinkFn = (accessor: A, path: PathSpec, index?: IndexCacheStore) => Promise; /** * Build a backend's `rm` from its glob resolver and its unlink. * * Every API-backed mount spells the same GNU behaviour: report the operand * it could not remove, keep removing the rest, and exit 1 if any failed. * The unlink is wrapped with the same hidden/rule/mode chain the factory * gives the generic rm's slots, so this family enforces the session's * path axis like the command it stands in for. */ export declare function makeRm(resource: ResourceName, io: CommandIO, rawUnlink: UnlinkFn): RegisteredCommand[]; export {}; //# sourceMappingURL=rm_cmd.d.ts.map