type TiffImage = { getTileHeight(): number; getTileWidth(): number; fileDirectory?: Record; }; export type TiffPixelSourceLike = { labels: string[]; _indexer(selection: Record): Promise; }; /** * Tile shape of one OME-TIFF pyramid level, from its own TIFF directory. * viv's tileSize is level 0's for every level, but pyramid writers often shrink * tiles at coarse levels (e.g. 1024, 928, 464). Stripped (untiled) images give * the image width and RowsPerStrip. * @param pixelSource viv TiffPixelSource of the level. * @returns [tileHeight, tileWidth] */ export declare function readTiffTileShape(pixelSource: TiffPixelSourceLike): Promise<[number, number]>; /** * Sample value range of an OME-TIFF, if its writer recorded one: the TIFF * SMinSampleValue / SMaxSampleValue tags, or the same keys in the OME-XML * original metadata (kept by Bio-Formats conversions). Neither is part of the * OME-XML model, and viv's parser drops annotations, so this reads the first IFD. * Tags hold one value per sample; this returns the overall range. * @param pixelSource viv TiffPixelSource of level 0. * @returns [min, max], or null if not recorded. */ export declare function readTiffSampleRange(pixelSource: TiffPixelSourceLike): Promise<[number, number] | null>; export {}; //# sourceMappingURL=tiff-metadata.d.ts.map