import { Request } from 'express';
import { components } from '../../../types/api';
import { FilterValue } from '../../_filters/types';
import { defaultFilterValue } from '../../../utils/Personalisation/types';
export declare const setDateValueWithinMinMax: (filter: components["schemas"]["FilterDefinition"]) => string | undefined;
export declare const setValueFromRequest: (filter: FilterValue, req: Request, prefix: string) => string;
export declare const setFilterValueFromDefault: (defaultValue: defaultFilterValue, filter: FilterValue) => {
    value: string;
    min?: string;
    max?: string;
    relativeOptions?: {
        value: string;
        text: string;
        disabled?: boolean;
    }[];
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
} | {
    value: string;
    minimumLength?: number | undefined;
    pattern?: string | undefined;
    text: string;
    name: string;
    type: import("../../_filters/filter-input/enum").FilterType;
    mandatory?: boolean | undefined;
    index?: number | undefined;
} | {
    value: string;
    options: Array<import("../../_filters/types").FilterOption>;
    staticOptionNameValue?: string;
    dynamicResourceEndpoint?: string;
    text: string;
    name: string;
    type: import("../../_filters/filter-input/enum").FilterType;
    mandatory?: boolean | undefined;
    index?: number | undefined;
} | {
    value: string;
    values: string[];
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
    options: Array<import("../../_filters/types").FilterOption>;
    staticOptionNameValue?: string;
    dynamicResourceEndpoint?: string;
} | {
    value: string;
    min?: string;
    max?: string;
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
} | {
    value: string;
    min?: string;
    max?: string;
    relativeOptions?: {
        value: string;
        text: string;
        disabled?: boolean;
    }[];
    quickFilterOptions?: {
        value: string;
        text: string;
        disabled?: boolean;
    }[];
    granularityOptions?: {
        value: string;
        text: string;
    }[];
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
};
export declare const getFilterFromDefinition: (filter: components["schemas"]["FilterDefinition"], filterData: FilterValue) => {
    value: string;
    min: string | null | undefined;
    max: string | null | undefined;
    relativeOptions?: {
        value: string;
        text: string;
        disabled?: boolean;
    }[];
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
} | {
    value: string;
    min: string | null | undefined;
    max: string | null | undefined;
    minimumLength?: number | undefined;
    pattern?: string | undefined;
    text: string;
    name: string;
    type: import("../../_filters/filter-input/enum").FilterType;
    mandatory?: boolean | undefined;
    index?: number | undefined;
} | {
    value: string;
    min: string | null | undefined;
    max: string | null | undefined;
    options: Array<import("../../_filters/types").FilterOption>;
    staticOptionNameValue?: string;
    dynamicResourceEndpoint?: string;
    text: string;
    name: string;
    type: import("../../_filters/filter-input/enum").FilterType;
    mandatory?: boolean | undefined;
    index?: number | undefined;
} | {
    value: string;
    min: string | null | undefined;
    max: string | null | undefined;
    values: string[];
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
    options: Array<import("../../_filters/types").FilterOption>;
    staticOptionNameValue?: string;
    dynamicResourceEndpoint?: string;
} | {
    value: string;
    min: string | null | undefined;
    max: string | null | undefined;
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
} | {
    value: string;
    min: string | null | undefined;
    max: string | null | undefined;
    relativeOptions?: {
        value: string;
        text: string;
        disabled?: boolean;
    }[];
    quickFilterOptions?: {
        value: string;
        text: string;
        disabled?: boolean;
    }[];
    granularityOptions?: {
        value: string;
        text: string;
    }[];
    type: import("../../_filters/filter-input/enum").FilterType;
    name: string;
    text: string;
    mandatory?: boolean | undefined | undefined;
    index?: number | undefined | undefined;
};
declare const _default: {
    setDateValueWithinMinMax: (filter: components["schemas"]["FilterDefinition"]) => string | undefined;
    getFilterFromDefinition: (filter: components["schemas"]["FilterDefinition"], filterData: FilterValue) => {
        value: string;
        min: string | null | undefined;
        max: string | null | undefined;
        relativeOptions?: {
            value: string;
            text: string;
            disabled?: boolean;
        }[];
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
    } | {
        value: string;
        min: string | null | undefined;
        max: string | null | undefined;
        minimumLength?: number | undefined;
        pattern?: string | undefined;
        text: string;
        name: string;
        type: import("../../_filters/filter-input/enum").FilterType;
        mandatory?: boolean | undefined;
        index?: number | undefined;
    } | {
        value: string;
        min: string | null | undefined;
        max: string | null | undefined;
        options: Array<import("../../_filters/types").FilterOption>;
        staticOptionNameValue?: string;
        dynamicResourceEndpoint?: string;
        text: string;
        name: string;
        type: import("../../_filters/filter-input/enum").FilterType;
        mandatory?: boolean | undefined;
        index?: number | undefined;
    } | {
        value: string;
        min: string | null | undefined;
        max: string | null | undefined;
        values: string[];
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
        options: Array<import("../../_filters/types").FilterOption>;
        staticOptionNameValue?: string;
        dynamicResourceEndpoint?: string;
    } | {
        value: string;
        min: string | null | undefined;
        max: string | null | undefined;
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
    } | {
        value: string;
        min: string | null | undefined;
        max: string | null | undefined;
        relativeOptions?: {
            value: string;
            text: string;
            disabled?: boolean;
        }[];
        quickFilterOptions?: {
            value: string;
            text: string;
            disabled?: boolean;
        }[];
        granularityOptions?: {
            value: string;
            text: string;
        }[];
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
    };
    setValueFromRequest: (filter: FilterValue, req: Request, prefix: string) => string;
    setFilterValueFromDefault: (defaultValue: defaultFilterValue, filter: FilterValue) => {
        value: string;
        min?: string;
        max?: string;
        relativeOptions?: {
            value: string;
            text: string;
            disabled?: boolean;
        }[];
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
    } | {
        value: string;
        minimumLength?: number | undefined;
        pattern?: string | undefined;
        text: string;
        name: string;
        type: import("../../_filters/filter-input/enum").FilterType;
        mandatory?: boolean | undefined;
        index?: number | undefined;
    } | {
        value: string;
        options: Array<import("../../_filters/types").FilterOption>;
        staticOptionNameValue?: string;
        dynamicResourceEndpoint?: string;
        text: string;
        name: string;
        type: import("../../_filters/filter-input/enum").FilterType;
        mandatory?: boolean | undefined;
        index?: number | undefined;
    } | {
        value: string;
        values: string[];
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
        options: Array<import("../../_filters/types").FilterOption>;
        staticOptionNameValue?: string;
        dynamicResourceEndpoint?: string;
    } | {
        value: string;
        min?: string;
        max?: string;
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
    } | {
        value: string;
        min?: string;
        max?: string;
        relativeOptions?: {
            value: string;
            text: string;
            disabled?: boolean;
        }[];
        quickFilterOptions?: {
            value: string;
            text: string;
            disabled?: boolean;
        }[];
        granularityOptions?: {
            value: string;
            text: string;
        }[];
        type: import("../../_filters/filter-input/enum").FilterType;
        name: string;
        text: string;
        mandatory?: boolean | undefined | undefined;
        index?: number | undefined | undefined;
    };
};
export default _default;
