An injectable service for executing work inside or outside of the Angular zone.
class NgZone { readonly hasPendingMacrotasks: boolean; readonly hasPendingMicrotasks: boolean; readonly isStable: boolean; readonly onUnstable: EventEmitter<any>; readonly onMicrotaskEmpty: EventEmitter<any>; readonly onStable: EventEmitter<any>; readonly onError: EventEmitter<any>; run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T; runTask<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[], name?: string): T; runGuarded<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T; runOutsideAngular<T>(fn: (...args: any[]) => T): T; static isInAngularZone(): boolean; static assertInAngularZone(): void; static assertNotInAngularZone(): void;}