import { JSX } from "solid-js"; //#region src/solid/SchemaErrorBoundary.d.ts /** * Props accepted by {@link SchemaErrorBoundary}. * * @group Components */ interface SchemaErrorBoundaryProps { /** * Called with the caught error and a `reset` callback that clears * the error state so children can re-mount. Mirrors the React * adapter's signature. */ fallback: (error: Error, reset: () => void) => JSX.Element; children: JSX.Element; } /** * Catch rendering errors from ``, theme adapters, and * any descendant. Wraps Solid's built-in `` so the API * shape matches `react/SchemaErrorBoundary.tsx`. * * Solid's `ErrorBoundary` accepts `unknown` errors. The wrapper * coerces non-`Error` throws into a generic `Error` with the original * value's stringified form so consumers always receive an `Error` * instance. * * @group Components * @example * ```tsx *

{error.message}

}> * *
* ``` */ declare function SchemaErrorBoundary(props: SchemaErrorBoundaryProps): JSX.Element; //#endregion export { SchemaErrorBoundary, SchemaErrorBoundaryProps };