import _m0 from "protobufjs/minimal";
import { FileID, KeyList } from "./basic_types";
import { QueryHeader } from "./query_header";
import { ResponseHeader } from "./response_header";
import { Timestamp } from "./timestamp";
export declare const protobufPackage = "proto";
/**
* Get all of the information about a file, except for its contents. When a file expires, it no
* longer exists, and there will be no info about it, and the fileInfo field will be blank. If a
* transaction or smart contract deletes the file, but it has not yet expired, then the fileInfo
* field will be non-empty, the deleted field will be true, its size will be 0, and its contents
* will be empty.
*/
export interface FileGetInfoQuery {
/**
* 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 for which information is requested */
fileID: FileID | undefined;
}
/** Response when the client sends the node FileGetInfoQuery */
export interface FileGetInfoResponse {
/**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*/
header: ResponseHeader | undefined;
/** The information about the file */
fileInfo: FileGetInfoResponse_FileInfo | undefined;
}
export interface FileGetInfoResponse_FileInfo {
/** The file ID of the file for which information is requested */
fileID: FileID | undefined;
/** Number of bytes in contents */
size: number;
/** The current time at which this account is set to expire */
expirationTime: Timestamp | undefined;
/** True if deleted but not yet expired */
deleted: boolean;
/** One of these keys must sign in order to modify or delete the file */
keys: KeyList | undefined;
/** The memo associated with the file */
memo: string;
/** The ledger ID the response was returned from; please see HIP-198 for the network-specific IDs. */
ledgerId: Uint8Array;
}
export declare const FileGetInfoQuery: {
encode(message: FileGetInfoQuery, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): FileGetInfoQuery;
fromJSON(object: any): FileGetInfoQuery;
toJSON(message: FileGetInfoQuery): unknown;
create(base?: DeepPartial): FileGetInfoQuery;
fromPartial(object: DeepPartial): FileGetInfoQuery;
};
export declare const FileGetInfoResponse: {
encode(message: FileGetInfoResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): FileGetInfoResponse;
fromJSON(object: any): FileGetInfoResponse;
toJSON(message: FileGetInfoResponse): unknown;
create(base?: DeepPartial): FileGetInfoResponse;
fromPartial(object: DeepPartial): FileGetInfoResponse;
};
export declare const FileGetInfoResponse_FileInfo: {
encode(message: FileGetInfoResponse_FileInfo, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): FileGetInfoResponse_FileInfo;
fromJSON(object: any): FileGetInfoResponse_FileInfo;
toJSON(message: FileGetInfoResponse_FileInfo): unknown;
create(base?: DeepPartial): FileGetInfoResponse_FileInfo;
fromPartial(object: DeepPartial): FileGetInfoResponse_FileInfo;
};
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_info.d.ts.map