import { Client } from '../client'; import { UriHelper } from '../uri-helper'; import { ThBaseHandler } from '../base'; export interface SafesOptions { user?: string; base?: string; } export interface SafesQuery { limit?: number; uri?: string; location?: string; } export interface SafeResponse { data: Safe; metadata?: { count?: number; }; msg?: string; } export interface SafesResponse { data: Safe[]; metadata: Record; next?: () => Promise; } export interface AmountItem { currency: string; amount: number; } export interface Safe { type?: string; account_number?: string; name?: string; custom_id?: string; cost_center?: string; location?: string; state?: string; limit_upper?: number; limit_lower?: number; items?: AmountItem[] | null; metadata?: Record; deleted?: boolean; active?: boolean; } export interface BookRequestBody { to: string; from: string; issuer: string; items: Array>; initiated_at?: string; } export interface SafesLogBookOptions { user?: string; base?: string; } export interface SafesLogBookQuery { limit?: number; uri?: string; embed?: string | string[]; operation?: string | string[]; exclude_errors?: boolean; start?: string; end?: string; transaction_id?: string; transfer_party?: string; cursor_field?: string; format?: string; source_or_destination?: string; source?: string; destination?: string; transfer_type?: string | string[]; transfer_value_range_start?: number; transfer_value_range_end?: number; currency?: string; } export interface SafesLogBookResponse { data: Array>; metadata?: { count?: number; cursor?: number; }; next?: () => Promise; } export declare class Safes extends ThBaseHandler { static baseEndpoint: string; endpoint: string; http: Client; options: SafesOptions; uriHelper: UriHelper; constructor(options: SafesOptions, http: Client); getAll(query?: SafesQuery | undefined): Promise; get(safeId: string): Promise; meta(): Promise; create(safe: Safe): Promise; put(safeId: string, safe: Safe): Promise; book(body: BookRequestBody): Promise; } export declare class SafesLogBook extends ThBaseHandler { static baseEndpoint: string; endpoint: string; http: Client; options: SafesLogBookOptions; uriHelper: UriHelper; constructor(options: SafesLogBookOptions, http: Client); getAll(query?: SafesLogBookQuery | undefined): Promise; meta(query?: SafesLogBookQuery | undefined): Promise; }