export interface TabItemConfig { showRedDot?: boolean; tabBarBadge?: string | number; tabBarLabel?: string; iconPath?: string; selectedIconPath?: string; } export interface TaroTabBarConfig { needAnimate: boolean; tabBarVisible: boolean; tabStyle: { backgroundColor?: string; borderStyle?: string; color?: string; selectedColor?: string; }; tabItems: Record; } export interface CallbackResult { errMsg: string; eventChannel?: any; } export interface BaseOption { success?: (res: CallbackResult) => void; fail?: (res: CallbackResult) => void; complete?: (res: CallbackResult) => void; } export type OptionsFunc = (res: CallbackResult) => void;