import { Event } from '../../../util/vs/base/common/event'; import { IDisposable } from '../../../util/vs/base/common/lifecycle'; export declare const IPowerService: import("../../../util/common/services").ServiceIdentifier; export interface IPowerService { readonly _serviceBrand: undefined; /** * Fires when the system is suspending (going to sleep). */ readonly onDidSuspend: Event; /** * Fires when the system is resuming from sleep. */ readonly onDidResume: Event; /** * Acquires a power save blocker that prevents app suspension. * The blocker is reference-counted and will be released 2 minutes after * the last acquisition is disposed. * * @returns A disposable that releases this acquisition when disposed. */ acquirePowerSaveBlocker(): IDisposable; } /** * A no-op implementation of {@link IPowerService} for environments where * power save blocking is not supported (e.g., web, headless, tests). */ export declare class NullPowerService implements IPowerService { readonly _serviceBrand: undefined; readonly onDidSuspend: Event; readonly onDidResume: Event; acquirePowerSaveBlocker(): IDisposable; } //# sourceMappingURL=powerService.d.ts.map