/** * Hook that returns true only after component has mounted on the client. * Useful for avoiding SSR hydration mismatches with browser-only APIs. * * @example * ```tsx * function MyComponent() { * const isClient = useClientOnly() * if (!isClient) return null * // Safe to use browser APIs here * return
{window.innerWidth}
* } * ``` */ export declare function useClientOnly(): boolean; /** * Check if code is running on the server (SSR). * This is a simple check that doesn't cause hydration issues. */ export declare function isServer(): boolean; /** * Check if code is running on the client (browser). * This is a simple check that doesn't cause hydration issues. */ export declare function isClient(): boolean; //# sourceMappingURL=use-client-only.d.ts.map