import { ChaincodeStub as FChaincodeStub, ClientIdentity, Iterators, StateQueryResponse } from "fabric-shim"; import { FabricIterable } from "./FabricIterable"; export interface ChaincodeStubClassType extends FChaincodeStub { new (client: any, channel_id: any, txId: any, chaincodeInput: any, signedProposal: any): ChaincodeStubClassType; creator: unknown; createCompositeKey(objectType: string, attributes: string[]): string; } declare const ChaincodeStub: ChaincodeStubClassType; export declare class TestChaincodeStub extends ChaincodeStub { private static epoch; readonly state: Record; readonly writes: Record; constructor(args: string[], state: Record | undefined, writes: Record | undefined); getClientIdentity(caUser: string, mspId: string): ClientIdentity; mockState(key: string, value: string): void; putState: (key: string, value: Uint8Array) => Promise; deleteState: (key: string) => Promise; getState: (key: string) => Promise; getStateByPartialCompositeKey: (objectType: string, attributes: string[]) => FabricIterable; getStateByPartialCompositeKeyWithPagination(indexKey: string, keyParts: string[], pageSize: number, bookmark?: string): Promise> & AsyncIterable; getStateByRange(start: string, end: string): Promise & AsyncIterable; } export {};