import { Transaction } from './transaction.js'; /** * Sort transactions by the order in which they should be broadcast. */ export declare function sortTransactions(transactions: Array): Array; export declare class ExtMap extends Map { /** * Creates a new ExtMap from an array using a key selector */ static fromArray(array: readonly T[], keySelector: (item: T) => K): ExtMap; static fromObject(object: { [key: PropertyKey]: T; }): ExtMap; /** * Flattens an array of ExtMaps into a single ExtMap * Last collection's values take precedence for duplicate keys */ static flatten(collections: ExtMap[]): ExtMap; getOrFail(key: string): T; /** * Returns a new ExtMap with filtered entries */ filter(predicate: (value: T, key: PropertyKey) => boolean): ExtMap; /** * Returns a new ExtMap with mapped values */ map(mapper: (value: T, key: PropertyKey) => U): ExtMap; /** * Returns a new ExtMap with entries sorted by the given comparator * @param comparator - Function to determine the sort order * @returns A new ExtMap with sorted entries */ sort(comparator: (a: T, b: T) => number): ExtMap; /** * Converts the collection to a plain object */ toObject(): Record; /** * Converts the collection to an array of values */ toArray(): T[]; /** * Converts the collection to a Set * @param callback - Optional function to transform keys before adding to Set * @returns A Set containing either the keys or transformed values */ toSet(callback?: (key: PropertyKey, value: T) => U): Set; }