import { OnInit } from '@angular/core';
import { FormBuilder, NgForm } from '@angular/forms';
import { type DatapointAttributesFormConfig, type DatapointSelectorModalOptions, type KPIDetails } from '@c8y/ngx-components/datapoint-selector';
import { WidgetConfigComponent } from '@c8y/ngx-components/context-dashboard';
import { OnBeforeSave } from '@c8y/ngx-components';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class InfoGaugeWidgetConfigComponent implements OnInit, OnBeforeSave {
    private formBuilder;
    private form;
    private widgetConfig;
    config: {
        datapointsLabels?: KPIDetails[];
        datapointsGauge: KPIDetails[];
        fractionSize: number;
    };
    formGroup: ReturnType<InfoGaugeWidgetConfigComponent['createForm']>;
    datapointSelectionConfig: Partial<DatapointSelectorModalOptions>;
    defaultFormOptions: Partial<DatapointAttributesFormConfig>;
    private limits;
    constructor(formBuilder: FormBuilder, form: NgForm, widgetConfig: WidgetConfigComponent);
    onBeforeSave(config?: InfoGaugeWidgetConfigComponent['config']): boolean | Promise<boolean> | Observable<boolean>;
    ngOnInit(): void;
    private initForm;
    private createForm;
    static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetConfigComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<InfoGaugeWidgetConfigComponent, "c8y-info-gauge-widget-config", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
}
//# sourceMappingURL=info-gauge-widget-config.component.d.ts.map