import { ItemOption } from '../Combobox.types';
type NestedTreePath = {
    [key: string]: {} | NestedTreePath;
};
export type TreePathState = NestedTreePath;
export type TreePathAction = {
    type: 'reset';
} | {
    type: 'toggled_level';
    value: string[];
} | {
    type: 'expand_by_key';
    value: {
        filteredItems: ItemOption[];
        filterCb: (item: ItemOption, textValue: string) => boolean;
        textValue: string;
    };
} | {
    type: 'open_level';
    value: string[];
} | {
    type: 'close_level';
    value: string[];
};
export declare const keyExists: (obj: NestedTreePath, path: string[]) => boolean;
export declare function treePathReducer(state: TreePathState, action: TreePathAction): TreePathState;
export {};
//# sourceMappingURL=treePathReducer.d.ts.map