import { default as React } from 'react'; /** * Executes a function only on the client side (when window is defined) * @param fn - Function to execute on client side * @returns Result of the function or undefined if on server side **/ export declare function clientOnly(fn: () => T): T | undefined; /** * Creates a React component that only renders on the client side after hydration * @param Component - The component to render client-side * @param fallback - Optional fallback to render server-side * @returns A component that avoids hydration mismatches **/ export declare function createClientOnlyComponent

(Component: React.ComponentType

, fallback?: React.ComponentType): React.ComponentType

; /** * Checks if code is running on the client side * @returns true if running on client, false if on server **/ export declare function isClient(): boolean; /** * Checks if code is running on the server side * @returns true if running on server, false if on client **/ export declare function isServer(): boolean; export interface ClientOnlyProps { children: React.ReactNode; } export declare const ClientOnly: ({ children }: ClientOnlyProps) => import("react/jsx-runtime").JSX.Element;