import type { OioTreeNode } from '@oinone/kunlun-shared';
import { SelectMode } from '@oinone/kunlun-vue-ui-common';
type Options = {
    isDiff?: () => boolean | undefined;
};
export declare function useTreeChecked(state: {
    mode: SelectMode;
} & InitState, options?: Options): {
    onChecked: (node: OioTreeNode, checked: boolean) => void;
    onCheckedStrictly: (node: OioTreeNode, checked: boolean) => void;
    $$checkedStrictly: (node: OioTreeNode, checked: boolean, usingOrigin?: boolean) => void;
    onCheckedAll: (nodes: OioTreeNode[], checked: boolean) => void;
    onRefreshCheckedState: (nodes: OioTreeNode[], checkedKeys: string[]) => void;
};
type InitState = {
    storage: Record<string, OioTreeNode>;
} & State;
type State = {
    checkedKeys: string[];
    checkedNodes: OioTreeNode[];
    lastCheckedKeys?: string[];
    lastCheckedNodes?: OioTreeNode[];
    submitCheckedKeys?: string[];
    submitCheckedNodes?: OioTreeNode[];
};
export {};
