import { LogObservable } from "./Observable/LogObservable.js"; /** The mime type (or media type) is only used internally, so using the "x." sub type is OK. */ export declare const CMMIPS_MIMETYPE = "image/x.cmmips"; /** * Extracts the specified MIP level image data from the CmMips container. * * By default the highest quality MIP level is loaded. The optional maxResolution setting will * instead load the highest quality MIP level where BOTH width and height is < maxResolution, or * the lowest quality if none fulfill the requirement. * * Returns a filled in CmMips class with meta data as well as the byte array with the image data. * Returns undefined if there was an error * * @warning: For efficacy and maximum flexibility, the returned Uint8Array is only a new View into * the supplied bytes typed array. It is up to the caller to call slice() on it to create a copy of * the data if needed. */ export declare function extractCmMips(bytes: Uint8Array, logger: LogObservable, maxRes?: number): CmMip | undefined; export declare class CmMip { readonly name: string; readonly suffix: string; readonly width: number; readonly height: number; readonly data?: Uint8Array | undefined; constructor(name: string, suffix: string, width: number, height: number, data?: Uint8Array | undefined); } //# sourceMappingURL=cmMips.d.ts.map