/** * This source code is quoted from rc-tabs. * homepage: https://github.com/react-component/tabs */ import React from 'react'; import { TabBarRootNodeProps } from './iTabs'; export declare function toArray(children: React.ReactNode): any[]; export declare function getActiveIndex(children: React.ReactNode, activeKey?: string): number; export declare function getActiveKey(children: React.ReactNode, index: number): any; export declare function setTransform(style: React.CSSProperties, v?: string): void; export declare function isTransformSupported(style: React.CSSProperties): boolean; export declare function setTransition(style: React.CSSProperties, v: string): void; export declare function getTransformPropValue(v: string): { transform: string; WebkitTransform: string; MozTransform: string; }; export declare function isVertical(tabBarPosition?: string): boolean; export declare function getTransformByIndex(index: number, tabBarPosition: string): string; export declare function getMarginStyle(index: number, tabBarPosition: string): { [x: string]: string; }; export declare function getStyle(el: HTMLElement, property: string): number; export declare function setPxStyle(el: HTMLElement, property: string, value: number): void; export declare function getLeft(tabNode: HTMLElement, wrapperNode: HTMLElement): number; export declare function getTop(tabNode: HTMLElement, wrapperNode: HTMLElement): number; export declare function getDataAttr(props: Omit): {}; export declare function requestAnimationFrame(callback: () => void): void;