import { ReactNode } from 'react'; /** * Captured console error with metadata */ export interface ConsoleError { message: string; source?: string; lineno?: number; colno?: number; timestamp: number; } /** * Context value for bug report error capture */ export interface BugReportContextValue { /** Get all captured console errors */ getConsoleErrors: () => ConsoleError[]; /** Clear all captured console errors */ clearConsoleErrors: () => void; } export interface BugReportProviderProps { children: ReactNode; /** Maximum number of errors to capture (default: 20) */ maxErrors?: number; } /** * Provider component that captures console errors for bug reports. * Wrap your app with this provider to enable error capture. * * @example * ```tsx * import { BugReportProvider } from '@convex-dev/feedback/react'; * * function App() { * return ( * * * * ); * } * ``` */ export declare function BugReportProvider({ children, maxErrors }: BugReportProviderProps): import("react/jsx-runtime").JSX.Element; /** * Hook to access bug report context for error capture. * Must be used within a BugReportProvider. * * @example * ```tsx * import { useBugReportContext } from '@convex-dev/feedback/react'; * * function MyComponent() { * const { getConsoleErrors, clearConsoleErrors } = useBugReportContext(); * // ... * } * ``` */ export declare function useBugReportContext(): BugReportContextValue; //# sourceMappingURL=BugReportContext.d.ts.map