import _m0 from "protobufjs/minimal"; import { Transaction } from "./transaction"; export declare const protobufPackage = "proto"; /** * The client uses the ResponseType to indicate that it desires the node send just the answer, or * both the answer and a state proof. It can also ask for just the cost and not the answer itself * (allowing it to tailor the payment transaction accordingly). If the payment in the query fails * the precheck, then the response may have some fields blank. The state proof is only available for * some types of information. It is available for a Record, but not a receipt. It is available for * the information in each kind of *GetInfo request. */ export declare enum ResponseType { /** ANSWER_ONLY - Response returns answer */ ANSWER_ONLY = 0, /** ANSWER_STATE_PROOF - (NOT YET SUPPORTED) Response returns both answer and state proof */ ANSWER_STATE_PROOF = 1, /** COST_ANSWER - Response returns the cost of answer */ COST_ANSWER = 2, /** COST_ANSWER_STATE_PROOF - (NOT YET SUPPORTED) Response returns the total cost of answer and state proof */ COST_ANSWER_STATE_PROOF = 3, UNRECOGNIZED = -1 } export declare function responseTypeFromJSON(object: any): ResponseType; export declare function responseTypeToJSON(object: ResponseType): string; /** * Each query from the client to the node will contain the QueryHeader, which gives the requested * response type, and includes a payment transaction that will compensate the node for responding to * the query. The payment can be blank if the query is free. */ export interface QueryHeader { /** A signed CryptoTransferTransaction to pay the node a fee for handling this query */ payment: Transaction | undefined; /** The requested response, asking for cost, state proof, both, or neither */ responseType: ResponseType; } export declare const QueryHeader: { encode(message: QueryHeader, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryHeader; fromJSON(object: any): QueryHeader; toJSON(message: QueryHeader): unknown; create(base?: DeepPartial): QueryHeader; fromPartial(object: DeepPartial): QueryHeader; }; 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=query_header.d.ts.map