import { type ReactNode } from "react";
export declare function useErrorBoundary(): {
    throwError: (err: Error) => void;
    resetError: () => void;
    ErrorBoundary: ({ children, fallback }: {
        children: ReactNode;
        fallback: ReactNode;
    }) => ReactNode;
    error: Error | null;
};
