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

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