import type { ActivationStatus, ActivationWebhook, ActiveActivation, CountryInfo, NumberStock, OrderedNumber, OrderedNumberV2, PriceQuote, PricesByCountry, RentHistory, RentPhone, RentPrice, RentStatus, ServiceInfo, SetStatusResult } from "./types.js"; export declare function listParam(value: ReadonlyArray | string | undefined): string | undefined; export declare function parseAccessNumber(raw: string): OrderedNumber; export declare function parseBalance(raw: string): number; export declare function parseStatus(raw: string): ActivationStatus; export declare function parseSetStatus(raw: string): SetStatusResult; export declare function parseNumberV2(data: unknown): OrderedNumberV2; /** * Flatten a `getPrices` table into rows. Non-numeric cost or count is skipped. * * @example * ```ts * const quotes = flattenPrices({ "16": { tg: { cost: 0.4, count: 20 } } }); * ``` */ export declare function flattenPrices(data: PricesByCountry): PriceQuote[]; export declare function parseServices(data: unknown): ServiceInfo[]; export declare function parseCountries(data: unknown): CountryInfo[]; export declare function parseActivations(data: unknown): ActiveActivation[]; export declare function parseNumbersStatus(data: unknown): NumberStock[]; export declare function parseRentPhone(data: unknown): RentPhone; export declare function parseRentStatus(data: unknown): RentStatus; export declare function parseRentHistory(data: unknown): RentHistory; export declare function parseRentPrices(data: unknown): RentPrice[]; /** * Parse a profile webhook body. `activationId` is required. * * @example * ```ts * const event = parseActivationWebhook(JSON.parse(rawBody)); * ``` */ export declare function parseActivationWebhook(data: unknown): ActivationWebhook; export declare function axiosProxy(proxy: string): { protocol: string; host: string; port: number; auth?: { username: string; password: string; }; }; //# sourceMappingURL=parse.d.ts.map