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 { Link } from "./link"; import { Tag } from "./tag"; /** * * A piece is a container of data and metadata. * It is the smallest indivisible unit stored in DDC object storage. * * @generated from protobuf message pb.Piece */ export interface Piece { /** * The opaque payload carried by the piece. * * @generated from protobuf field: bytes data = 1; */ data: Uint8Array; /** * The ID of a bucket that contains the piece. * * @generated from protobuf field: uint32 bucketId = 2; */ bucketId: number; /** * A list of tags with which the piece may be searched. * There can be multiple tags with the same key. * * @generated from protobuf field: repeated pb.Tag tags = 3; */ tags: Tag[]; /** * A list of links to other pieces. * If this piece is interpreted as a file, the linked pieces make up the file content. * * @generated from protobuf field: repeated pb.Link links = 4; */ links: Link[]; } declare class Piece$Type extends MessageType { constructor(); create(value?: PartialMessage): Piece; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Piece): Piece; internalBinaryWrite(message: Piece, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message pb.Piece */ export declare const Piece: Piece$Type; export {}; //# sourceMappingURL=piece.d.ts.map