import { Slot, UnixTimestamp } from '@solana/kit'; /** * A coherent ledger snapshot: block time and slot fetched at the same commitment. * * Every reserve/obligation estimate is evaluated at such an instant: interest and rewards accrue per second on a * `TrueApr` reserve (per slot on a `Legacy` one), so a bare slot is not enough to place "now" on the ledger. Obtain * one from `getCurrentLedgerInstant()` (utils/rpc.ts) at the same commitment as the loaded account state. */ export type LedgerInstant = { slot: Slot; blockTime: UnixTimestamp; }; /** * Resolves the {@link LedgerInstant} of an already-selected slot (e.g. the `context.slot` an account was fetched at) * by reading its block time from the RPC. */ export declare function resolveLedgerInstantForSlot(rpc: unknown, slot: Slot, caller: string): Promise; //# sourceMappingURL=ledger.d.ts.map