//#region src/pyth/PriceServiceConnection.d.ts type HexString = string; type PriceServiceConnectionConfig = { timeout?: number; httpRetries?: number; /** * Bearer token for Hermes deployments that authenticate. The endpoint serving Pyth's * upgraded Core answers 401 without one. * * `accessToken` is chosen to converge with the in-flight `@mysten/suins` Pyth migration * (ts-sdks#1158), which takes the same credential under this name. That is not yet * published, so this is a convergence target rather than an existing convention. */ accessToken?: string; }; declare class PriceServiceConnection { private httpClient; /** * Constructs a new Connection. * * @param endpoint endpoint URL to the price service. * @param config Optional configuration for custom setups. */ constructor(endpoint: string, config?: PriceServiceConnectionConfig); /** * Fetch the latest price update data for the given price IDs. * * Uses Hermes v2 (`/v2/updates/price/latest`). The v1 endpoint (`/api/latest_vaas`) * is deprecated; it returned the same payload this reads out of `binary.data`. * * Hermes returns one accumulator message covering every requested feed, not one per * feed, so the result is normally a single element regardless of `priceIds.length`. * * @param priceIds Array of hex-encoded price IDs. * @returns Array of base64-encoded update messages. */ getLatestVaas(priceIds: HexString[]): Promise; } //#endregion export { HexString, PriceServiceConnection, PriceServiceConnectionConfig }; //# sourceMappingURL=PriceServiceConnection.d.mts.map