// Copyright © 2022-2026 Partium, Inc. DBA Partium /** * @deprecated not needed for new search, use search.performSearch and SearchInput. */ export declare enum SearchFilterType { CategoryFilter = "category", IncludeExcludeFilter = "includeExclude", KvpHardFilter = "kvpHardFilter" } /** * Search-filters that can be applied to a search-session, in order to narrow down the search. * * @deprecated not needed for new search, use search.performSearch and SearchInput. */ export declare class SearchFilter { key: string; type: SearchFilterType; header?: string; constructor(key: string, type: SearchFilterType); /** * checks equality between filters. Need to be overriden by sub types to correctly determine equality. * @param other * @returns true if they can be considered equal, false if not */ equals(other: SearchFilter): boolean; /** * checks if the filter has any value set. * @returns true if the filter has no value set */ isEmpty(): boolean; } /** * @deprecated this filter class is deprecated. Use the KvpHardFilter instead. */ export declare class CategoryFilter extends SearchFilter { value: string | string[]; label?: string; constructor(key: string, value: string | string[], label?: string); equals(other: SearchFilter): boolean; } /** * @deprecated not needed for new search, use search.performSearch and SearchInput. */ export declare class IncludeExcludeFilter extends SearchFilter { include: string[]; exclude: string[]; label?: string; constructor(key: string, include: string[], exclude: string[], label?: string); equals(other: SearchFilter): boolean; isEmpty(): boolean; } /** * @deprecated not needed for new search, use search.performSearch and SearchInput. */ export declare class ExternalPayloadFilter extends CategoryFilter { constructor(field: string, value: string, label?: string); } /** * @deprecated this filter class is deprecated and will be removed in a future version of the SDK, use HierarchyPartiumIdFilter instead */ export declare class HierarchyFilter extends CategoryFilter { constructor(partiumId: string, label?: string); } /** * Hierarchy search filter that allows filtering for assembly hierarchy nodes by their partiumId. * This is an IncludeExcludeFilter, which means that nodes can be included, as well as excluded in the search. * For example it is possible to exclude nodes and search only in the nodes that are not excluded. * This is also combinable with the include, e.g. a parent node can be included, but some of its child nodes can be excluded from the search * * @deprecated not needed for new search, use search.performSearch and SearchInput. */ export declare class HierarchyPartiumIdFilter extends IncludeExcludeFilter { static readonly KEY = "hierarchy-partium-id"; constructor(include: string[], exclude?: string[], label?: string); } /** * Key-value hard filters * * @deprecated not needed for new search, use search.performSearch and SearchInput. */ export declare class KvpHardFilter extends SearchFilter { label: string; values: string[]; constructor(partiumId: string, label: string, values: string[]); equals(other: SearchFilter): boolean; isEmpty(): boolean; }