import type { RmOptions } from './types.js'; /** * Remove a file or directory synchronously. * * This is a ponyfill that exactly matches Node.js fs.rmSync behavior: * - Uses native fs.rmSync when available (Node 14.14+) * - Falls back to custom implementation for older Node versions * * On Windows, we handle symlinks specially because native fs.rmSync * can fail with ENOENT when calling stat on broken symlinks. * * @param path - Path to remove * @param options - Options * @param options.recursive - Remove directories recursively. Default: false * @param options.force - Ignore errors if path doesn't exist. Default: false * @param options.maxRetries - Retries on EBUSY/EPERM/etc. Default: 0 * @param options.retryDelay - Delay between retries in ms. Default: 100 */ declare function rmSync(path: string, options?: RmOptions): void; export default rmSync;