import { MtnaLogger } from '@mtna/lib-ui/logger'; import { MtnaInlineEditorComponent } from './inline-editor.component'; import * as i0 from "@angular/core"; /** * A global service to monitor {@link MtnaInlineEditorComponent}s. * Keeps track of how many editors are open in edit mode and provides a method to close them all. * * @author Will Davis */ export declare class MtnaInlineEditorMonitorService { private _logger; private readonly _openEditors; readonly openEditors$: import("rxjs").Observable; constructor(_logger: MtnaLogger); /** * Get the number of currently open editors. * * @returns the number of open editors at this point in time. */ getOpenEditorCount(): number; /** * Add a {@link MtnaInlineEditorComponent} to the list of open editors. * * @param inlineEditor the {@link MtnaInlineEditorComponent} that has switched from view to edit mode. */ addOpenEditor(inlineEditor: MtnaInlineEditorComponent): void; /** * Remove a {@link MtnaInlineEditorComponent} from the list of open editors. * * @param inlineEditor the {@link MtnaInlineEditorComponent} that has switched from edit to view mode. */ removeOpenEditor(inlineEditor: MtnaInlineEditorComponent): void; /** Close all open editors */ closeAllOpenEditors(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }