import { BlockDataType } from '../enumerations/blockDataType'; import { BlockSize } from '../enumerations/blockSize'; import { BlockType } from '../enumerations/blockType'; import type { ChecksumService } from '../services/checksum.service'; import { Checksum } from '../types/checksum'; import { BaseBlock } from './base'; /** * RawDataBlock represents a block containing raw, unencrypted data. * It provides basic data storage and validation capabilities. */ export declare class RawDataBlock extends BaseBlock { private readonly _data; private readonly _checksumService?; constructor(blockSize: BlockSize, data: Uint8Array, dateCreated?: Date, checksum?: Checksum, blockType?: BlockType, blockDataType?: BlockDataType, canRead?: boolean, canPersist?: boolean, checksumService?: ChecksumService); /** * The raw data in the block */ get data(): Uint8Array; /** * The data in the block, excluding any metadata or other overhead */ get layerPayload(): Uint8Array; get layerOverheadSize(): number; get layerPayloadSize(): number; get layerData(): Uint8Array; /** * The actual length of the data */ get lengthBeforeEncryption(): number; /** * Whether the block is encrypted */ get encrypted(): boolean; /** * Whether the block can be encrypted */ get canEncrypt(): boolean; /** * Whether the block can be decrypted */ get canDecrypt(): boolean; /** * Internal validation logic * @throws {ChecksumMismatchError} If validation fails due to checksum mismatch */ protected validateInternal(): void; /** * Synchronously validate the block's data * @throws {ChecksumMismatchError} If validation fails due to checksum mismatch */ validateSync(): void; /** * Asynchronously validate the block's data * @throws {ChecksumMismatchError} If validation fails due to checksum mismatch */ validateAsync(): Promise; /** * Alias for validateSync() to maintain compatibility * @throws {ChecksumMismatchError} If validation fails due to checksum mismatch */ validate(): void; /** * Get this layer's header data */ get layerHeaderData(): Uint8Array; } //# sourceMappingURL=rawData.d.ts.map