import type { ContinentCode, Iso3166Alpha2Code, Request } from "@cloudflare/workers-types"; import { Data } from "@edgefirst-dev/data"; import { ObjectParser } from "@edgefirst-dev/data/parser"; /** * Entity that represents the geographical information of the client's request. * This information is provided by Cloudflare Workers and is accessible through * the `request.cf` object. * * @example * import { geo } from "@edgefirst/core"; * geo().timezone; // "America/New_York" */ export declare class Geo extends Data { protected request: Request; constructor(request: Request); get country(): Iso3166Alpha2Code | "T1"; get region(): string; get city(): string; get postalCode(): string; get latitude(): string; get longitude(): string; get timezone(): string; get metroCode(): string; get continent(): ContinentCode; get isEurope(): boolean; toJSON(): { country: Iso3166Alpha2Code | "T1"; region: string; city: string; postalCode: string; latitude: string; longitude: string; timezone: string; metroCode: string; continent: ContinentCode; isEurope: boolean; }; toString(): string; }