/** A directory under the temp root that a test writes its fixtures into and removes when it is done. */ export type FixtureDir = { readonly path: string; /** Write `name` (a relative path, directories made as needed) and give its absolute path. */ file(name: string, content: string | Uint8Array): Promise; remove(): Promise; }; /** A new directory under the temp root (`TMPDIR` when set). */ export declare function fixtureDir(prefix?: string): Promise; type Rgb = readonly [number, number, number]; /** An 8-bit RGB PNG of `width` x `height`, filled with one colour or with `fill(x, y)`. */ export declare function pngBytes(width: number, height: number, fill?: Rgb | ((x: number, y: number) => Rgb)): Uint8Array; /** The pixels and MIME type of a PNG, JPEG, GIF, WebP, BMP or TIFF from its header (the package's own `imageHeader`, which * the fixtures suite checks against both image processors' decoders); null for anything else or a truncated header. */ export declare function imageSize(bytes: Uint8Array): { mimeType: string; width: number; height: number; } | null; export {};