// Copyright © 2022-2026 Partium, Inc. DBA Partium import { TextSearchResultItem } from "./text-search-result-item/text-search-result-item"; import { SdkError } from "../../core"; /** * The Text-Search can have different result-types, like parts or documents. * It is possible to also have results of a type that is unknown to the Partium SDK. * By default, these items will be of type TextSearchResultItemUnknown, when they are leaving the SDK. * It is possible to implement the tetSearchResultManipulatorFunction to intersect this action and * manipulate, replace or remove result-items. This allows the user of the SDK to add new types * and replace the Unknown-Objects with objects of these new types. * * @deprecated this feature will not be supported anymore in the future. */ export declare abstract class TextSearchManipulator { /** * Method that can be overridden to process the text-search-result. * This is currently needed for DB Schadcodes, maybe it will not be needed in the future anymore * and can then be removed. * * The default method does nothing */ abstract textSearchResultManipulatorFunction(res: { query: string; result?: Array; error?: SdkError; }): Promise<{ query: string; result?: Array; error?: SdkError; }>; } /** * The default implementation of the TextSearchManipulator does not do any changes to the * search-result. It will just forward it with the unknown object type. */ export declare class TextSearchManipulatorDoNothing extends TextSearchManipulator { textSearchResultManipulatorFunction(res: { query: string; result?: Array; error?: SdkError; }): Promise<{ query: string; result?: Array; error?: SdkError; }>; }