import type { AgentConfig } from '../../../../agent/AgentConfig'; import type { Wallet } from 'fabric-network'; import type { LedgerRequest } from 'indy-sdk'; export declare class FabricPool { private poolConfig; private logger; private fileSystem; private chaincode?; constructor(agentConfig: AgentConfig); connect(): Promise; submitWriteRequest(request: LedgerRequest): Promise; submitReadRequest(request: LedgerReadRequest): Promise; setupWallet(ccp: Record, poolConfig: FabricPoolConfig): Promise; private getCcpPath; } export interface FabricPoolConfig { ccpPath?: string; ccp?: string; walletPath: string; channel: string; chaincode: string; identity: { id: string; secret?: string; }; } export interface LedgerReadRequest { type: '1' | '100' | '101' | '102' | '113' | '114'; id: string; from?: number; to?: number; timestamp?: number; } export declare type LedgerResponse = LedgerSuccessResponse | LedgerErrorResponse; export interface LedgerSuccessResponse { operation: 'READ' | 'WRITE'; type: '1' | '100' | '101' | '102' | '113' | '114'; identifier: string; data: any; } export interface LedgerErrorResponse { operation: 'READ' | 'WRITE'; type: '1' | '100' | '101' | '102' | '113' | '114'; identifier: string; reason: string; }