import type { Brand, Issuer } from '@agoric/ertp'; import type { ContractRecord, FeeConfig, PoolMetrics, TransactionRecord } from '@agoric/fast-usdc'; import type { OutcomeRecord, QuestionDetails } from '@agoric/governance/src/types.js'; import type { BookDataNotification } from '@agoric/inter-protocol/src/auction/auctionBook.js'; import type { AuctionParamRecord } from '@agoric/inter-protocol/src/auction/params.js'; import type { ScheduleNotification } from '@agoric/inter-protocol/src/auction/scheduler.js'; import type { MetricsNotification as VaultDirectorMetrics } from '@agoric/inter-protocol/src/vaultFactory/vaultDirector.js'; import type { CurrentWalletRecord, UpdateRecord } from '@agoric/smart-wallet/src/smartWallet.js'; import type { AssetInfo } from '@agoric/vats/src/vat-bank.js'; import type { StatusFor } from '@aglocal/portfolio-contract/src/type-guards.js'; import type { Instance } from '@agoric/zoe/src/zoeService/types.js'; type PublishedTypeMap = { 'auction.governance': { current: AuctionParamRecord; }; 'auction.schedule': ScheduleNotification; 'vaultFactory.metrics': VaultDirectorMetrics; 'agoricNames.instance': Array<[string, Instance]>; 'agoricNames.brand': Array<[string, Brand]>; 'agoricNames.issuer': Array<[string, Issuer]>; 'agoricNames.vbankAsset': Array<[string, AssetInfo]>; fastUsdc: ContractRecord; 'fastUsdc.feeConfig': FeeConfig; 'fastUsdc.poolMetrics': PoolMetrics; 'ymax0.portfolios': StatusFor['portfolios']; }; /** * Utility type to the type that would result from unmarshalling the latest * value at a vstorage `published` path. */ export type TypedPublished = T extends keyof PublishedTypeMap ? PublishedTypeMap[T] : T extends `wallet.${string}.current` ? CurrentWalletRecord : T extends `wallet.${string}` ? UpdateRecord : T extends `committees.${string}.latestQuestion` ? QuestionDetails : T extends `committees.${string}.latestOutcome` ? OutcomeRecord : T extends `vaultFactory.managers.manager${number}.metrics` ? VaultDirectorMetrics : T extends `fastUsdc.txns.${string}` ? TransactionRecord : T extends `auction.book${number}` ? BookDataNotification : unknown; export {}; //# sourceMappingURL=types.d.ts.map