import _m0 from "protobufjs/minimal"; import { FileID } from "./basic_types"; import { QueryHeader } from "./query_header"; import { ResponseHeader } from "./response_header"; export declare const protobufPackage = "proto"; /** Get the contents of a file. The content field is empty (no bytes) if the file is empty. */ export interface FileGetContentsQuery { /** * 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 file ID of the file whose contents are requested */ fileID: FileID | undefined; } /** Response when the client sends the node FileGetContentsQuery */ export interface FileGetContentsResponse { /** * Standard response from node to client, including the requested fields: cost, or state proof, * or both, or neither */ header: ResponseHeader | undefined; /** the file ID and contents (a state proof can be generated for this) */ fileContents: FileGetContentsResponse_FileContents | undefined; } export interface FileGetContentsResponse_FileContents { /** The file ID of the file whose contents are being returned */ fileID: FileID | undefined; /** The bytes contained in the file */ contents: Uint8Array; } export declare const FileGetContentsQuery: { encode(message: FileGetContentsQuery, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FileGetContentsQuery; fromJSON(object: any): FileGetContentsQuery; toJSON(message: FileGetContentsQuery): unknown; create(base?: DeepPartial): FileGetContentsQuery; fromPartial(object: DeepPartial): FileGetContentsQuery; }; export declare const FileGetContentsResponse: { encode(message: FileGetContentsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FileGetContentsResponse; fromJSON(object: any): FileGetContentsResponse; toJSON(message: FileGetContentsResponse): unknown; create(base?: DeepPartial): FileGetContentsResponse; fromPartial(object: DeepPartial): FileGetContentsResponse; }; export declare const FileGetContentsResponse_FileContents: { encode(message: FileGetContentsResponse_FileContents, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FileGetContentsResponse_FileContents; fromJSON(object: any): FileGetContentsResponse_FileContents; toJSON(message: FileGetContentsResponse_FileContents): unknown; create(base?: DeepPartial): FileGetContentsResponse_FileContents; fromPartial(object: DeepPartial): FileGetContentsResponse_FileContents; }; 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=file_get_contents.d.ts.map