import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent"; import { BPLabelledComponent, BPLabelledComponentState } from "./BPLabelledComponent"; import { PrimitiveVal } from "uiconfig.js"; export type BPValueComponentState = BPLabelledComponentState & { value: TStateValue; }; export declare abstract class BPValueComponent, TStateValue> extends BPLabelledComponent { protected constructor(props: BPComponentProps, context: UiConfigRendererContextType, state: TState); abstract convertValueToState(value: TValue, state: TState): TState; abstract convertStateToValue(state: TState): Promise; private _lastValRef; getUpdatedState(state: TState): TState; protected _previousLast: boolean; doesNeedRefresh(state: TState, _last?: boolean): boolean; setState(state: TState, callback?: () => void): void; setValue(value: TStateValue, last?: boolean, refreshState?: boolean): Promise; forceOnChange: boolean; updateStateValue(state: TState, last?: boolean, refreshState?: boolean): Promise; }