import { type ReactNode } from 'react'; import { type ErrorPageKind } from './Provider.js'; export type { ErrorPageKind } from './Provider.js'; export interface ErrorPageProps { /** The HTTP status, shown large over the title and left out of what a * screen reader reads, since the title says it in words. It also picks the * default words: 404, 403, 401, 502 to 504, or another 5xx. */ status?: number | string | undefined; /** What went wrong, when no status says it, such as `network` for a request * that never reached the server. Picks the default title and description. */ kind?: ErrorPageKind | undefined; /** By default the kind's title, then "Error {status}". With neither, the * description becomes the title, so a message alone still heads the page. */ title?: ReactNode; /** By default the kind's description. `null` shows none. */ description?: ReactNode; /** `page` fills its container over a backdrop of drifting glows; `card` * fills a card, clipping the backdrop to its corners; `inline` sits in a * section's flow with no backdrop. */ layout?: 'page' | 'card' | 'inline' | undefined; /** The way back. By default back through the history when there is some, * and home (`/`) when there isn't; `href` goes there instead, such as * "Back to sessions". `false` offers none. */ back?: { href?: string | undefined; label?: string | undefined; } | false | undefined; /** More ways on, before the way back, such as "Sign in" after a 401. */ actions?: ReactNode; /** The title's level: 1 for a page, 2 in a card or inline. */ headingLevel?: 1 | 2 | 3 | undefined; className?: string | undefined; testId?: string | undefined; } /** The kind of error an HTTP status names, or none for one without its own words. */ export declare function errorPageKind(status: number | string | undefined): ErrorPageKind | undefined; /** A page, card or section that could not show what it was asked for: the * status large in the theme's gradient, what happened in words, and the way * back. Every word defaults from the status, and the host may pass its own. */ export declare function ErrorPage({ status, kind: kindProp, title, description, layout, back, actions, headingLevel, className, testId, }: ErrorPageProps): import("react").JSX.Element;