import { Key } from 'react-aria'; import { TextStyleDefinition } from '../constants'; export type UseToolbarStateProps = { withPreservedSelection: (fn: () => void) => () => void; textStyles: TextStyleDefinition[]; }; export declare const useToolbarState: ({ withPreservedSelection, textStyles, }: UseToolbarStateProps) => { currentTextStyle: string; selectedTextStyle: TextStyleDefinition | undefined; selectedTextStyleLabel: string; handleTextStyleChange: (styleId: string) => void; handleListToggle: (selectedKeys: Set) => void; selectedFormatKeys: Set; selectedListKeys: Set; hasUndos: boolean; hasRedos: boolean; };