/*!
 * Copyright 2019 VMware, Inc.
 * SPDX-License-Identifier: BSD-2-Clause
 */
import { OnDestroy } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { ClrDatagridFilter } from '@clr/angular';
import { DatagridFilter, FilterConfig, FilterRendererSpec } from './datagrid-filter';
export declare enum WildCardPosition {
    NONE = 0,
    START = 1,
    END = 2,
    WRAP = 3
}
/**
 * Configures the '*' position in the FIQL string output
 */
export interface DatagridStringFilterConfig extends FilterConfig<string> {
    wildCardPosition?: WildCardPosition;
}
export declare class DatagridStringFilterComponent extends DatagridFilter<string, DatagridStringFilterConfig> implements OnDestroy {
    private filterContainer;
    createFormGroup(): FormGroup;
    constructor(filterContainer: ClrDatagridFilter);
    setValue(value: string): void;
    getValue(): string;
    isActive(): boolean;
    /**
     * Wraps a string with a `wrapCharacter` in given position;
     */
    private addWildCard;
    ngOnDestroy(): void;
}
/**
 * Creates a {@link FilterRendererSpec} with the given config.
 * @param wildCardPosition where the * should go in the FIQL string output.
 * @param value the default value of the filter
 */
export declare function DatagridStringFilter(wildCardPosition?: WildCardPosition, value?: string): FilterRendererSpec<DatagridStringFilterConfig>;
