import * as React from 'react'; import type { DisplayOnType } from '../utils'; export type ToolbarItemProps = { /** * Target display of this item. Choose 'phone' to prevent collapsing. */ displayOn?: DisplayOnType; /** * Expects one \`ToolbarItemView\` element and one \`MoreMenuView\` element */ children: [ React.ReactElement>, React.ReactElement ] | React.ReactElement>; }; export declare const ToolbarItem: React.MemoExoticComponent<({ children, displayOn, }: ToolbarItemProps) => React.JSX.Element>; type ToolbarItemViewProps = { /** * @deprecated This had been introduced as a temporary fix. We plan to * fix more fully in a future release which will result in this prop being removed. */ refOverride?: React.MutableRefObject; /** * @deprecated Pass disabled state directly to the child */ disabled?: boolean; /** * Render-prop function to return children */ children: (ref: React.MutableRefObject, props: { /** @deprecated Pass disabled state directly to the child */ disabled?: boolean; showLabels: boolean; toolbarItemProps: { onKeyDown: React.KeyboardEventHandler; onClick: React.MouseEventHandler; tabIndex: number; focused: boolean; }; }) => React.JSX.Element; }; export declare function ToolbarItemView(props: ToolbarItemViewProps): React.JSX.Element | null; export type ToolbarItemCollapsedViewProps = { /** * Needs to be a compatible child to the pv-uikit Dropdown component */ children: React.ReactElement; }; export declare const ToolbarItemCollapsedView: React.MemoExoticComponent<({ children }: ToolbarItemCollapsedViewProps) => null>; export {}; //# sourceMappingURL=index.d.ts.map