import { OperationType } from "../../types/Operation.type"; import { IRequestMetadata } from "../../types/RequestMetadata.type"; import { KeyValuePairType } from "../../types/KeyValuePair.type"; import { KeyValueType } from "../../types/KeyValue.type"; import { StateQueryType } from "../../types/state/StateQuery.type"; import { StateQueryResponseType } from "../../types/state/StateQueryResponse.type"; export default interface IClientState { save(storeName: string, stateObjects: KeyValuePairType[]): Promise; get(storeName: string, key: string): Promise; getBulk(storeName: string, keys: string[], parallelism?: number, metadata?: string): Promise; delete(storeName: string, key: string): Promise; transaction(storeName: string, operations?: OperationType[], metadata?: IRequestMetadata | null): Promise; query(storeName: string, query: StateQueryType): Promise; }