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<Key>) => void;
    selectedFormatKeys: Set<string>;
    selectedListKeys: Set<string>;
    hasUndos: boolean;
    hasRedos: boolean;
};
