/** * Price-provider resolver — the single dual-path entry every signed-price flow * runs its `priceProviders` through before constructing a {@link PriceOracleModule}. * * Two paths, selected per-provider: * - **Encrypted** (`pkpId` present): `apiKey`/`apiSecret` are PKP-bound ciphertext * (the `pricingEncrypted` blobs from GET /v1/init). They are decrypted in-TEE via * `Lit.Actions.Decrypt({ pkpId, ciphertext })` so the plaintext key never leaves * the node. This is the production path used by lit-ops-server. * - **Plaintext** (`pkpId` absent): `apiKey`/`apiSecret` are already plaintext * (server-injected from its own env). Passed through verbatim. * * Extracted from `price-oracle.ts` so the standalone oracle AND every validator * action (mint/payment/withdrawal/extend/liquidation/balance) share one * implementation — the validators previously skipped decryption and sent * ciphertext to the upstream price APIs (HTTP 401). */ export type InputPriceProvider = { name: string; pkpId?: string; apiKey?: string; apiSecret?: string; }; export type ResolvedPriceProvider = { name: string; apiKey?: string; apiSecret?: string; }; /** * Resolve a `priceProviders` list to plaintext-keyed entries ready for * {@link PriceOracleModule}. Each provider is decrypted in-TEE when it carries a * `pkpId`, otherwise its keys are treated as plaintext. Returns the input * unchanged when it is `undefined` so callers can forward optional params as-is. */ export declare function resolvePriceProviders(providers?: Array): Promise | undefined>; //# sourceMappingURL=price-provider-resolver.module.d.ts.map