export interface UseViewerReturn { /** True after the web runtime emits PDF_MAP_READY. */ isReady: boolean; /** Whether the viewer is in fullscreen mode. */ isFullscreen: boolean; /** Toggle fullscreen mode. */ toggleFullscreen: () => void; /** * Pan and zoom the map to the given position. * * @param center - Map center as [latitude, longitude]. * @param zoom - Zoom level. */ setView: (center: [number, number], zoom: number) => void; } /** * Hook to access viewer readiness and basic view control. * * @example * ```tsx * function MyControls() { * const { isReady, setView } = useViewer(); * * return ( *