export type PropertyFilterOptionDescriptor = {
    id: string;
    title: string;
    disabled: boolean;
};

export type PropertyFilterSelectValue = PropertyFilterOptionDescriptor['id'];

export type PropertyFilterMultiSelectValue = Array<PropertyFilterOptionDescriptor['id']>;

export type PropertyFilterValue = {
    [id: string]: PropertyFilterSelectValue | PropertyFilterMultiSelectValue;
};

export type PropertyFilterContext = {
    values: PropertyFilterValue;
    onChange(id: string, value: PropertyFilterSelectValue | PropertyFilterMultiSelectValue): void;
};
