import * as React from 'react'; import { TabSelectHandler } from './ContextTypes'; export interface TabContainerProps { id: string; className?: string; style?: React.CSSProperties; /** * A function that takes an `eventKey` and `type` and returns a unique id for * child tab ``s and ``s. The function _must_ be a pure * function, meaning it should always return the _same_ id for the same set * of inputs. The default value requires that an `id` to be set for the * ``. * * The `type` argument will either be `"tab"` or `"pane"`. * * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}` */ generateChildId?: Function; /** * A callback fired when a tab is selected. * * @controllable activeKey */ onSelect?: TabSelectHandler; /** * The `eventKey` of the currently active tab. * * @controllable onSelect */ activeKey?: string | number; } export interface TabContainerState { activeKey: string | number; } export declare class TabContainer extends React.Component { private static childContextTypes; constructor(props: TabContainerProps); getId: (props: TabContainerProps) => any; private onSelect; getChildContext(): { $bs_tabContainer: { activeKey: string | number; onSelect: (key: string | number) => void; getTabId: (key: any) => any; getPaneId: (key: any) => any; }; }; render(): React.ReactElement; }