import { CLIError } from "@oclif/core/errors";
/**
 * Error thrown when a file or directory is not found
 *
 * `code` is always `ENOENT` to mirror Node.js behavior when a file is not found
 *
 * @internal
 */
declare class NotFoundError extends Error {
  code: string;
  path?: string;
  constructor(message: string, path?: string);
}
/**
 * Returns whether or not the given error is a `NotFoundError`
 *
 * @param err - The error to check
 * @returns `true` if the error is a `NotFoundError`, `false` otherwise
 * @internal
 */
declare function isNotFoundError(err: unknown): err is NotFoundError;
/**
 * Error thrown when a project root directory cannot be found.
 *
 * This occurs when the CLI is run outside a Sanity project directory
 * (one containing `sanity.config.(ts|js)` or `sanity.cli.(ts|js)`).
 *
 * Extends `CLIError` to suppress stack traces in user-facing output.
 *
 * @internal
 */
declare class ProjectRootNotFoundError extends CLIError {
  constructor(message: string, options?: {
    cause?: Error;
    suggestions?: string[];
  });
}
/**
 * Returns whether or not the given error is a `ProjectRootNotFoundError`
 *
 * @param err - The error to check
 * @returns `true` if the error is a `ProjectRootNotFoundError`, `false` otherwise
 * @internal
 */
declare function isProjectRootNotFoundError(err: unknown): err is ProjectRootNotFoundError;
export { isNotFoundError as i, isProjectRootNotFoundError as n, NotFoundError as r, ProjectRootNotFoundError as t };
//# sourceMappingURL=ProjectRootNotFoundError-RgthN9uy.d.ts.map