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 H3Error { error?: true; } /** @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> & { status?: number; statusText?: string; })) => NuxtError;