import { Key } from 'react-aria';
export type UseFormattingStateProps = {
    withPreservedSelection: (fn: () => void) => () => void;
};
export declare const useFormattingState: ({ withPreservedSelection, }: UseFormattingStateProps) => {
    selectedKeys: Set<string>;
    selectedScriptKeys: Set<string>;
    allSelectedKeys: Set<string>;
    handleAllSelectionChange: (keys: "all" | Set<Key>) => void;
};
