import { ModeType } from "../../dataSourceForm/type.js";
import React from "react";
import { InputProps } from "antd";

//#region src/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts
type PhoneValue = string | {
  phone: string;
  countryCallingCode: string;
  countryCode?: string;
};
interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
  renderMode: ModeType;
  value?: PhoneValue;
  onChange?: (value: PhoneValue) => void;
  returnFormat?: 'string' | 'object';
  inputRef?: any;
}
//#endregion
export { PhoneInputProps };