import { AxiosResponse } from 'axios'; import { ChangeMeta, JwtConfig, LedgerPagedList, LedgerRecord } from "../../../../types/src"; import { BaseRecordResponse } from '../types/base-record-response'; import { BaseListParamsWithoutSearch } from '../types/list-params'; import { BaseListResponse } from '../types/list-response'; import { BaseClient, BaseClientOptions } from './base-client'; /** * Default record change response */ export declare class ChangeResponse extends BaseRecordResponse { /** * Record data extracted from the `data` property of the response body. */ change: TRecord; constructor(response: AxiosResponse, LedgerRecord>); } /** * Default record changes list response */ export declare class ChangesResponse extends BaseListResponse { changes: TRecord[]; records: LedgerRecord[]; constructor(response: AxiosResponse, void>); } /** * Base change client */ export declare class BaseChangeClient extends BaseClient { protected parentPath: string; constructor(options: BaseClientOptions, parentPath: string); protected buildBasePath(): string; /** * Gets a record change. * * @throws {Error} if the record change doesn't exist or the * current user doesn't have access to this record * @param id change id * @returns a single change response with the requested change */ read(id: number, authParams?: Partial): Promise>; /** * Queries changes of a record from. * * @param params query parameters * @returns changes list response with all found changes */ list(params?: BaseListParamsWithoutSearch): Promise>; }