import type { H3Error } from '@nuxt/nitro-server/h3'; import type { Ref } from 'vue'; import type { NuxtApp, NuxtPayload } from '../nuxt.js'; export declare const NUXT_ERROR_SIGNATURE: "__nuxt_error"; /** @since 3.0.0 */ export declare const useError: () => Ref; export interface NuxtError extends Omit, 'statusCode' | 'statusMessage'>, Error { error?: true; status?: number; statusText?: string; /** @deprecated Use `status` */ statusCode?: H3Error['statusCode']; /** @deprecated Use `statusText` */ statusMessage?: H3Error['statusMessage']; } /** @since 3.0.0 */ export declare const showError: (error: string | Error | (Partial> & { status?: number; statusText?: string; })) => NuxtError; /** * Notify the app of an error caught for a crawler without rendering the error * page, so the bot indexes the server-rendered HTML instead (#32137, #35338). * * @internal */ export declare const _notifyCrawlerError: (nuxtApp: NuxtApp, error: Error) => Promise | void; /** * Show the error page unless the current client is a crawler, in which case the * bot receives the already server-rendered HTML instead (#32137, #35338). * * @internal */ export declare const _showErrorUnlessCrawler: (nuxtApp: NuxtApp, error: Error) => Promise; /** @since 3.0.0 */ export declare const clearError: (options?: { redirect?: string; }) => Promise; /** @since 3.0.0 */ export declare const isNuxtError: (error: unknown) => error is NuxtError; /** @since 3.0.0 */ export declare const createError: (error: string | Error | Partial>) => NuxtError;