/** * Output - Binary output stream * * This module provides 100% API compatibility with MicroPDF's output operations. * Handles binary writing with various data types and endianness. */ /** * Output stream for writing binary data */ export declare class Output { private _buffer; private _position; private _refCount; private _path; private _closed; private _bits; private _bitCount; constructor(path?: string); /** * Create output to file path */ static createWithPath(path: string): Output; /** * Create output to memory buffer */ static createWithBuffer(): Output; keep(): this; drop(): void; /** * Close the output stream */ close(): void; /** * Flush buffered data */ flush(): void; /** * Reset output to beginning */ reset(): void; /** * Truncate output at current position */ truncate(): void; /** * Seek to position */ seek(offset: number, whence?: 'set' | 'cur' | 'end' | number): void; /** * Get current position */ tell(): number; /** * Write raw data */ writeData(data: Uint8Array): void; /** * Write a single byte */ writeByte(value: number): void; /** * Write a character */ writeChar(value: number | string): void; /** * Write a string */ writeString(str: string): void; /** * Write a Unicode rune (code point) */ writeRune(codePoint: number): void; /** * Write int16 big-endian */ writeInt16BE(value: number): void; /** * Write int16 little-endian */ writeInt16LE(value: number): void; /** * Write uint16 big-endian */ writeUInt16BE(value: number): void; /** * Write uint16 little-endian */ writeUInt16LE(value: number): void; /** * Write int32 big-endian */ writeInt32BE(value: number): void; /** * Write int32 little-endian */ writeInt32LE(value: number): void; /** * Write uint32 big-endian */ writeUInt32BE(value: number): void; /** * Write uint32 little-endian */ writeUInt32LE(value: number): void; /** * Write int64 big-endian */ writeInt64BE(value: bigint): void; /** * Write int64 little-endian */ writeInt64LE(value: bigint): void; /** * Write uint64 big-endian */ writeUInt64BE(value: bigint): void; /** * Write uint64 little-endian */ writeUInt64LE(value: bigint): void; /** * Write float32 big-endian */ writeFloatBE(value: number): void; /** * Write float32 little-endian */ writeFloatLE(value: number): void; /** * Write data as base64 */ writeBase64(data: Uint8Array): void; /** * Write data as base64 URI (URL-safe) */ writeBase64URI(data: Uint8Array): void; /** * Write bits */ writeBits(value: number, count: number): void; /** * Synchronize bit writing (flush partial byte) */ syncBits(): void; /** * Synchronize bit writing (alias for syncBits) */ writeBitsSync(): void; /** * Write from another buffer */ writeBuffer(buffer: Uint8Array | null): void; /** * Get output as buffer */ toBuffer(): Uint8Array; /** * Get output size */ get size(): number; /** * Check if closed */ get isClosed(): boolean; /** * Get path (if file output) */ get path(): string | null; } //# sourceMappingURL=output.d.ts.map