import type { ParametersNoFirst, SyncVersionOf } from "../../../common/src/types.js"; /** * @see {@link fsConstants_} */ export declare const fsConstants: typeof import("node:fs").constants; /** * @see {@link isAccessible} */ export type IsAccessibleOptions = { /** * The type of access check to perform. Defaults to `fs.constants.R_OK`. * * @see {@link fs.constants} */ fsConstant?: number; /** * Use the internal cached result from a previous run, if available. * * Unless `useCached` is `false`, the results returned by this function will * always strictly equal (`===`) each other with respect to call signature. * * @see {@link cache} */ useCached: boolean; }; declare function isAccessible_(shouldRunSynchronously: false, path: string, options: IsAccessibleOptions): Promise; declare function isAccessible_(shouldRunSynchronously: true, path: string, options: IsAccessibleOptions): boolean; /** * Sugar for asynchronous `access(path, fsConstant)` that returns `true` or * `false` rather than rejecting or resolving to `undefined`. Also supports * `file:///` protocol URL paths. * * **NOTE: the result of this function is memoized! This does NOT _necessarily_ * mean results will strictly equal each other. See `useCached` in this specific * function's options for details.** To fetch fresh results, set the `useCached` * option to `false` or clear the internal cache with {@link cache.clear}. */ export declare function isAccessible(...args: ParametersNoFirst): Promise; export declare namespace isAccessible { /** * Sugar for the synchronous `access(path, fsConstant)` that returns `true` or * `false` rather than throwing or returning `void`. Also supports `file:///` * protocol URL paths. * * **NOTE: the result of this function is memoized! This does NOT * _necessarily_ mean results will strictly equal each other. See `useCached` * in this specific function's options for details.** To fetch fresh results, * set the `useCached` option to `false` or clear the internal cache with * {@link cache.clear}. */ const sync: SyncVersionOf; } export {};