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";
/**
*
* A link is a pointer from one piece to another.
*
* @generated from protobuf message pb.Link
*/
export interface Link {
/**
* The CID of the linked piece.
*
* @generated from protobuf field: string cid = 1;
*/
cid: string;
/**
* The size of the payload of the linked piece.
*
* @generated from protobuf field: uint64 size = 2;
*/
size: bigint;
/**
* The name of the linked piece, in the context of the linking piece.
*
* @generated from protobuf field: string name = 3;
*/
name: string;
}
declare class Link$Type extends MessageType {
constructor();
create(value?: PartialMessage): Link;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Link): Link;
internalBinaryWrite(message: Link, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message pb.Link
*/
export declare const Link: Link$Type;
export {};
//# sourceMappingURL=link.d.ts.map