import _m0 from "protobufjs/minimal"; import { AccountID, ContractID, FileID, Key } from "./basic_types"; import { LiveHash } from "./crypto_add_live_hash"; import { QueryHeader } from "./query_header"; import { ResponseHeader } from "./response_header"; export declare const protobufPackage = "proto"; /** * Get all accounts, claims, files, and smart contract instances whose associated keys include the * given Key. The given Key must not be a contractID or a ThresholdKey. This is not yet implemented * in the API, but will be in the future. */ export interface GetByKeyQuery { /** * Standard info sent from client to node, including the signed payment, and what kind of * response is requested (cost, state proof, both, or neither). */ header: QueryHeader | undefined; /** The key to search for. It must not contain a contractID nor a ThresholdSignature. */ key: Key | undefined; } /** the ID for a single entity (account, livehash, file, or smart contract instance) */ export interface EntityID { entity?: { $case: "accountID"; accountID: AccountID; } | { $case: "liveHash"; liveHash: LiveHash; } | { $case: "fileID"; fileID: FileID; } | { $case: "contractID"; contractID: ContractID; } | undefined; } /** Response when the client sends the node GetByKeyQuery */ export interface GetByKeyResponse { /** * Standard response from node to client, including the requested fields: cost, or state proof, * or both, or neither */ header: ResponseHeader | undefined; /** The list of entities that include this public key in their associated Key list */ entities: EntityID[]; } export declare const GetByKeyQuery: { encode(message: GetByKeyQuery, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetByKeyQuery; fromJSON(object: any): GetByKeyQuery; toJSON(message: GetByKeyQuery): unknown; create(base?: DeepPartial): GetByKeyQuery; fromPartial(object: DeepPartial): GetByKeyQuery; }; export declare const EntityID: { encode(message: EntityID, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): EntityID; fromJSON(object: any): EntityID; toJSON(message: EntityID): unknown; create(base?: DeepPartial): EntityID; fromPartial(object: DeepPartial): EntityID; }; export declare const GetByKeyResponse: { encode(message: GetByKeyResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetByKeyResponse; fromJSON(object: any): GetByKeyResponse; toJSON(message: GetByKeyResponse): unknown; create(base?: DeepPartial): GetByKeyResponse; fromPartial(object: DeepPartial): GetByKeyResponse; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends { $case: string; } ? { [K in keyof Omit]?: DeepPartial; } & { $case: T["$case"]; } : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {}; //# sourceMappingURL=get_by_key.d.ts.map