import type { CreditItem, CustomerType, FilterSection, MappedRegion, OfferBreakData, PackageCategory, PackageFilter, PackageGroup, PackageProduct, RoamingType } from '../types.js'; /** Raised when the upstream API answers, but with a failure envelope or status. */ export declare class TelkomselApiError extends Error { readonly status: number; readonly endpoint: string; readonly body?: string | undefined; constructor(message: string, status: number, endpoint: string, body?: string | undefined); } export declare function getCustomerType(msisdn: string): Promise; export declare function getPackageCategories(msisdn: string): Promise; export declare function getSubCategories(msisdn: string, menuLevel: string): Promise; export declare function listPackages(msisdn: string, menuLevel: string, filter?: PackageFilter, subcategory?: string): Promise; export declare function getFilterSections(): Promise; export declare function getRoamingTypes(): Promise; export declare function getMappedRegions(): Promise; export declare function getOfferBreak(): Promise; export declare function getOfferBreakForMenuLevel(msisdn: string, menuLevel: string): Promise; export declare function getCreditList(msisdn: string): Promise; export declare function getFaq(product: string, msisdn: string): Promise; /** Resolve the `menuLevel` token for a package category name. */ export declare function resolveCategoryMenuLevel(msisdn: string, category: string): Promise; /** Resolve the `menuLevel` token for an offer-break group name. */ export declare function resolveOfferMenuLevel(msisdn: string, offerName: string): Promise; export declare function clearMenuLevelCache(): void; /** Flatten grouped package responses into a single list, keeping group labels. */ export declare function flattenPackageGroups(groups: PackageGroup[]): Array; /** Strip the inline HTML the API embeds in `longdesc` and `terms`. */ export declare function stripHtml(input: string | null | undefined): string; /** Indonesian price formatting: 100000 -> "Rp100.000". */ export declare function formatRupiah(value: number): string;