hookery 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +28 -26
  2. package/dist/index.d.ts +147 -1
  3. package/dist/index.js +10 -4304
  4. package/dist/index.mjs +10 -4164
  5. package/package.json +10 -81
  6. package/dist/bridges/auth0.d.mts +0 -16
  7. package/dist/bridges/auth0.d.ts +0 -16
  8. package/dist/bridges/auth0.js +0 -3015
  9. package/dist/bridges/auth0.js.map +0 -1
  10. package/dist/bridges/auth0.mjs +0 -2977
  11. package/dist/bridges/auth0.mjs.map +0 -1
  12. package/dist/bridges/axios.d.mts +0 -17
  13. package/dist/bridges/axios.d.ts +0 -17
  14. package/dist/bridges/axios.js +0 -15351
  15. package/dist/bridges/axios.js.map +0 -1
  16. package/dist/bridges/axios.mjs +0 -15347
  17. package/dist/bridges/axios.mjs.map +0 -1
  18. package/dist/bridges/clerk.d.mts +0 -1
  19. package/dist/bridges/clerk.d.ts +0 -1
  20. package/dist/bridges/clerk.js +0 -5991
  21. package/dist/bridges/clerk.js.map +0 -1
  22. package/dist/bridges/clerk.mjs +0 -5985
  23. package/dist/bridges/clerk.mjs.map +0 -1
  24. package/dist/bridges/firebase.d.mts +0 -14
  25. package/dist/bridges/firebase.d.ts +0 -14
  26. package/dist/bridges/firebase.js +0 -52
  27. package/dist/bridges/firebase.js.map +0 -1
  28. package/dist/bridges/firebase.mjs +0 -25
  29. package/dist/bridges/firebase.mjs.map +0 -1
  30. package/dist/bridges/jotai.d.mts +0 -11
  31. package/dist/bridges/jotai.d.ts +0 -11
  32. package/dist/bridges/jotai.js +0 -870
  33. package/dist/bridges/jotai.js.map +0 -1
  34. package/dist/bridges/jotai.mjs +0 -827
  35. package/dist/bridges/jotai.mjs.map +0 -1
  36. package/dist/bridges/motion.d.mts +0 -6
  37. package/dist/bridges/motion.d.ts +0 -6
  38. package/dist/bridges/motion.js +0 -3752
  39. package/dist/bridges/motion.js.map +0 -1
  40. package/dist/bridges/motion.mjs +0 -3721
  41. package/dist/bridges/motion.mjs.map +0 -1
  42. package/dist/bridges/next.d.mts +0 -10
  43. package/dist/bridges/next.d.ts +0 -10
  44. package/dist/bridges/next.js +0 -2588
  45. package/dist/bridges/next.js.map +0 -1
  46. package/dist/bridges/next.mjs +0 -2582
  47. package/dist/bridges/next.mjs.map +0 -1
  48. package/dist/bridges/redux.d.mts +0 -15
  49. package/dist/bridges/redux.d.ts +0 -15
  50. package/dist/bridges/redux.js +0 -410
  51. package/dist/bridges/redux.js.map +0 -1
  52. package/dist/bridges/redux.mjs +0 -402
  53. package/dist/bridges/redux.mjs.map +0 -1
  54. package/dist/bridges/remix.d.mts +0 -1
  55. package/dist/bridges/remix.d.ts +0 -1
  56. package/dist/bridges/remix.js +0 -2215
  57. package/dist/bridges/remix.js.map +0 -1
  58. package/dist/bridges/remix.mjs +0 -2174
  59. package/dist/bridges/remix.mjs.map +0 -1
  60. package/dist/bridges/stripe.d.mts +0 -15
  61. package/dist/bridges/stripe.d.ts +0 -15
  62. package/dist/bridges/stripe.js +0 -1572
  63. package/dist/bridges/stripe.js.map +0 -1
  64. package/dist/bridges/stripe.mjs +0 -1556
  65. package/dist/bridges/stripe.mjs.map +0 -1
  66. package/dist/bridges/supabase.d.mts +0 -13
  67. package/dist/bridges/supabase.d.ts +0 -13
  68. package/dist/bridges/supabase.js +0 -51
  69. package/dist/bridges/supabase.js.map +0 -1
  70. package/dist/bridges/supabase.mjs +0 -24
  71. package/dist/bridges/supabase.mjs.map +0 -1
  72. package/dist/bridges/tanstack.d.mts +0 -3
  73. package/dist/bridges/tanstack.d.ts +0 -3
  74. package/dist/bridges/tanstack.js +0 -1319
  75. package/dist/bridges/tanstack.js.map +0 -1
  76. package/dist/bridges/tanstack.mjs +0 -1281
  77. package/dist/bridges/tanstack.mjs.map +0 -1
  78. package/dist/bridges/yup.d.mts +0 -16
  79. package/dist/bridges/yup.d.ts +0 -16
  80. package/dist/bridges/yup.js +0 -80
  81. package/dist/bridges/yup.js.map +0 -1
  82. package/dist/bridges/yup.mjs +0 -43
  83. package/dist/bridges/yup.mjs.map +0 -1
  84. package/dist/bridges/zod.d.mts +0 -19
  85. package/dist/bridges/zod.d.ts +0 -19
  86. package/dist/bridges/zod.js +0 -66
  87. package/dist/bridges/zod.js.map +0 -1
  88. package/dist/bridges/zod.mjs +0 -39
  89. package/dist/bridges/zod.mjs.map +0 -1
  90. package/dist/bridges/zustand.d.mts +0 -14
  91. package/dist/bridges/zustand.d.ts +0 -14
  92. package/dist/bridges/zustand.js +0 -58
  93. package/dist/bridges/zustand.js.map +0 -1
  94. package/dist/bridges/zustand.mjs +0 -21
  95. package/dist/bridges/zustand.mjs.map +0 -1
  96. package/dist/index.d.mts +0 -3130
  97. package/dist/index.js.map +0 -1
  98. package/dist/index.mjs.map +0 -1
package/README.md CHANGED
@@ -1,17 +1,18 @@
1
1
  # Hookery 🪝
2
2
 
3
- The ultimate collection of **100+ high-quality React hooks**. Built for modern web applications with a focus on **performance**, **type safety**, and **developer experience**.
3
+ The ultimate collection of **100+ high-quality React hooks**. Built for modern web applications with a focus on **performance**, **type safety**, and **minimal bundle size**.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/hookery.svg?style=flat-square)](https://www.npmjs.com/package/hookery)
6
- [![npm downloads](https://img.shields.io/npm/dm/hookery.svg?style=flat-square)](https://www.npmjs.com/package/hookery)
6
+ [![Bundle Size](https://img.shields.io/badge/Unpacked_Size-215_KB-blue?style=flat-square)](#)
7
+ [![Files](https://img.shields.io/badge/Total_Files-6-success?style=flat-square)](#)
7
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
8
9
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue.svg?style=flat-square)](https://www.typescriptlang.org/)
9
10
 
10
11
  ## 🚀 Why Hookery?
11
12
 
13
+ - **📦 Ultra-Lightweight**: Only **215 KB unpacked** (~55 KB bundled). One of the smallest libraries for its scale.
12
14
  - **🛡️ 100% Type Safe**: Written in TypeScript with strict type inference and zero "any".
13
- - **⚡ Performance First**: Zero unnecessary re-renders with optimized memoization.
14
- - **📦 Tree-shakeable**: Support for ESM and CJS; import only what you use.
15
+ - **⚡ Performance First**: Zero unnecessary re-renders with optimized memoization and stable callbacks.
15
16
  - **🔌 SSR Ready**: First-class support for Next.js, Remix, and Astro.
16
17
  - **🤖 Modern Workflows**: Pre-built hooks for AI streaming, Media recording, and Hardware APIs.
17
18
 
@@ -47,38 +48,39 @@ function App() {
47
48
  }
48
49
  ```
49
50
 
50
- ## 📚 Categories
51
+ ## 📚 Available Hooks (100+)
51
52
 
52
- | Category | Hooks |
53
- | :--- | :--- |
54
- | **State** | `useToggle`, `useCounter`, `useHistory`, `useLocalStorage`, `useSet`, `useMap` |
55
- | **DOM** | `useClickOutside`, `useHover`, `useIntersection`, `useResizeObserver`, `useScroll` |
56
- | **Async** | `useFetch`, `useAsync`, `useLLMStream`, `useWebSocket`, `useWorker` |
57
- | **Media** | `useMediaDevices`, `useMediaRecorder`, `useVideoRef`, `useAudioRef` |
58
- | **Advanced** | `useForm`, `useTable`, `useVirtualList`, `useInfiniteScroll`, `useShortcuts` |
53
+ ### 🛠️ Core Essentials
54
+ `useIsomorphicLayoutEffect` `useToggle` `useCounter` • `usePrevious` • `useMount` • `useUnmount` • `useDebounce` • `useThrottle` • `useLocalStorage` • `useSessionStorage` • `useTimeout` • `useInterval` • `useUpdateEffect` • `useIsMounted` • `useStableCallback`
59
55
 
60
- ## 🛠️ Browser & Hardware APIs
56
+ ### 🖱️ UI & Interaction
57
+ `useMediaQuery` • `useWindowSize` • `useClickOutside` • `useHover` • `useKeyPress` • `useScroll` • `useIntersection` • `useCopyToClipboard` • `useDocumentTitle` • `useLockBodyScroll` • `useTheme` • `useEvent` • `useLongPress` • `useWindowFocus` • `useResizeObserver` • `useMutationObserver` • `usePageLeave` • `useEyeDropper` • `useScreen` • `useClickAnywhere`
61
58
 
62
- Hookery provides clean abstractions for many modern browser APIs:
63
- - **`useSTT` & `useTTS`**: Voice recognition and synthesis.
64
- - **`useFileSystem`**: Local File System Access.
65
- - **`useBluetooth` & `useWebRTC`**: Hardware and P2P communication.
66
- - **`useEyeDropper`**: System color picker.
59
+ ### 🌐 Browser & Hardware APIs
60
+ `useOnline` `useNetworkState` `useFullscreen` `useShare` `usePermissions` • `useWakeLock` • `useMediaDevices` • `useMediaRecorder` • `useBattery` • `useBluetooth` • `useGamepad` • `useFileSystem` • `useStorageEstimate` • `useBroadcastChannel` • `useWebSocket` • `useWebRTC`
67
61
 
68
- ## 🤝 Contributing
62
+ ### Async, Data & Logic
63
+ `useAsync` • `useFetch` • `useScript` • `useWorker` • `useIndexedDB` • `useHistory` • `useStep` • `usePagination` • `useMachine` • `useVirtualList` • `useInfiniteScroll` • `useForm` • `useTable` • `useSpreadsheet` • `useMarkdown` • `usePDF` • `useFileProcessing` • `useSortable` • `useDragAndDrop` • `useList` • `useMap` • `useSet` • `useQueue` • `useCountdown` • `useDebounceCallback` • `useIsClient`
69
64
 
70
- Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
65
+ ### 🧠 AI & Search
66
+ `useLLMStream` • `useSTT` • `useTTS` • `useOpenAI` • `useAnthropic` • `useGemini` • `useRAG` • `useEmbeddings` • `useSemanticSearch` • `useSearchHighlight`
71
67
 
72
- 1. Fork the Project
73
- 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
74
- 3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
75
- 4. Push to the Branch (`git push origin feature/AmazingFeature`)
76
- 5. Open a Pull Request
68
+ ### 🎨 Animation & Graphics
69
+ `useAnimate` `useCanvas` `useSpringCore` `useParallax` `useSVGAnimation` `useThreeJS` • `useLottie` • `useFrameRate` • `useVideoRef` • `useAudioRef`
70
+
71
+ ## 🔌 Ecosystem Bridges
72
+ Hookery includes built-in hooks to bridge with your favorite tools:
73
+ - `useZodValidation`, `useYupValidation`
74
+ - `useZustand`, `useRedux`, `useJotai`
75
+ - `useFirebaseAuth`, `useSupabaseUser`
76
+ - `useTanStackQuery`, `useAxios`
77
+ - `useFramerMotion` (via `useAnimate`)
78
+ - `useNextRouter`, `useRemixFetcher`
79
+ - `useStripe`, `useAuth0`, `useClerk`
77
80
 
78
81
  ## 📄 License
79
82
 
80
83
  Distributed under the MIT License. See `LICENSE` for more information.
81
84
 
82
85
  ---
83
-
84
86
  Built with ❤️ by [Mohamed Shaban](https://github.com/Moshaban09)
package/dist/index.d.ts CHANGED
@@ -2,6 +2,25 @@ import * as react from 'react';
2
2
  import { useEffect, EffectCallback, DependencyList, RefObject, UIEvent, MutableRefObject, FormEvent } from 'react';
3
3
  import { AnimationConfig, AnimationItem } from 'lottie-web';
4
4
  import * as THREE from 'three';
5
+ import * as _auth0_auth0_spa_js from '@auth0/auth0-spa-js';
6
+ import { AxiosError, AxiosResponse, AxiosRequestConfig } from 'axios';
7
+ export { useAuth, useClerk, useUser } from '@clerk/clerk-react';
8
+ import { Auth, User } from 'firebase/auth';
9
+ import { WritableAtom, Atom } from 'jotai';
10
+ export { useAtom, useAtomValue, useSetAtom } from 'jotai';
11
+ import * as motion_dom from 'motion-dom';
12
+ import { TypedUseSelectorHook } from 'react-redux';
13
+ import { Dispatch } from 'redux';
14
+ export { useActionData, useFetcher, useLoaderData, useNavigation, useSubmit } from '@remix-run/react';
15
+ import * as _stripe_stripe_js from '@stripe/stripe-js';
16
+ import { SupabaseClient, User as User$1 } from '@supabase/supabase-js';
17
+ export { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
18
+ import * as yup from 'yup';
19
+ import { z } from 'zod';
20
+ export { useAnimation, useMotionValue, useSpring, useTransform } from 'framer-motion';
21
+ export { useAuth0 } from '@auth0/auth0-react';
22
+ export { useElements, useStripe } from '@stripe/react-stripe-js';
23
+ export { usePathname, useRouter, useSearchParams } from 'next/navigation';
5
24
 
6
25
  /**
7
26
  * useIsomorphicLayoutEffect
@@ -3127,4 +3146,131 @@ declare const isBrowser: boolean;
3127
3146
  */
3128
3147
  declare const noop: () => void;
3129
3148
 
3130
- export { type AnimationCallback, type AnthropicMessage, type AnyEvent, type AsyncStatus, type BatteryState, type CellValue, type CollabEvent, type Column, type EyeDropperOpenOptions, type FetchStatus, type GeminiContent, type GeminiPart, type GridData, type HighlightPart, type MachineConfig, type MachineState, type Message, type NetworkState, type PermissionName, type PermissionState, type RAGDocument, type RecorderStatus, type ScriptStatus, type ScrollPosition, type SemanticResult, type ShareData, type ShortcutHandler, type ShortcutMap, type SortDirection, type SpringConfig, type StorageEstimateState, type Theme, type UseAnthropicOptions, type UseAsyncOptions, type UseAsyncReturn, type UseBluetoothReturn, type UseCalendarOptions, type UseCanvasOptions, type UseClickOutsideOptions, type UseCopyToClipboardReturn, type UseCountdownOptions, type UseCountdownReturn, type UseCounterOptions, type UseCounterReturn, type UseDebounceOptions, type UseDebounceReturn, type UseDocumentTitleOptions, type UseDragAndDropOptions, type UseEmbeddingsReturn, type UseEventOptions, type UseEyeDropperReturn, type UseFetchOptions, type UseFetchReturn, type UseFileProcessingOptions, type UseFileSystemReturn, type UseFormOptions, type UseFormReturn, type UseFullscreenReturn, type UseGamepadOptions, type UseGeminiOptions, type UseHistoryOptions, type UseHistoryReturn, type UseHoverReturn, type UseIndexedDBReturn, type UseInfiniteScrollOptions, type UseIntersectionOptions, type UseIntersectionReturn, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressOptions, type UseLLMStreamOptions, type UseLLMStreamReturn, type UseListActions, type UseListReturn, type UseLocalStorageOptions, type UseLocalStorageReturn, type UseLongPressOptions, type UseLongPressReturn, type UseLottieOptions, type UseMapActions, type UseMapReturn, type UseMediaQueryOptions, type UseMediaRecorderReturn, type UseMediaRefReturn, type UseMutationObserverOptions, type UseOnlineReturn, type UseOpenAIOptions, type UsePaginationOptions, type UsePaginationReturn, type UseParallaxOptions, type UseQueueActions, type UseQueueReturn, type UseRAGOptions, type UseResizeObserverOptions, type UseSTTOptions, type UseSTTReturn, type UseSVGAnimationOptions, type UseScriptOptions, type UseScriptReturn, type UseScrollOptions, type UseScrollReturn, type UseSearchHighlightOptions, type UseSessionStorageOptions, type UseSetActions, type UseSetReturn, type UseShareReturn, type UseSortableOptions, type UseSpreadsheetOptions, type UseSpringCoreOptions, type UseStepOptions, type UseStepReturn, type UseTTSOptions, type UseTableOptions, type UseTableReturn, type UseThemeOptions, type UseThemeReturn, type UseThreeJSOptions, type UseThrottleOptions, type UseThrottleReturn, type UseTimeoutOptions, type UseTimeoutReturn, type UseToggleOptions, type UseToggleReturn, type UseVirtualListOptions, type UseVirtualListReturn, type UseWakeLockReturn, type UseWebRTCOptions, type UseWebSocketOptions, type UseWindowSizeOptions, type UseWorkerReturn, type Vector, type VirtualItem, type WindowSize, type WorkerStatus, isBrowser, isServer, noop, useAnimate, useAnthropic, useAsync, useAudioRef, useBattery, useBluetooth, useBroadcastChannel, useCalendar, useCanvas, useClickAnywhere, useClickOutside, useCopyToClipboard, useCountdown, useCounter, useDebounce, useDebounceCallback, useDocumentTitle, useDragAndDrop, useEmbeddings, useEvent, useEyeDropper, useFetch, useFileProcessing, useFileSystem, useForm, useFrameRate, useFullscreen, useGamepad, useGemini, useHistory, useHover, useIndexedDB, useInfiniteScroll, useIntersection, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useKeyPress, useLLMStream, useList, useLocalStorage, useLockBodyScroll, useLongPress, useLottie, useMachine, useMap, useMarkdown, useMediaDevices, useMediaQuery, useMediaRecorder, useMount, useMutationObserver, useNetworkState, useOnline, useOpenAI, usePDF, usePageLeave, usePagination, useParallax, usePermissions, usePresence, usePrevious, useQueue, useRAG, useRealtimeCollab, useResizeObserver, useSTT, useSVGAnimation, useScreen, useScript, useScroll, useSearchHighlight, useSemanticSearch, useSessionStorage, useSet, useShare, useShortcuts, useSortable, useSpreadsheet, useSpringCore, useStableCallback, useStep, useStorageEstimate, useTTS, useTable, useTheme, useThreeJS, useThrottle, useTimeout, useToggle, useUnmount, useUpdateEffect, useVideoRef, useVirtualList, useWakeLock, useWebRTC, useWebSocket, useWindowFocus, useWindowSize, useWorker };
3149
+ /**
3150
+ * useAuth0User
3151
+ *
3152
+ * Simplified access to user and loading state.
3153
+ */
3154
+ declare function useAuth0User(): {
3155
+ user: _auth0_auth0_spa_js.User | undefined;
3156
+ isAuthenticated: boolean;
3157
+ isLoading: boolean;
3158
+ error: Error | undefined;
3159
+ };
3160
+
3161
+ interface UseAxiosReturn<T> {
3162
+ data: T | null;
3163
+ loading: boolean;
3164
+ error: AxiosError | null;
3165
+ response: AxiosResponse<T> | null;
3166
+ execute: (config?: AxiosRequestConfig) => Promise<void>;
3167
+ }
3168
+ /**
3169
+ * useAxios
3170
+ *
3171
+ * A hook for Axios requests with state management.
3172
+ */
3173
+ declare function useAxios<T = any>(url: string, initialConfig?: AxiosRequestConfig, manual?: boolean): UseAxiosReturn<T>;
3174
+
3175
+ /**
3176
+ * useFirebaseAuth
3177
+ *
3178
+ * Tracks Firebase Auth state.
3179
+ */
3180
+ declare function useFirebaseAuth(auth: Auth): {
3181
+ user: User | null;
3182
+ loading: boolean;
3183
+ error: Error | null;
3184
+ };
3185
+
3186
+ /**
3187
+ * useJotai
3188
+ *
3189
+ * A bridge for Jotai providing unified access.
3190
+ */
3191
+ declare function useJotai<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result> | Atom<Value>): readonly [unknown, (...args: unknown[]) => unknown];
3192
+
3193
+ declare function useScrollProgress(): motion_dom.MotionValue<number>;
3194
+
3195
+ /**
3196
+ * useMounted
3197
+ *
3198
+ * Ensures component is mounted before rendering (avoids hydration mismatch).
3199
+ */
3200
+ declare function useMounted(): boolean;
3201
+
3202
+ /**
3203
+ * useRedux
3204
+ *
3205
+ * A combined hook for Redux accessing state and dispatch.
3206
+ */
3207
+ declare function useRedux<RootState = any, AppDispatch extends Dispatch<any> = Dispatch<any>>(): {
3208
+ dispatch: AppDispatch;
3209
+ useSelector: TypedUseSelectorHook<RootState>;
3210
+ select: TypedUseSelectorHook<RootState>;
3211
+ };
3212
+
3213
+ /**
3214
+ * useStripePayment
3215
+ *
3216
+ * Helper to consolidate Stripe objects.
3217
+ */
3218
+ declare function useStripePayment(): {
3219
+ stripe: _stripe_stripe_js.Stripe | null;
3220
+ elements: _stripe_stripe_js.StripeElements | null;
3221
+ ready: boolean;
3222
+ };
3223
+
3224
+ /**
3225
+ * useSupabaseUser
3226
+ *
3227
+ * Tracks Supabase Auth user.
3228
+ */
3229
+ declare function useSupabaseUser(client: SupabaseClient): {
3230
+ user: User$1 | null;
3231
+ loading: boolean;
3232
+ };
3233
+
3234
+ interface UseYupValidationReturn<T> {
3235
+ isValid: boolean;
3236
+ errors: Record<string, string> | null;
3237
+ error: yup.ValidationError | null;
3238
+ validate: (value: unknown) => Promise<boolean>;
3239
+ }
3240
+ /**
3241
+ * useYupValidation
3242
+ *
3243
+ * A hook to validate data using Yup schema.
3244
+ */
3245
+ declare function useYupValidation<T extends yup.AnySchema>(schema: T): UseYupValidationReturn<yup.InferType<T>>;
3246
+
3247
+ interface UseZodValidationReturn<T> {
3248
+ isValid: boolean;
3249
+ errors: Record<string, string> | null;
3250
+ error: z.ZodError | null;
3251
+ validate: (value: unknown) => boolean;
3252
+ }
3253
+ /**
3254
+ * useZodValidation
3255
+ *
3256
+ * A hook to validate data using Zod schema.
3257
+ *
3258
+ * @param schema - Zod schema
3259
+ * @returns Validation utilities
3260
+ */
3261
+ declare function useZodValidation<T extends z.ZodTypeAny>(schema: T): UseZodValidationReturn<z.infer<T>>;
3262
+
3263
+ /**
3264
+ * useZustand
3265
+ *
3266
+ * A bridge hook for Zustand.
3267
+ * Mainly a simplified re-export to align with Hookery patterns,
3268
+ * but allows for future extensibility (e.g. automatic persistence).
3269
+ */
3270
+ declare function useZustand<T, U>(store: {
3271
+ getState: () => T;
3272
+ subscribe: (listener: (state: T, prevState: T) => void) => () => void;
3273
+ getInitialState: () => T;
3274
+ }, selector: (state: T) => U): U;
3275
+
3276
+ export { type AnimationCallback, type AnthropicMessage, type AnyEvent, type AsyncStatus, type BatteryState, type CellValue, type CollabEvent, type Column, type EyeDropperOpenOptions, type FetchStatus, type GeminiContent, type GeminiPart, type GridData, type HighlightPart, type MachineConfig, type MachineState, type Message, type NetworkState, type PermissionName, type PermissionState, type RAGDocument, type RecorderStatus, type ScriptStatus, type ScrollPosition, type SemanticResult, type ShareData, type ShortcutHandler, type ShortcutMap, type SortDirection, type SpringConfig, type StorageEstimateState, type Theme, type UseAnthropicOptions, type UseAsyncOptions, type UseAsyncReturn, type UseAxiosReturn, type UseBluetoothReturn, type UseCalendarOptions, type UseCanvasOptions, type UseClickOutsideOptions, type UseCopyToClipboardReturn, type UseCountdownOptions, type UseCountdownReturn, type UseCounterOptions, type UseCounterReturn, type UseDebounceOptions, type UseDebounceReturn, type UseDocumentTitleOptions, type UseDragAndDropOptions, type UseEmbeddingsReturn, type UseEventOptions, type UseEyeDropperReturn, type UseFetchOptions, type UseFetchReturn, type UseFileProcessingOptions, type UseFileSystemReturn, type UseFormOptions, type UseFormReturn, type UseFullscreenReturn, type UseGamepadOptions, type UseGeminiOptions, type UseHistoryOptions, type UseHistoryReturn, type UseHoverReturn, type UseIndexedDBReturn, type UseInfiniteScrollOptions, type UseIntersectionOptions, type UseIntersectionReturn, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressOptions, type UseLLMStreamOptions, type UseLLMStreamReturn, type UseListActions, type UseListReturn, type UseLocalStorageOptions, type UseLocalStorageReturn, type UseLongPressOptions, type UseLongPressReturn, type UseLottieOptions, type UseMapActions, type UseMapReturn, type UseMediaQueryOptions, type UseMediaRecorderReturn, type UseMediaRefReturn, type UseMutationObserverOptions, type UseOnlineReturn, type UseOpenAIOptions, type UsePaginationOptions, type UsePaginationReturn, type UseParallaxOptions, type UseQueueActions, type UseQueueReturn, type UseRAGOptions, type UseResizeObserverOptions, type UseSTTOptions, type UseSTTReturn, type UseSVGAnimationOptions, type UseScriptOptions, type UseScriptReturn, type UseScrollOptions, type UseScrollReturn, type UseSearchHighlightOptions, type UseSessionStorageOptions, type UseSetActions, type UseSetReturn, type UseShareReturn, type UseSortableOptions, type UseSpreadsheetOptions, type UseSpringCoreOptions, type UseStepOptions, type UseStepReturn, type UseTTSOptions, type UseTableOptions, type UseTableReturn, type UseThemeOptions, type UseThemeReturn, type UseThreeJSOptions, type UseThrottleOptions, type UseThrottleReturn, type UseTimeoutOptions, type UseTimeoutReturn, type UseToggleOptions, type UseToggleReturn, type UseVirtualListOptions, type UseVirtualListReturn, type UseWakeLockReturn, type UseWebRTCOptions, type UseWebSocketOptions, type UseWindowSizeOptions, type UseWorkerReturn, type UseYupValidationReturn, type UseZodValidationReturn, type Vector, type VirtualItem, type WindowSize, type WorkerStatus, isBrowser, isServer, noop, useAnimate, useAnthropic, useAsync, useAudioRef, useAuth0User, useAxios, useBattery, useBluetooth, useBroadcastChannel, useCalendar, useCanvas, useClickAnywhere, useClickOutside, useCopyToClipboard, useCountdown, useCounter, useDebounce, useDebounceCallback, useDocumentTitle, useDragAndDrop, useEmbeddings, useEvent, useEyeDropper, useFetch, useFileProcessing, useFileSystem, useFirebaseAuth, useForm, useFrameRate, useFullscreen, useGamepad, useGemini, useHistory, useHover, useIndexedDB, useInfiniteScroll, useIntersection, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useJotai, useKeyPress, useLLMStream, useList, useLocalStorage, useLockBodyScroll, useLongPress, useLottie, useMachine, useMap, useMarkdown, useMediaDevices, useMediaQuery, useMediaRecorder, useMount, useMounted, useMutationObserver, useNetworkState, useOnline, useOpenAI, usePDF, usePageLeave, usePagination, useParallax, usePermissions, usePresence, usePrevious, useQueue, useRAG, useRealtimeCollab, useRedux, useResizeObserver, useSTT, useSVGAnimation, useScreen, useScript, useScroll, useScrollProgress, useSearchHighlight, useSemanticSearch, useSessionStorage, useSet, useShare, useShortcuts, useSortable, useSpreadsheet, useSpringCore, useStableCallback, useStep, useStorageEstimate, useStripePayment, useSupabaseUser, useTTS, useTable, useTheme, useThreeJS, useThrottle, useTimeout, useToggle, useUnmount, useUpdateEffect, useVideoRef, useVirtualList, useWakeLock, useWebRTC, useWebSocket, useWindowFocus, useWindowSize, useWorker, useYupValidation, useZodValidation, useZustand };