import type { VNode } from 'vue'; import type { AppConfig } from '@nuxt/schema'; import type { NuxtError } from '#app'; import theme from '#build/b24ui/error'; import type { AvatarProps, ButtonProps, IconComponent } from '../types'; import type { ComponentConfig } from '../types/tv'; type Error = ComponentConfig; export interface ErrorProps { /** * The element or component this component should render as. * @defaultValue 'main' */ as?: any; /** * The icon displayed above the status code. * @IconComponent */ icon?: IconComponent; /** * The avatar displayed above the status code. * Used only when `icon` is not set. */ avatar?: AvatarProps; /** * Default `color` for the inner `B24Avatar`. Overridden by `avatar.color` when set. */ color?: AvatarProps['color']; error?: Partial; /** * The URL to redirect to when the error is cleared. * @defaultValue '/' */ redirect?: string; /** * Display a button to clear the error in the links slot. * `{ size: 'lg', color: 'air-primary', label: 'Back to home' }`{lang="ts-type"} * @defaultValue true */ clear?: boolean | ButtonProps; class?: any; b24ui?: Error['slots']; } export interface ErrorSlots { default?(props?: {}): VNode[]; leading?(props: { b24ui: Error['b24ui']; }): VNode[]; statusCode?(props?: {}): VNode[]; statusMessage?(props?: {}): VNode[]; message?(props?: {}): VNode[]; links?(props?: {}): VNode[]; } declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: __VLS_WithSlots & Readonly<{}>, { as: any; clear: boolean | ButtonProps; redirect: string; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ErrorSlots>; type __VLS_WithSlots = T & { new (): { $slots: S; }; };