import _m0 from "protobufjs/minimal"; import { ResponseType } from "./query_header"; import { ResponseCodeEnum } from "./response_code"; export declare const protobufPackage = "proto"; /** * Every query receives a response containing the QueryResponseHeader. Either or both of the cost * and stateProof fields may be blank, if the responseType didn't ask for the cost or stateProof. */ export interface ResponseHeader { /** Result of fee transaction precheck, saying it passed, or why it failed */ nodeTransactionPrecheckCode: ResponseCodeEnum; /** The requested response is repeated back here, for convenience */ responseType: ResponseType; /** * The fee that would be charged to get the requested information (if a cost was requested). * Note: This cost only includes the query fee and does not include the transfer fee(which is * required to execute the transfer transaction to debit the payer account and credit the node * account with query fee) */ cost: number; /** The state proof for this information (if a state proof was requested, and is available) */ stateProof: Uint8Array; } export declare const ResponseHeader: { encode(message: ResponseHeader, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseHeader; fromJSON(object: any): ResponseHeader; toJSON(message: ResponseHeader): unknown; create(base?: DeepPartial): ResponseHeader; fromPartial(object: DeepPartial): ResponseHeader; }; 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=response_header.d.ts.map