import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { PropsWithChildren, ComponentProps, ComponentType, ReactNode } from 'react'; import { P as PropsWithoutChildren } from './PropsWithoutChildren-B-UcudRB.js'; declare const ErrorBoundaryGroupContext: react.Context<{ reset: () => void; resetKey: number; } | undefined>; interface ErrorBoundaryGroupProps extends PropsWithChildren { /** * If you use blockOutside as true, ErrorBoundaryGroup will protect multiple ErrorBoundaries as its children from external ErrorBoundaryGroup's resetKey * @default false */ blockOutside?: boolean; } /** * ErrorBoundaryGroup is a wrapper component that allows you to manage multiple ErrorBoundaries easily. * ErrorBoundaries as children of nested ErrorBoundaryGroup will also be reset by parent ErrorBoundaryGroup.Consumer. * @see {@link https://suspensive.org/docs/react/ErrorBoundaryGroup Suspensive Docs} */ declare const ErrorBoundaryGroup: (({ blockOutside, children }: ErrorBoundaryGroupProps) => react_jsx_runtime.JSX.Element) & { displayName: string; with: = Record>(errorBoundaryGroupProps: PropsWithoutChildren | undefined, Component: ComponentType) => ((props: TProps) => react_jsx_runtime.JSX.Element) & { displayName: string; }; Consumer: ({ children, }: { children: (errorBoundaryGroup: ReturnType) => ReactNode; }) => react_jsx_runtime.JSX.Element; }; /** * This hook provides the reset method for the ErrorBoundaryGroup. * Must be used within an ErrorBoundaryGroup component. * @see {@link https://suspensive.org/docs/react/ErrorBoundaryGroup#useerrorboundarygroup Suspensive Docs} */ declare const useErrorBoundaryGroup: () => { reset: () => void; }; export { ErrorBoundaryGroup, ErrorBoundaryGroupContext, type ErrorBoundaryGroupProps, useErrorBoundaryGroup };