import * as React from 'react';
import type { Override } from '../helpers/overrides';
import { ORIENTATION, STATE_CHANGE_TYPE } from './constants';
export declare type SharedStylePropsArg = {
    $disabled?: boolean;
    $active?: boolean;
    $orientation?: typeof ORIENTATION[keyof typeof ORIENTATION];
    $isFocusVisible?: boolean;
};
export declare type StatefulTabsState = {
    activeKey: React.Key;
};
export declare type StateChangeType = keyof typeof STATE_CHANGE_TYPE;
export declare type StateReducer = (stateChangeType: StateChangeType, nextState: StatefulTabsState, currentState: StatefulTabsState) => StatefulTabsState;
export declare type TabsOverrides = {
    Root?: Override;
    TabBar?: Override;
    TabContent?: Override;
    Tab?: Override;
};
export declare type TabOverrides = {
    Tab?: Override;
};
export declare type OnChangeHandler = (a: {
    activeKey: React.Key;
}) => unknown;
export declare type TabsProps = {
    /** An array of Tab components. */
    children: Array<React.ReactElement<any>> | React.ReactElement<any>;
    /**  Key of the the tab to be selected. */
    activeKey: React.Key;
    /** If set to true all its tabs will be disabled */
    disabled?: boolean;
    /** Change handler that is called every time a new tab is selected */
    onChange?: OnChangeHandler;
    /** Sets the orientation of the Tab component */
    orientation?: typeof ORIENTATION[keyof typeof ORIENTATION];
    /** Renders all tab content for SEO purposes regardless of tab active state */
    renderAll?: boolean;
    overrides?: TabsOverrides;
};
export declare type StatefulTabsProps = Omit<TabsProps, 'activeKey'> & {
    /**  Initial state of the component */
    initialState?: StatefulTabsState;
    /**  A state change handler. */
    stateReducer: StateReducer;
};
export declare type TabPanelProps = {
    children?: React.ReactNode;
    /** Sets the tab to disabled */
    disabled?: boolean;
    active?: boolean;
    /**  Unique key for the tab. Defaults to the child index. */
    key?: React.Key;
    /** onClick handler for the Tab element */
    onClick?: (e: Event) => unknown;
    /** onKeyDown handler for the Tab element */
    onKeyDown?: (e: KeyboardEvent) => unknown;
    /** onSelect handler for the Tab element */
    onSelect?: () => unknown;
    overrides?: TabOverrides;
    /** Title of the Tab to be shown in the Tab bar */
    title?: React.ReactNode;
};
export declare type TabProps = TabPanelProps & {
    id?: string;
    $orientation?: typeof ORIENTATION[keyof typeof ORIENTATION];
};
