/** @import {PureData} from '@endo/marshal' */ /** @typedef {[normalizedCollateralization: number, vaultId: VaultId]} CompositeKey */ /** * @param {PureData} key * @returns {string} */ export const encodeData: (p: Passable) => string; /** * @param {string} encoded * @returns {PureData} */ export const decodeData: (encoded: string, skip?: number) => Passable; export function toVaultKey(normalizedDebt: NormalizedDebt, collateral: Amount<"nat">, vaultId: VaultId): string; export function fromVaultKey(key: string): [normalizedCollateralization: number, vaultId: VaultId]; export function normalizedCollRatio(quote: PriceQuote, compoundedInterest: Ratio, margin: Ratio): number; export function normalizedCollRatioKey(quote: PriceQuote, compoundedInterest: Ratio, margin: Ratio): string; export type CompositeKey = [normalizedCollateralization: number, vaultId: VaultId]; export type NormalizedDebt = Amount<"nat"> & { normalized: true; }; export type ActualDebt = Amount<"nat"> & { normalized: false; }; import type { PriceQuote } from '@agoric/zoe/tools/types.js'; //# sourceMappingURL=storeUtils.d.ts.map