declare type TLocationData = {
  latitude: number;
  longitude: number;
  address?: string;
  city?: string;
  country?: string;
  postalCode?: string;
};

declare type TLocationFormData = {
  country: string;
  postalCode: string;
  city: string;
  address: string;
};

declare type TLocationFieldState = {
  country: boolean;
  city: boolean;
  address: boolean;
};

declare type TNominatimResult = {
  lat: string;
  lon: string;
  display_name: string;
  address?: {
    city?: string;
    town?: string;
    village?: string;
    state?: string;
    country?: string;
    postcode?: string;
  };
};

declare type TLocationSearchParams = {
  postalCode: string;
  city?: string;
  address?: string;
  country?: string;
};
