export declare function onPageVisibilityChange(handler: (visible: boolean) => void): (() => void) | null;