/** * Copyright 2022 Gravwell, Inc. All rights reserved. * * Contact: [legal@gravwell.io](mailto:legal@gravwell.io) * * This software may be modified and distributed under the terms of the MIT * license. See the LICENSE file for details. */ import { Observable } from 'rxjs'; import { SearchFilter } from '../../../models/search/search-filter'; import { RequiredSearchFilter } from '../subscribe-to-one-search/helpers'; export declare type DateRange = { start: Date; end: Date; }; export declare type CreateRequiredSearchFilterObservable = { /** Observable that will receives the properties of search to be updated */ filter$: Observable; /** First filter that will be emitted by the source */ initialFilter: RequiredSearchFilter; /** Date range used on preview */ previewDateRange: DateRange; /** Values used in the lack of a initial filter value */ defaultValues: { dateStart: Date; dateEnd: Date; }; }; /** * Creates the necessary properties to control the filter of a search. * * @returns An observable that emits the updated search */ export declare const createRequiredSearchFilterObservable: ({ filter$, initialFilter, previewDateRange, defaultValues, }: CreateRequiredSearchFilterObservable) => Observable;