import DshNode from './node';
import type { Nullable } from 'code-monkey-ui/es/utils';
import type { DshCascaderConfig, DshCascaderNodePathValue, DshCascaderNodeValue, DshCascaderOption } from './node';
export default class Store {
    readonly config: DshCascaderConfig;
    readonly nodes: DshNode[];
    readonly allNodes: DshNode[];
    readonly leafNodes: DshNode[];
    constructor(data: DshCascaderOption[], config: DshCascaderConfig);
    getNodes(): DshNode[];
    getFlattedNodes(leafOnly: boolean): DshNode[];
    appendNode(nodeData: DshCascaderOption, parentNode?: DshNode): void;
    appendNodes(nodeDataList: DshCascaderOption[], parentNode: DshNode): void;
    getNodeByValue(value: DshCascaderNodeValue | DshCascaderNodePathValue, leafOnly?: boolean): Nullable<DshNode>;
    getSameNode(node: DshNode): Nullable<DshNode>;
}
