import { DispatchWithoutAction } from 'react'; /** * This hook provided isExpanded state, and expand() handle * You have to look original description in {@link telegram!WebApp} for more information * * `isExpanded` can be `undefined` * * ```tsx * import { useExpand } from "@vkruglikov/react-telegram-web-app"; * * const [isExpanded, expand] = useExpand(); * const handleClick = () => !isExpanded && expand(); * * * ``` * * @privateRemarks * Api doesn't provide event for listening isExpanded, so we use * viewportChanged, but it is an unsafe way * * @group Hooks */ declare const useExpand: () => readonly [boolean | undefined, DispatchWithoutAction]; export default useExpand;