import type { InsightsClient, InsightsEvent as _InsightsEvent, InsightsMethod, InsightsMethodMap, InternalMiddleware } from '../types'; type ProvidedInsightsClient = InsightsClient | null | undefined; export type InsightsEvent = _InsightsEvent; export type InsightsProps = { insightsClient?: TInsightsClient; insightsInitParams?: Partial; onEvent?: (event: InsightsEvent, insightsClient: TInsightsClient) => void; }; export type InsightsClientWithGlobals = InsightsClient & { shouldAddScript?: boolean; version?: string; }; export type CreateInsightsMiddleware = typeof createInsightsMiddleware; export declare function createInsightsMiddleware(props?: InsightsProps): InternalMiddleware; export {};