export function onIdleCallback(callback: (idleDeadline: any) => any, options?: any) : () => void;