export interface SetHookConfig { /** * @since 10.19.0 */ initialValue?: Set; /** * @since 10.19.0 */ onChange?: (newCollection: Set) => void; /** * @since 10.19.0 */ onAdd?: (item: T) => void; /** * @since 10.19.0 */ onRemove?: (item: T) => void; } export declare function useSet({ initialValue, onChange, onAdd, onRemove, }?: SetHookConfig): { collection: Set; setCollection: (newCollection: Set) => void; has: (item: T) => boolean; add: (item: T) => void; remove: (item: T) => void; removeAll: () => void; toggle: (item: T) => void; };