import { TileryTab } from 'tilery/internal';
import { TileryTabTriggerRenderer } from '../tilery';
/**
* Props for the {@link Tab} component.
*/
export type TabProps = {
/** The tab model that provides id, closable, and draggable flags. */
tab: TileryTab;
/** Whether this tab is currently selected. */
isActive: boolean;
/**
* Renders the visible header content (title, icon, etc.) inside the tab
* trigger.
*/
renderHeader: (tab: TileryTab, ctx: {
isActive: boolean;
}) => React.ReactNode;
/**
* Replaces the default `
` trigger element with a custom component.
* When provided, pointer event handlers are attached to the custom element
* via `props` rather than to the outer tab wrapper.
*/
renderTrigger?: TileryTabTriggerRenderer;
/** Called on pointer-down over the tab trigger. */
onPointerDown: (e: React.PointerEvent) => void;
/** Called on pointer-move during a drag gesture. */
onPointerMove: (e: React.PointerEvent) => void;
/** Called on pointer-up to end a drag or confirm a click. */
onPointerUp: (e: React.PointerEvent) => void;
/** Called on pointer-cancel to clean up an interrupted gesture. */
onPointerCancel: (e: React.PointerEvent) => void;
/** Callback ref that registers the tab's root DOM element by ID. */
registerTab: (tabId: string, el: HTMLElement | null) => void;
/** Called when the close button is clicked. */
onClose: () => void;
/**
* Optional resolver for a tab's accessible label, used for the close
* button's `aria-label`. Falls back to a generic label when absent.
*/
getTabLabel?: (tab: TileryTab) => string;
};
/**
* Renders a single tab entry in the tab strip. Supports a default `
`
* trigger or a fully custom trigger via `renderTrigger`, and appends a close
* button when `tab.closable` is true.
*/
export declare const Tab: import('react').MemoExoticComponent<({ tab, isActive, renderHeader, renderTrigger, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, registerTab, onClose, getTabLabel, }: TabProps) => import("react").JSX.Element>;
//# sourceMappingURL=tab.d.ts.map