/**
 * Page Lifecycle Hook
 *
 * Handles page unload, visibility changes, and storage synchronization.
 * Ensures screen sharing is properly stopped and chat context is saved.
 */
import type { WidgetState } from '../types';
/**
 * Hook for managing page lifecycle events
 */
export declare function usePageLifecycle(stateRef: React.MutableRefObject<WidgetState>, restoreChatContext: (chatId: string) => void): void;
//# sourceMappingURL=usePageLifecycle.d.ts.map