import { Search } from '../search'; import { PropertiesIndexSearchParams } from '../theme/metadata/properties'; /** * Formats a location for display in a search heading. * * This function returns an uppercase version of the location if it is a postcode (e.g., 'SW11'). * If the location is not a postcode, it returns the location in title case * (e.g., 'Battersea Park Rail Station, London'). * * @returns {string} - The formatted location string, either in uppercase if it's a postcode, * or in title case if not. Returns an empty string if location or search object is not provided. */ export default function formatLocationForSearchHeading({ search, searchParams, }: { search: Search; searchParams: PropertiesIndexSearchParams; }): string; //# sourceMappingURL=format-location-for-search-heading.d.ts.map