import type { H3Error } from 'h3'; import type { Ref } from 'vue'; import type { 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; /** @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;