import React, { ReactNode } from 'react'; import RTKClient from '@cloudflare/realtimekit'; type Listener = () => void; declare class RTKUpdates { private meeting; private l; constructor(meeting: RTKClient); clean(): void; addListener(listener: Listener): void; removeListener(listener: Listener): void; private onUpdate; } export declare const RealtimeKitContext: React.Context<{ meeting: RTKClient | undefined; updates: RTKUpdates | undefined; }>; /** * Provider component which makes the RealtimeKitClient object * available to nested components * @component * @param value The RealtimeKitClient instance from `useRealtimeKitClient()` * @param fallback Any fallback UI you want to render until the instance initialises. */ export declare function RealtimeKitProvider({ value, children, fallback, }: { value: RTKClient | undefined; children: ReactNode; fallback?: ReactNode; }): import("react/jsx-runtime").JSX.Element; /** * Hook which returns the reference to the RealtimeKitClient object * @returns meeting instance from `useRealtimeKitClient()` */ export declare const useRealtimeKitClient: () => { meeting: RTKClient; }; export {};