import * as React from 'react'; import { type ActionItem, type MaxVisible } from './action-bar-plan.js'; export interface ActionBarProps extends Omit, 'children'> { items: ActionItem[]; /** * Upper bound of inline buttons (primary included), by viewport breakpoint. * The bar also collapses by real measured width. Default `{ base: 2, md: 3, lg: 4 }`. */ maxVisible?: MaxVisible; /** Label of the overflow trigger (visible on desktop, `aria-label` on mobile). Default «Más». */ overflowLabel?: string; /** `auto`: dropdown from `md` up, bottom sheet below. Default `auto`. */ overflowAs?: 'auto' | 'menu' | 'sheet'; /** Horizontal alignment of the buttons. Default `end`. */ align?: 'start' | 'end'; /** Called when an action's `run` throws or rejects. Without it the error is rethrown. */ onActionError?: (error: unknown, item: ActionItem) => void; } /** * ActionBar — one primary, a few secondaries and a «⋯» overflow that collapses * by measured width (ResizeObserver), not only by breakpoint. Destructive * actions always sit last in the overflow, separated and in red, behind a * confirmation. Below `md` the overflow opens as a bottom sheet and * secondaries with an icon render icon-only (labelled). * * @example * , run: print }, * { key: 'delete', label: 'Eliminar', destructive: true, run: remove }, * ]} /> */ export declare function ActionBar({ items, maxVisible, overflowLabel, overflowAs, align, onActionError, className, style, ...props }: ActionBarProps): React.JSX.Element; //# sourceMappingURL=action-bar.d.ts.map