UNPKG

fast-png

Version:

PNG image decoder and encoder written entirely in JavaScript

7 lines (6 loc) 425 B
import type { IOBuffer } from 'iobuffer'; export declare const textChunkName = "tEXt"; export declare function decodetEXt(text: Record<string, string>, buffer: IOBuffer, length: number): void; export declare function encodetEXt(buffer: IOBuffer, keyword: string, text: string): void; export declare function readKeyword(buffer: IOBuffer): string; export declare function readLatin1(buffer: IOBuffer, length: number): string;