/**
 * Time utilities for Cardano blockchain time operations.
 * Provides type-safe conversions between slots and Unix time.
 *
 * @module Time
 * @since 2.0.0
 */
import type * as Network from "./Network.js";
import type { Slot } from "./Slot.js";
import type { SlotConfig } from "./SlotConfig.js";
import type { UnixTime } from "./UnixTime.js";
/**
 * Convert a slot number to Unix time (in milliseconds).
 *
 * @param slot - The slot number to convert
 * @param slotConfig - The network's slot configuration
 * @returns Unix timestamp in milliseconds
 *
 * @category Conversion
 * @since 2.0.0
 *
 * @example
 * ```typescript
 * import * as Time from "@evolution-sdk/evolution/Time"
 *
 * const slot = 12345678n
 * const config = { zeroTime: 1596059091000n, zeroSlot: 4492800n, slotLength: 1000 }
 * const unixTime = Time.slotToUnixTime(slot, config)
 * ```
 */
export declare const slotToUnixTime: (slot: Slot, slotConfig: SlotConfig) => UnixTime;
/**
 * Convert Unix time (in milliseconds) to the enclosing slot number.
 * Uses floor division to find the slot that contains the given time.
 *
 * @param unixTime - Unix timestamp in milliseconds
 * @param slotConfig - The network's slot configuration
 * @returns The slot number that contains this Unix time
 *
 * @category Conversion
 * @since 2.0.0
 *
 * @example
 * ```typescript
 * import * as Time from "@evolution-sdk/evolution/Time"
 *
 * const unixTime = 1596059091000n
 * const config = { zeroTime: 1596059091000n, zeroSlot: 4492800n, slotLength: 1000 }
 * const slot = Time.unixTimeToSlot(unixTime, config)
 * ```
 */
export declare const unixTimeToSlot: (unixTime: UnixTime, slotConfig: SlotConfig) => Slot;
/**
 * Get the current slot number for a network.
 *
 * @param network - The network to get current slot for
 * @returns Current slot number
 *
 * @category Utility
 * @since 2.0.0
 *
 * @example
 * ```typescript
 * import * as Time from "@evolution-sdk/evolution/Time"
 *
 * const currentSlot = Time.getCurrentSlot("Mainnet")
 * console.log(currentSlot) // Current mainnet slot
 * ```
 */
export declare const getCurrentSlot: (network: Network.Network) => Slot;
/**
 * Check if a slot is in the future relative to current time.
 *
 * @param slot - The slot to check
 * @param slotConfig - The network's slot configuration
 * @returns True if the slot is in the future
 *
 * @category Utility
 * @since 2.0.0
 */
export declare const isSlotInFuture: (slot: Slot, slotConfig: SlotConfig) => boolean;
/**
 * Check if a slot is in the past relative to current time.
 *
 * @param slot - The slot to check
 * @param slotConfig - The network's slot configuration
 * @returns True if the slot is in the past
 *
 * @category Utility
 * @since 2.0.0
 */
export declare const isSlotInPast: (slot: Slot, slotConfig: SlotConfig) => boolean;
/**
 * Get the slot at a specific offset from now (in milliseconds).
 *
 * @param offsetMs - Offset in milliseconds (positive for future, negative for past)
 * @param network - The network
 * @returns Slot number at the offset time
 *
 * @category Utility
 * @since 2.0.0
 *
 * @example
 * ```typescript
 * import * as Time from "@evolution-sdk/evolution/Time"
 *
 * // Get slot 5 minutes from now
 * const futureSlot = Time.getSlotAt(5 * 60 * 1000, "Mainnet")
 *
 * // Get slot 10 minutes ago
 * const pastSlot = Time.getSlotAt(-10 * 60 * 1000, "Mainnet")
 * ```
 */
export declare const getSlotAt: (offsetMs: number, network: Network.Network) => Slot;
//# sourceMappingURL=Time.d.ts.map