import { ReactElement, ReactNode } from "react"; import { UserInteractionMode } from "./useModeDetection"; /** * Gets the current interaction mode of the user. */ export declare function useUserInteractionMode(): UserInteractionMode; /** * Checks if the provided user interaction mode matches the current interaction * mode within the app. * * @param mode The mode to check against. * @return true if the mode matches. */ export declare function useIsUserInteractionMode(mode: UserInteractionMode): boolean; export interface InteractionModeListenerProps { children: ReactNode; } /** * A component that should be mounted once in your app near the top of the tree * to determine the current interaction mode for your app. */ export declare function InteractionModeListener({ children, }: InteractionModeListenerProps): ReactElement; export declare namespace InteractionModeListener { var propTypes: { children: any; }; }