import type { USPSClientConfig, TokenStatus } from './types.js'; import { AddressesAPI } from './addresses.js'; import { TrackingAPI } from './tracking.js'; import { LabelsAPI } from './labels.js'; import { PricesAPI } from './prices.js'; import { StandardsAPI } from './standards.js'; import { LocationsAPI } from './locations.js'; /** * USPS v3 REST API client for Node.js. * * @example * ```ts * import { USPSClient } from 'usps-v3'; * * const client = new USPSClient({ * clientId: process.env.USPS_CLIENT_ID, * clientSecret: process.env.USPS_CLIENT_SECRET, * }); * * const result = await client.addresses.validate({ * streetAddress: '1600 Pennsylvania Ave NW', * city: 'Washington', * state: 'DC', * ZIPCode: '20500', * }); * ``` */ export declare class USPSClient { private tokenManager; /** Address validation and city-state lookup */ readonly addresses: AddressesAPI; /** Package tracking */ readonly tracking: TrackingAPI; /** Shipping label creation and voiding */ readonly labels: LabelsAPI; /** Rate quotes (domestic and international) */ readonly prices: PricesAPI; /** Delivery time estimates */ readonly standards: StandardsAPI; /** Drop-off location finder */ readonly locations: LocationsAPI; constructor(config?: USPSClientConfig); /** Current token status (validity and time-to-live) */ get tokenStatus(): TokenStatus; /** Force refresh all cached tokens */ refreshTokens(): Promise; /** Clear cached tokens */ close(): void; } //# sourceMappingURL=client.d.ts.map