import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
import { IH5RouterConfig } from '@rtarojs/taro/types/compile';
interface RouterHandler {
  index: string;
  text: string;
  url: string;
  successHandler: Function;
  errorHandler: Function;
  animation?: boolean;
}
export interface Conf {
  color: string;
  selectedColor: string;
  backgroundColor: string;
  borderStyle?: 'black' | 'white';
  list: TabbarList[];
  position?: 'bottom' | 'top';
  custom: boolean;
  customRoutes: Record<string, string | string[]>;
  mode: IH5RouterConfig['mode'];
  basename: string;
  homePage: string;
  currentPagename: string;
}
interface TabbarList {
  pagePath: string;
  text: string;
  iconPath?: string;
  selectedIconPath?: string;
  badgeText?: string;
  showRedDot?: boolean;
}
export declare class Tabbar implements ComponentInterface {
  private homePage;
  private customRoutes;
  private tabbarPos;
  conf: Conf;
  list: TabbarList[];
  borderStyle: Conf['borderStyle'];
  backgroundColor: Conf['backgroundColor'];
  color: Conf['color'];
  selectedColor: Conf['selectedColor'];
  selectedIndex: number;
  status: 0 | 1 | 2;
  onLongPress: EventEmitter;
  tabbar: HTMLDivElement;
  constructor();
  getCurrentUrl(): string;
  getOriginUrl: (url: string) => string;
  getSelectedIndex: (url: string) => number;
  switchTab: (index: number) => void;
  switchTabHandler: ({ url, successHandler, errorHandler }: RouterHandler) => void;
  routerChangeHandler: (options?: any) => void;
  setTabBarBadgeHandler: ({ index, text, successHandler, errorHandler }: RouterHandler) => void;
  removeTabBarBadgeHandler: ({ index, successHandler, errorHandler }: RouterHandler) => void;
  showTabBarRedDotHandler: ({ index, successHandler, errorHandler }: RouterHandler) => void;
  hideTabBarRedDotHandler: ({ index, successHandler, errorHandler }: RouterHandler) => void;
  showTabBarHandler: ({ successHandler }: {
    successHandler: any;
  }) => void;
  hideTabBarHandler: ({ animation, successHandler }: {
    animation: any;
    successHandler: any;
  }) => void;
  setTabBarStyleHandler: ({ color, selectedColor, backgroundColor, borderStyle, successHandler }: {
    color: any;
    selectedColor: any;
    backgroundColor: any;
    borderStyle: any;
    successHandler: any;
  }) => void;
  setTabBarItemHandler: ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }: {
    index: any;
    iconPath: any;
    selectedIconPath: any;
    text: any;
    successHandler: any;
    errorHandler: any;
  }) => void;
  bindEvent(): void;
  removeEvent(): void;
  componentDidLoad(): void;
  disconnectedCallback(): void;
  render(): any;
}
export {};
