/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { PipeTransform } from '@angular/core'; export declare type SortLabelType = 'string' | 'date' | 'number'; export declare type DatoSearchResultsSortPipeConfig = { labelKey?: string | undefined; sortFn?: (params: { array: T[]; labelKey: string; }) => T[]; labelType?: SortLabelType; }; export declare class DatoSearchResultsSortPipe implements PipeTransform { transform(array: T[], searchTerm: string, config?: DatoSearchResultsSortPipeConfig): T[]; private getSortFn; }