import { type Filter, FilterRelations } from '@sisense/sdk-data';
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
import { BeforeMenuOpenHandler, OpenMenuFn } from '../../../infra/contexts/menu-provider/types.js';
import { CommonFiltersOptions } from './types.js';
/** @internal */
export declare const useCommonFilters: ({ initialFilters: initialCommonFiltersOrFilterRelations, openMenu, onBeforeMenuOpen, onFiltersChange, }?: {
    initialFilters?: FilterRelations | Filter[] | undefined;
    openMenu?: OpenMenuFn | undefined;
    onBeforeMenuOpen?: BeforeMenuOpenHandler | undefined;
    onFiltersChange?: ((filters: Filter[] | FilterRelations) => void) | undefined;
}) => {
    filters: FilterRelations | Filter[];
    setFilters: (filtersOrFilterRelations: FilterRelations | Filter[]) => void;
    addFilter: (filter: Filter) => void;
    connectToWidgetProps: (widgetProps: WidgetProps, options?: CommonFiltersOptions) => WidgetProps;
};
