import type { OioListItem } from '@oinone/kunlun-shared';
import { SelectMode } from '@oinone/kunlun-vue-ui-common';
type Options = {
    isDiff?: () => boolean | undefined;
};
export declare function useListChecked(state: {
    mode: SelectMode;
} & InitState, options?: Options): {
    onChecked: (item: OioListItem, checked: boolean) => void;
    $$updateChecked: (state: State, item: OioListItem, checked: boolean) => void;
    onCheckedAll: (items: OioListItem[], checked: boolean) => void;
    onRefreshCheckedState: (items: OioListItem[], checkedKeys: string[]) => void;
};
type InitState = {
    storage: Record<string, OioListItem>;
} & State;
type State = {
    checkedKeys: string[];
    checkedItems: OioListItem[];
    lastCheckedKeys?: string[];
    lastCheckedItems?: OioListItem[];
    submitCheckedKeys?: string[];
    submitCheckedItems?: OioListItem[];
};
export {};
