/** * @module Clients / Symbols * @category Entities */ import { AxiosResponse } from 'axios'; import { JwtConfig, LedgerIdentifier, LedgerPagedList, LedgerRecord, LedgerSymbol } from "../../../types/src"; import { AccessClient } from '../common/clients/access-client'; import { BaseChangeClient } from '../common/clients/base-change-client'; import { BaseClient, BaseClientOptions } from '../common/clients/base-client'; import { CreateRecordBuilder } from '../common/services/create-record-builder'; import { UpdateRecordBuilder } from '../common/services/update-record-builder'; import { BaseRecordResponse } from '../common/types/base-record-response'; import { BaseListResponse } from '../common/types/list-response'; import { SymbolListParams } from './symbol-list-params'; /** * Single symbol API response. */ export declare class SymbolResponse extends BaseRecordResponse { /** * Record data extracted from the `data` property of the response body. */ symbol: LedgerSymbol; constructor(response: AxiosResponse, LedgerRecord>); } /** * Symbols list API response. */ export declare class SymbolsResponse extends BaseListResponse { /** * A flattened list of records, extracted from the `data` property of * each record returned. */ symbols: LedgerSymbol[]; constructor(response: AxiosResponse, void>); } /** * Allows querying and managing symbols. * * @see {LedgerSymbol} */ export declare class SymbolClient extends BaseClient { /** * Allows querying changes. * */ change: BaseChangeClient; /** * Allows checking access. * */ access: AccessClient; constructor(options: BaseClientOptions); /** * Initializes a builder instance that supports chaining to make it * easier to work with ledger records. You can pass the record * payload to this method to use as initial content, this is useful * when you already have an object ready, for example when validating * API responses or modifying an existing record. An empty record is * going to be created if no initial data is provided. * * @see {LedgerSymbol} * @see {CreateRecordBuilder} * @param options.record initial record payload (optional) * @param options.handle specify handle to be updated, if any (optional) * @returns a builder instance */ init(record?: Partial>): CreateRecordBuilder; /** * Initializes a builder instance for updating existing records. * The builder supports chaining to make it easier to work with * ledger records. You can pass the existing record payload to * this method to use as initial content. * * @see {LedgerSymbol} * @see {UpdateRecordBuilder} * @param record initial record payload * @returns a builder instance */ from(record: LedgerRecord): UpdateRecordBuilder; /** * Gets a ledger symbol by identifier (luid or handle). * * @see {LedgerSymbol} * @throws {Error} if the symbol doesn't exist or the * current user doesn't have access to this symbol * @param id a unique symbol handle * @returns a single symbol response with the requested symbol */ read(id: LedgerIdentifier, authParams?: Partial): Promise; /** * Queries symbols from a ledger. * * @see {LedgerSymbol} * @param params query parameters * @returns symbols list response with all found symbols */ list(params?: SymbolListParams): Promise; }