/** * This function will call the callback when the system has very likely woken up from sleep. * It will ignore small delays and will only call the callback if the system was disconnected during sleep. * @param callback - the function to call when the system wakes up * @param isDisconnected - (optional) a function to make sure the connection was lost, to reduce the chance of false positives * @returns a function to stop the interval * @example * ```typescript * const stop = onBackFromSleep({ * callback: () => { * console.log('Woke up from sleep'); * }, * isDisconnected: () => { * return !navigator.onLine; * } * }); * ``` */ export declare const onBackFromSleep: ({ callback, isDisconnected: isDisconnectedCallback, }: { callback: () => void; isDisconnected?: () => boolean; }) => () => void; //# sourceMappingURL=BackFromSleepHandler.d.ts.map