/** MotherShip 地址联想候选项（用户须在多选时手动确认） */
export type MothershipAddressCandidate = {
  option_id: string;
  display_label: string;
  formatted_address: string;
  street: string;
  city: string;
  state: string;
  zip: string;
  /** false 表示 MotherShip GET place 失败，不可用于询价 */
  selectable?: boolean;
  unavailable_reason?: string;
};

export type MothershipCandidatesResult = {
  pickup_candidates: MothershipAddressCandidate[];
  delivery_candidates: MothershipAddressCandidate[];
  /** 任一侧 >1 候选时需用户点选 */
  requires_selection: boolean;
  /** 候选 RPA 浏览器会话 ID，询价时传入以复用 storageState */
  quote_session_id?: string;
};

export type AddressLookupInput = {
  street: string;
  city: string;
  state: string;
  zip: string;
  /** MotherShip 联想用；未传时默认 USA */
  country?: string;
};
