import { type ReactNode } from "react"; import type { SessionEvent, ToolActionReview } from "@opengeni/sdk"; type HistoryContext = { approvalIds: ReadonlySet; revision: number; load: (approvalId: string) => Promise; onViewDetails: (review: ToolActionReview, path: string) => void; }; /** Opt-in, authenticated history for the exact reviewed calls in the visible event window. */ export declare function ToolReviewHistoryProvider({ events, load, onViewDetails, children, }: { events: readonly SessionEvent[]; load: HistoryContext["load"]; onViewDetails: HistoryContext["onViewDetails"]; children: ReactNode; }): import("react").JSX.Element; export declare function useHasToolReview(approvalId: string | null): boolean; /** * The saved review for one recorded call, or null while it loads or when it is * unavailable (callers then keep their ordinary tool row). */ export declare function useRecordedToolReview(approvalId: string | null): { review: ToolActionReview | null; onViewDetails: ((path: string) => void) | undefined; }; export {};