import { APIResource } from "../../../core/resource.js"; import { APIPromise } from "../../../core/api-promise.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class BaseLocations extends APIResource { static readonly _key: readonly ['radar', 'trafficAnomalies', 'locations']; /** * Retrieves the sum of Internet traffic anomalies, grouped by location. These * anomalies are signals that might indicate an outage, automatically detected by * Radar and manually verified by our team. * * @example * ```ts * const location = * await client.radar.trafficAnomalies.locations.get(); * ``` */ get(query?: LocationGetParams | null | undefined, options?: RequestOptions): APIPromise; } export declare class Locations extends BaseLocations { } export interface LocationGetResponse { trafficAnomalies: Array; } export declare namespace LocationGetResponse { interface TrafficAnomaly { clientCountryAlpha2: string; clientCountryName: string; /** * A numeric string. */ value: string; } } export interface LocationGetParams { /** * End of the date range (inclusive). */ dateEnd?: string; /** * Filters results by date range. */ dateRange?: string; /** * Start of the date range (inclusive). */ dateStart?: string; /** * Format in which results will be returned. */ format?: 'JSON' | 'CSV'; /** * Limits the number of objects returned in the response. */ limit?: number; status?: 'VERIFIED' | 'UNVERIFIED'; } export declare namespace Locations { export { type LocationGetResponse as LocationGetResponse, type LocationGetParams as LocationGetParams }; } //# sourceMappingURL=locations.d.ts.map