/** * usePresence Hook * User presence tracking with WebSocket broadcast * * Features: * - Track collaborators in a document * - Broadcast local cursor/selection position * - Automatic presence updates * - Debounced position updates */ import type { UsePresenceOptions, UsePresenceReturn, UserPresence } from './types'; /** Extended options for presence with WebSocket */ export interface UsePresenceWithWSOptions extends UsePresenceOptions { /** Current user ID */ userId?: string; /** User display name */ userName?: string; /** User cursor color */ userColor?: string; /** WebSocket URL */ wsUrl?: string; /** Auto-connect on mount */ autoConnect?: boolean; /** Debounce interval for position updates (ms) */ debounceInterval?: number; /** Callback when collaborators change */ onCollaboratorsChange?: (collaborators: UserPresence[]) => void; } export declare const usePresence: (options?: UsePresenceWithWSOptions) => UsePresenceReturn; export type { UsePresenceOptions, UsePresenceReturn, UserPresence } from './types'; //# sourceMappingURL=usePresence.d.ts.map