import * as THREE from 'three'; import type { ResolvedSettings } from '../options.js'; export interface PaperTextureEvents { /** A custom grain image arrived; sheets made before it show none. */ onGrain(): void; onError(error: unknown): void; } /** Plain paper and the grain, kept across rebuilds and made again only when their options change. */ export declare class PaperTextures { private readonly events; /** Plain paper, for missing pages and the spread's unprinted sides. */ readonly blank: THREE.DataTexture; backBlank: { texture: THREE.DataTexture; color: string; }; private pattern; private disposed; constructor(backColor: THREE.ColorRepresentation, events: PaperTextureEvents); /** The blank backs of single-layout pages, in `paper.backColor`. */ back(color: THREE.ColorRepresentation): THREE.Texture; grain(settings: ResolvedSettings, renderer: THREE.WebGLRenderer): THREE.Texture; dispose(): void; } export declare function colorKey(color: THREE.ColorRepresentation): string;