import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { Signature } from "./signature"; /** * * A piece signed by an account. * This can be used to verify the intent of the account holder to upload the piece. * * @generated from protobuf message pb.SignedPiece */ export interface SignedPiece { /** * A Piece message serialized in protobuf. * * @generated from protobuf field: bytes piece = 1; */ piece: Uint8Array; /** * A signature of the piece by the keypair of the uploader. * * @generated from protobuf field: pb.Signature signature = 2; */ signature?: Signature; } declare class SignedPiece$Type extends MessageType { constructor(); create(value?: PartialMessage): SignedPiece; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SignedPiece): SignedPiece; internalBinaryWrite(message: SignedPiece, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message pb.SignedPiece */ export declare const SignedPiece: SignedPiece$Type; export {}; //# sourceMappingURL=signed_piece.d.ts.map