import { Reader, Writer } from 'protobufjs/minimal'; /** * QueryByCidRequest is the Query/ByCid request type. */ export interface QueryByCidRequest { /** * cid is a Content Identifier for the data corresponding to the IPFS CID * specification: https://github.com/multiformats/cid. */ cid: Uint8Array; } /** * QueryByCidRequest is the Query/ByCid response type. */ export interface QueryByCidResponse { /** * timestamp is the timestamp of the block at which the data was anchored. */ timestamp?: Date; /** * signers are the addresses of the accounts which have signed the data. */ signers: string[]; /** * content is the content of the data, if it was stored on-chain. */ content: Uint8Array; } /** * Query is the regen.data.v1alpha1 Query service */ export interface Query { /** * ByCid queries data based on its CID. */ ByCid(request: QueryByCidRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); ByCid(request: QueryByCidRequest): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } export declare const protobufPackage = "regen.data.v1alpha1"; export declare const QueryByCidRequest: { encode(message: QueryByCidRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryByCidRequest; fromJSON(object: any): QueryByCidRequest; fromPartial(object: DeepPartial): QueryByCidRequest; toJSON(message: QueryByCidRequest): unknown; }; export declare const QueryByCidResponse: { encode(message: QueryByCidResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryByCidResponse; fromJSON(object: any): QueryByCidResponse; fromPartial(object: DeepPartial): QueryByCidResponse; toJSON(message: QueryByCidResponse): unknown; }; declare type Builtin = Date | Function | Uint8Array | string | number | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};