import React, { FunctionComponent } from 'react'; import { PostHogContext } from './PostHogContext'; export type Properties = Record; export type PostHogErrorBoundaryFallbackProps = { error: unknown; componentStack: string; }; export type PostHogErrorBoundaryProps = { children?: React.ReactNode | (() => React.ReactNode); fallback?: React.ReactNode | FunctionComponent; additionalProperties?: Properties | ((error: unknown) => Properties); }; type PostHogErrorBoundaryState = { componentStack: string | null; error: unknown; }; export declare class PostHogErrorBoundary extends React.Component { static contextType: React.Context<{ client: import("./posthog-rn").PostHog; }>; context: React.ContextType; constructor(props: PostHogErrorBoundaryProps); static getDerivedStateFromError(error: unknown): Partial; componentDidCatch(error: unknown, errorInfo: React.ErrorInfo): void; render(): React.ReactNode; } export {};