import { BlobMetadata } from "../utils/bcs.mjs"; //#region src/storage-node/types.d.ts type SliverType = 'primary' | 'secondary'; type SliverData = typeof SliverData.$inferType; type Uploadable = Uint8Array | ArrayBuffer | ReadableStream | Blob; type StorageConfirmation = { serializedMessage: string; signature: string; }; type BlobStatus = { type: 'nonexistent'; } | ({ type: 'invalid'; } & InvalidBlobStatus['invalid']) | ({ type: 'permanent'; } & PermanentBlobStatus['permanent']) | ({ type: 'deletable'; } & DeletableBlobStatus['deletable']); type InvalidBlobStatus = { invalid: { event: StatusEvent; }; }; type PermanentBlobStatus = { permanent: { deletableCounts: DeletableCounts; endEpoch: number; isCertified: boolean; statusEvent: StatusEvent; initialCertifiedEpoch: number | null; }; }; type DeletableBlobStatus = { deletable: { deletableCounts: DeletableCounts; initialCertifiedEpoch: number | null; }; }; type DeletableCounts = { count_deletable_total: number; count_deletable_certified: number; }; type StatusEvent = { eventSeq: string; txDigest: string; }; type StoreBlobMetadataRequestInput = { blobId: string; metadata: Uploadable | typeof BlobMetadata.$inferInput; }; type StoreBlobMetadataResponse = { success: { code: number; data: string; }; }; type GetSliverResponse = Uint8Array; type StoreSliverRequestInput = { blobId: string; sliver: Uploadable | typeof SliverData.$inferInput; sliverType: SliverType; sliverPairIndex: number; }; type StoreSliverResponse = { success: { code: number; data: string; }; }; type StoredOnNodeStatus = 'Nonexistent' | 'Buffered' | 'Stored'; //#endregion export { BlobStatus, GetSliverResponse, StorageConfirmation, StoreBlobMetadataRequestInput, StoreBlobMetadataResponse, StoreSliverRequestInput, StoreSliverResponse, StoredOnNodeStatus, Uploadable }; //# sourceMappingURL=types.d.mts.map