import React, { type PropsWithChildren } from 'react'; import { type DatasourceAction } from '../../analytics/types'; interface UserInteractions { add: (action: DatasourceAction) => void; get: () => DatasourceAction[]; } declare const UserInteractionsProvider: ({ children }: PropsWithChildren<{}>) => React.JSX.Element; /** * Use this hook to track user activities. This is mainly used to populate analytic events with * a trail of user activities. * * @returns an object that can track datasource actions and retrieve the actions that have been tracked. */ declare const useUserInteractions: () => UserInteractions; export { UserInteractionsProvider, useUserInteractions };