///
///
import type { Stats } from 'node:fs';
import type { FileRetryOptions, PathyOrString, PathyRemoveOptions } from './pathy.types.js';
/**
* Read a file, returning the raw binary content. Optionally retry
* if the file is locked.
*/
export declare function readSafe(path: PathyOrString, options?: FileRetryOptions): Promise;
export declare function writeSafe(path: PathyOrString, content: Buffer | string, options?: FileRetryOptions): Promise;
export declare function existsSafe(path: PathyOrString, options?: FileRetryOptions): Promise;
/**
* Try to get stats for a file. If there is an error due to that file
* not existing, throw. Otherwise retry if requested.
*/
export declare function statSafe(path: PathyOrString, options?: FileRetryOptions): Promise;
export declare function rmSafe(path: PathyOrString, options?: PathyRemoveOptions): Promise;
export declare function isMissingError(err: any): boolean;
export declare function isPermissionsError(err: any): boolean;
//# sourceMappingURL=fsSafe.d.ts.map