import { Binding, Connectable } from "types/service" import { Variable } from "types/variable" import Box from "types/widgets/box"; import Label from "types/widgets/label"; import { Widget as WidgetType } from "types/widgets/widget" export type Child = { component: Box; isVisible?: boolean; isVis?: Variable; boxClass: string; props: ButtonProps; }; export type BoxHook = (self: Box) => void; export type LabelHook = (self: Label) => void; export type Module = { icon?: string | Binding, textIcon?: string | Binding, label?: string | Binding, labelHook?: LabelHook, boundLabel?: string, tooltipText?: string | Binding, boxClass: string, props?: ButtonProps, showLabel?: boolean, showLabelBinding?: Binding, hook?: BoxHook, connection?: Binding } export type ResourceLabelType = "used/total" | "used" | "percentage" | "free"; export type StorageIcon = "󰋊" | "" | "󱛟" | "" | "" | ""; export type NetstatIcon = "󰖟" | "󰇚" | "󰕒" | "󰛳" | "" | "󰣺" | "󰖩" | "" | "󰈀"; export type NetstatLabelType = "full" | "in" | "out"; export type RateUnit = "GiB" | "MiB" | "KiB" | "auto"; export type UpdatesIcon = "󰚰" | "󰇚" | "" | "󱑢" | "󱑣" | "󰏖" | "" | "󰏔" | "󰏗"; export type PowerIcon = "" | "" | "󰍃" | "󰿅" | "󰒲" | "󰤄";