import { Observable } from 'rxjs'; import * as _angular_core from '@angular/core'; import { OnInit, OnDestroy } from '@angular/core'; interface ElementDimensions { width: number; height: number; } /** * A service wrapping `ResizeObserver`. This is a service for those reasons: * - only one `ResizeObserver` should be used for performance reason. * - For Angular change detection to work, explicit `ngZone` calls are necessary * - Observable stream */ declare class ResizeObserverService { private listeners; private resizeObserver?; private timerQueue; private zone; constructor(); /** * Observe the size of an element. Returns an observable with the changes. * @param element - The element to observe * @param throttle - Throttle time in ms. Will emit this time after the resize * @param emitInitial - Emit the initial size after subscribe? * @param emitImmediate - Emit an event immediately after the size changes. Useful e.g. for visibility checks. */ observe(element: Element, throttle: number, emitInitial?: boolean, emitImmediate?: boolean): Observable; private subscriberAdded; private subscriberRemoved; private handleElement; private handleResizeSubscriber; private emitSize; private schedule; private unschedule; private processQueue; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } /** * Directive to emit events on element size change. Use like this: * `
` * When the size of the element changes, an event in the format * `{ width: number, height: number }` * will be emitted. Also an initial event will be emitted on init. * * By default, events are throttled and to an event every 100ms. To change * this, add `[resizeThrottle]="200"` on the same element. Input in milliseconds. */ declare class SiResizeObserverDirective implements OnInit, OnDestroy { /** * Minimum time in milliseconds between resize events. * * @defaultValue 100 */ readonly resizeThrottle: _angular_core.InputSignal; /** * Whether to emit the element's dimensions when the directive initializes. * * @defaultValue true */ readonly emitInitial: _angular_core.InputSignalWithTransform; /** Emits the observed element's current width and height. */ readonly siResizeObserver: _angular_core.OutputEmitterRef; private subs?; private element; private service; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface Breakpoints { smMinimum: number; mdMinimum: number; lgMinimum: number; xlMinimum: number; xxlMinimum: number; } declare const BOOTSTRAP_BREAKPOINTS: Breakpoints; /** * Directive to automatically set `si-container-*` classes so Bootstrap column classes work * in the context of the container instead of viewport size. */ declare class SiResponsiveContainerDirective implements OnInit, OnDestroy { /** @defaultValue false */ readonly xs: _angular_core.WritableSignal; /** @defaultValue false */ readonly sm: _angular_core.WritableSignal; /** @defaultValue false */ readonly md: _angular_core.WritableSignal; /** @defaultValue false */ readonly lg: _angular_core.WritableSignal; /** @defaultValue false */ readonly xl: _angular_core.WritableSignal; /** @defaultValue false */ readonly xxl: _angular_core.WritableSignal; /** * Minimum time in milliseconds between resize observations. * * @defaultValue 100 */ readonly resizeThrottle: _angular_core.InputSignal; /** * Width thresholds used to assign responsive container classes. * * @defaultValue BOOTSTRAP_BREAKPOINTS */ readonly breakpoints: _angular_core.InputSignal; private subs?; private element; private service; ngOnInit(): void; ngOnDestroy(): void; private setResponsiveSize; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class SiResizeObserverModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { BOOTSTRAP_BREAKPOINTS, ResizeObserverService, SiResizeObserverDirective, SiResizeObserverModule, SiResponsiveContainerDirective }; export type { Breakpoints, ElementDimensions };