import { Icon } from "../icon/bfcsIconType.js"; import { Color } from "../types/colorType.js"; import { Data } from "../types/dataType.js"; export declare namespace BottomBar { interface BottomBarAndroidFFI { getEnabled(): boolean; toggleEnabled(isEnabled: boolean): void; getOverlay(): boolean; toggleOverlay(isOverlay: string): void; getHeight(): number; setHeight(heightDp: string): void; getActions(): Data.DataString; setActions(actionList: Data.DataString): void; getBackgroundColor(): number; setBackgroundColor(color: number): void; getForegroundColor(): number; setForegroundColor(color: number): void; } interface BottomBarIosFFI { getBottomBarEnabled: { postMessage(noValue: null): Promise; }; hiddenBottomView: { postMessage(hidden: string): void; }; getBottomBarOverlay: { postMessage(noValue: null): Promise; }; updateBottomViewOverlay: { postMessage(overlay: number): void; }; bottomHeight: { postMessage(noValue: null): Promise; }; updateBottomViewHeight: { postMessage(height: number): void; }; getBottomActions: { postMessage(noValue: null): Promise>; }; customBottomActions: { postMessage(actionList: Data.DataString): void; }; getBottomBarBackgroundColor: { postMessage(noValue: null): Promise; }; updateBottomViewBackgroundColor: { postMessage(colorHex: Color.RGBAHex): void; }; getBottomViewForegroundColor: { postMessage(noValue: null): Promise; }; updateBottomViewForegroundColor: { postMessage(colorHex: Color.RGBAHex): void; }; } interface IBottomBarNet { getHidden(): Promise; setHidden(isEnabled: boolean): Promise; getBottomBarAlpha(): Promise; setBottomBarAlpha(alpha: string): Promise; getHeight(): Promise; setHeight(heightDp: number): Promise; getActions(): Promise; setActions(actionList: BottomBarItem[]): Promise; getBackgroundColor(): Promise; setBackgroundColor(color: Color.RGBAHex): Promise; getForegroundColor(): Promise; setForegroundColor(color: Color.RGBAHex): Promise; } type BottomBarColorType = number | Color.RGBAHex; interface IBottomBarColors { indicatorColor?: BottomBarColorType; iconColor?: BottomBarColorType; iconColorSelected?: BottomBarColorType; textColor?: BottomBarColorType; textColorSelected?: BottomBarColorType; } interface BottomBarItem { icon: Icon.IPlaocIcon; onClickCode: string; alwaysShowLabel: boolean; label?: string; selected?: boolean; selectable?: boolean; disabled?: boolean; colors?: IBottomBarColors; } interface DwebBottomBar { hidden?: string | boolean; "background-color"?: Color.RGBAHex; "foreground-color"?: Color.RGBAHex; overlay?: string | boolean; height?: string; } interface DwebBottomBarButton { disabled?: string | boolean; selected?: string | boolean; diSelectable?: string | boolean; "indicator-color"?: Color.RGBAHex; } interface DwebBottomBarIcon { source: string; type?: Icon.IconType; description?: string; size?: string; color?: Color.RGBAHex; "selected-color"?: Color.RGBAHex; } interface DwebBottomBarText { value: string; color?: Color.RGBAHex; "selected-color"?: Color.RGBAHex; "hide-value"?: Color.RGBAHex; } }