///
import { ArchAndShopSelectorProps, ArchAndShopValue, ArchNode, ShopNode } from './types';
export declare const useDoubleValue: (v: T | [T, T]) => [T, T];
/** 选择器核心的数据处理逻辑 */
export declare const useArchAndShopCore: (props: ArchAndShopSelectorProps) => {
archList: ArchNode[];
archMap: Record;
archIds: number[] | undefined;
shopIds: number[] | undefined;
shopList: ShopNode[];
allShopList: ShopNode[];
setValue: import("react").Dispatch>;
isControlledShop: boolean;
emitChangedValue: (newValue: ArchAndShopValue) => void;
};
/** 封装了选择器多选版本逻辑的hook */
export declare const useArchAndShop: (props: ArchAndShopSelectorProps) => {
archList: ArchNode[];
shopList: ShopNode[];
shopTree: {
title: string;
value: string;
children: {
children: {
title: string;
value: number;
}[];
title: string;
value: string;
}[];
}[];
archIds: number[] | undefined;
shopIds: number[] | undefined;
treeValue: (string | number)[] | undefined;
onArchChange: (value: number[]) => void;
onShopChange: (value: (string | number)[]) => void;
};
/** 封装了选择器单选版本逻辑的hook */
export declare const useArchAndShopSingle: (props: ArchAndShopSelectorProps) => {
archList: ArchNode[];
shopList: ShopNode[];
archIds: number[] | undefined;
shopId: number | undefined;
onArchChange: (value: number[]) => void;
onShopChange: (value: number) => void;
};