import React from 'react'; import { JSX } from 'react'; import { ErrorBoundaryProps } from './ErrorBoundary.js'; /** * Handles loading and error conditions of Suspense * @see https://dataclient.io/docs/api/AsyncBoundary */ declare function AsyncBoundary({ children, errorComponent, fallback, ...errorProps }: Props): JSX.Element; declare const _default: typeof AsyncBoundary; export default _default; export interface Props { children: React.ReactNode; fallback?: React.ReactNode; errorClassName?: string; /** Renders when an error is caught */ errorComponent?: ErrorBoundaryProps['fallbackComponent']; /** Subscription handler to reset error state on events like URL location changes */ listen?: ErrorBoundaryProps['listen']; } //# sourceMappingURL=AsyncBoundary.d.ts.map