/** * @file Santd tabs utils file * @author mayihui@baidu.com */ import { Data } from "san/types"; import ScrollableInkTabBar from "./ScrollableInkTabBar"; type Children = { data: Data; key: string; }[]; export declare function getTransformPropValue(v: T): { [key: string]: T; }; export declare function getActiveIndex(children: Children, activeKey: string): number; export declare function getActiveKey(children: Children, index: number): string; export declare function isTransform3dSupported(style: ScrollableInkTabBar): false | (((data: string) => string) & typeof atob); export declare function setTransform(style: { transform: string; webkitTransform: string; mozTransform: string; }, v: string): void; export declare function setTransition(style: { transition: string; webkitTransition: string; MozTransition: string; }, v: string): void; export declare function isVertical(tabBarPosition: string): boolean; export declare function getTransformByIndex(index: number, tabBarPosition: string): string; export declare function getMarginStyle(index: number, tabBarPosition: string): { [key: string]: string; }; export declare function getStyle(el: Element, property: string): number; export declare function setPxStyle(el: { style: { transform: string; webkitTransform: string; mozTransform: string; }; }, value: string, vertical: string): void; export declare function getDataAttr(props: { [x: string]: any; }): { [x: string]: any; }; export declare function getLeft(tabNode: Record, wrapperNode: Element): number; export declare function getTop(tabNode: Record, wrapperNode: Element): number; export {};