/// import React from 'react'; import { FormControlProps } from 'amis-core'; import { ThemeProps } from 'amis-core'; import { ActionObject } from 'amis-core'; import { Option } from 'amis-core'; import { LocaleProps } from 'amis-core'; import { FormBaseControlSchema } from '../../Schema'; /** * City 城市选择框。 * 文档:https://baidu.gitee.io/amis/docs/components/form/city */ export interface InputCityControlSchema extends FormBaseControlSchema { /** * 指定为城市选择框。 */ type: 'input-city'; /** * 开启后只会存城市的 code 信息 */ extractValue?: boolean; /** * 是否将各个信息拼接成字符串。 */ joinValues?: boolean; /** * 拼接的符号是啥? */ delimiter?: string; /** * 允许选择城市? */ allowCity?: boolean; /** * 允许选择地区? */ allowDistrict?: boolean; /** * 允许选择街道? */ allowStreet?: boolean; /** * 是否显示搜索框 */ searchable?: boolean; } export interface CityPickerProps extends Omit, LocaleProps, ThemeProps { value: any; onChange: (value: any) => void; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; useMobileUI?: boolean; } export interface CityPickerState { code: number; province: string; provinceCode: number; city: string; cityCode: number; district: string; districtCode: number; street: string; db?: { province: Array; city: { [propName: number]: Array; }; district: { [propName: number]: { [propName: number]: Array; } | Array; }; [propName: string]: any; }; } export declare class CityPicker extends React.Component { static defaultProps: { joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }; state: CityPickerState; componentDidMount(): void; componentDidUpdate(prevProps: CityPickerProps): void; loadDb(callback?: () => void): void; handleProvinceChange(option: Option): void; handleCityChange(option: Option): void; handleDistrictChange(option: Option, otherStates?: Partial): void; handleStreetChange(e: React.ChangeEvent): void; handleStreetEnd(): void; syncIn(props?: Readonly & Readonly<{ children?: React.ReactNode; }>): void; syncOut(): void; render(): JSX.Element; } declare const ThemedCity: { new (props: Omit, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType<{ new (props: Pick, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof CityPicker; }>; } & import("hoist-non-react-statics").NonReactStatics<{ new (props: Pick, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof CityPicker; }, {}> & { ComposedComponent: { new (props: Pick, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "remark" | "hidden" | "label" | "className" | "$ref" | "disabled" | "disabledOn" | "hiddenOn" | "visible" | "visibleOn" | "id" | "onEvent" | "classPrefix" | "classnames" | "theme" | "useMobileUI" | "desc" | "name" | "placeholder" | "size" | "onChange" | "labelRemark" | "labelAlign" | "labelWidth" | "labelClassName" | "hint" | "submitOnChange" | "readOnly" | "readOnlyOn" | "validateOnChange" | "description" | "descriptionClassName" | "mode" | "horizontal" | "inline" | "inputClassName" | "required" | "validationErrors" | "validations" | "value" | "clearValueOnHidden" | "validateApi" | "searchable"> & Partial, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof CityPicker; }; }; export default ThemedCity; export interface LocationControlProps extends FormControlProps { allowCity?: boolean; allowDistrict?: boolean; extractValue?: boolean; joinValues?: boolean; allowStreet?: boolean; } export declare class LocationControl extends React.Component { doAction(action: ActionObject, data: object, throwErrors: boolean): void; handleChange(value: number | string): Promise; render(): JSX.Element; } export declare class CheckboxControlRenderer extends LocationControl { }