import { PDFRef } from './core/pdf-ref.ts'; import type { FontStyle } from './font/pdf-font.ts'; import { PDFFont } from './font/pdf-font.ts'; export declare class MockFont extends PDFFont { readonly key: string; readonly fontName: string; readonly familyName: string; readonly style: FontStyle; readonly weight: number; readonly ascent: number; readonly descent: number; readonly lineGap: number; register: import("vitest").Mock<() => PDFRef>; shapeText: import("vitest").Mock<() => never[]>; constructor(key: string); } /** * Creates minimal JPEG data with the specified dimensions and color * components for testing header parsing. * * Note: This does not include DHT (Huffman tables) or DQT (quantization * tables), so it cannot be decoded as an actual image. */ export declare function createTestJpeg(width: number, height: number, components?: 1 | 3 | 4): Uint8Array; /** * Creates a fake ICC profile with a recognizable byte pattern for testing. * This is not a valid ICC profile, but serves to verify that the raw bytes * are correctly extracted and passed through. */ export declare function createTestICCProfile(numComponents?: 1 | 3 | 4): Uint8Array; /** * Creates minimal JPEG data with an embedded ICC profile in APP2 markers. */ export declare function createTestJpegWithICC(width: number, height: number, components?: 1 | 3 | 4, iccProfile?: Uint8Array): Uint8Array; /** * Creates minimal PNG data with an embedded ICC profile in an iCCP chunk. */ export declare function createTestPngWithICC(width: number, height: number, colorType?: PngColorType, iccProfile?: Uint8Array): Uint8Array; /** PNG color type constants */ export declare const PNG_COLOR_GRAYSCALE = 0; export declare const PNG_COLOR_RGB = 2; export declare const PNG_COLOR_PALETTE = 3; export declare const PNG_COLOR_GRAYSCALE_ALPHA = 4; export declare const PNG_COLOR_RGBA = 6; export type PngColorType = 0 | 2 | 3 | 4 | 6; /** * Creates minimal PNG data with the specified dimensions and color type * for testing PNG parsing. * * The generated PNG contains valid pixel data (a simple gradient pattern) * that can be properly decompressed and processed. */ export declare function createTestPng(width: number, height: number, colorType?: PngColorType, bitDepth?: 8 | 16): Uint8Array;