import React from "react"; import { ControlledProps } from "../form/controlled"; import { Omit } from "../_type"; import { DropdownProps } from "../dropdown"; export interface RegionSelectShortcutOptions { /** * 快捷选择标题 * @default "最近访问" (已处理国际化) */ title?: React.ReactNode; /** * 缓存 Key * * **缓存最近点击的项至 localStorage** * @since 2.7.2 */ cacheKey?: string; /** * 自定义快捷选择可选项 */ options?: string[]; } export interface RegionSelectProps extends ControlledProps, Omit { /** * 下拉内容,应该使用 `RegionPanel` */ children?: React.ReactNode; /** * 在下拉按钮显示的额外信息 */ moreInfo?: React.ReactNode; /** * 是否禁用 * @default false * @since 2.4.1 */ disabled?: boolean; /** * 快捷选择(最近访问)区域配置 * * 选项设置方式: * - 设置 `cacheKey` 使用默认缓存方式记录最近访问选项 * - 设置 `options` 自定义该区域可选项 * * @since 2.5.0 */ shortcut?: RegionSelectShortcutOptions; } export declare const RegionSelect: React.FunctionComponent> & { defaultLabelAlign: string; };