/** * Factory for creating a read-only ledger client * @module core */ import { ReadOnlyLedger } from '../typings/ledgerClientTypes'; import { LedgerSettings } from './ledgerClientFactory'; /** * Creates a read-only ledger client * * This client contains only read operations (get*, query*, etc.) and has no crypto dependencies. * Use this for dashboards, explorers, monitoring tools, and any application that only needs to read data. * * Bundle size: Minimal (~5-10 KB + HTTP client) * * @param settings The ledger settings * @returns A read-only ledger client * * @example * ```typescript * import {createReadOnlyClient} from '@signumjs/core/createReadOnlyClient'; * * const ledger = createReadOnlyClient({ * nodeHost: 'https://europe.signum.network' * }); * * const account = await ledger.account.getAccount({accountId: '12345'}); * const block = await ledger.block.getBlockById({blockId: '1'}); * ``` */ export declare function createReadOnlyClient(settings: LedgerSettings): ReadOnlyLedger;