import type { NobjcObject } from "objc-js";
import type { _NSColor } from "./NSColor.js";
import type { _NSColorSpace } from "./NSColorSpace.js";
import type { _NSImageRep } from "./NSImageRep.js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSData } from "../Foundation/NSData.js";
import type { _NSDictionary } from "../Foundation/NSDictionary.js";
import type { _NSString } from "../Foundation/NSString.js";
import type { _CIImage } from "../CoreImage/CIImage.js";
import type { CGRect } from "../structs/CGRect.js";
import type { NSBitmapFormat } from "./NSBitmapFormat.js";
import type { NSBitmapImageFileType } from "./NSBitmapImageFileType.js";
import type { NSBitmapImageRepPropertyKey } from "./NSBitmapImageRepPropertyKey.js";
import type { NSColorRenderingIntent } from "./NSColorRenderingIntent.js";
import type { NSColorSpaceName } from "./NSColorSpaceName.js";
import type { NSTIFFCompression } from "./NSTIFFCompression.js";
export declare class _NSBitmapImageRep extends _NSImageRep {
    static alloc(): _NSBitmapImageRep;
    static new(): _NSBitmapImageRep;
    init(): _NSBitmapImageRep;
    static imageRepsWithData$(data: _NSData): _NSArray;
    /**
     * + (NSArray<NSImageRep *> *)imageRepsWithData:(NSData *)data; some file formats can contain multiple images
     */
    static imageRepWithData$(data: _NSData): _NSBitmapImageRep | null;
    static TIFFRepresentationOfImageRepsInArray$(array: _NSArray): _NSData | null;
    static TIFFRepresentationOfImageRepsInArray$usingCompression$factor$(array: _NSArray, comp: NSTIFFCompression, factor: number): _NSData | null;
    static getTIFFCompressionTypes$count$(list: NobjcObject | null, numTypes: NobjcObject): void;
    static localizedNameForTIFFCompressionType$(compression: NSTIFFCompression): _NSString | null;
    static representationOfImageRepsInArray$usingType$properties$(imageReps: _NSArray, storageType: NSBitmapImageFileType, properties: _NSDictionary): _NSData | null;
    /**
     * @deprecated Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view.
     */
    initWithFocusedViewRect$(rect: CGRect): _NSBitmapImageRep | null;
    initWithBitmapDataPlanes$pixelsWide$pixelsHigh$bitsPerSample$samplesPerPixel$hasAlpha$isPlanar$colorSpaceName$bytesPerRow$bitsPerPixel$(planes: NobjcObject | null, width: number, height: number, bps: number, spp: number, alpha: boolean, isPlanar: boolean, colorSpaceName: NSColorSpaceName, rBytes: number, pBits: number): _NSBitmapImageRep | null;
    initWithBitmapDataPlanes$pixelsWide$pixelsHigh$bitsPerSample$samplesPerPixel$hasAlpha$isPlanar$colorSpaceName$bitmapFormat$bytesPerRow$bitsPerPixel$(planes: NobjcObject | null, width: number, height: number, bps: number, spp: number, alpha: boolean, isPlanar: boolean, colorSpaceName: NSColorSpaceName, bitmapFormat: NSBitmapFormat, rBytes: number, pBits: number): _NSBitmapImageRep | null;
    initWithCGImage$(cgImage: Uint8Array): _NSBitmapImageRep;
    initWithCIImage$(ciImage: _CIImage): _NSBitmapImageRep;
    /**
     * + (nullable instancetype)imageRepWithData:(NSData *)data; Convenience of initWithData:
     */
    initWithData$(data: _NSData): _NSBitmapImageRep | null;
    getBitmapDataPlanes$(data: NobjcObject | null): void;
    getCompression$factor$(compression: NobjcObject | null, factor: NobjcObject | null): void;
    setCompression$factor$(compression: NSTIFFCompression, factor: number): void;
    TIFFRepresentationUsingCompression$factor$(comp: NSTIFFCompression, factor: number): _NSData | null;
    canBeCompressedUsing$(compression: NSTIFFCompression): boolean;
    /**
     * Support for colorization of grayscale images. Maps the image such that: Gray value of midPoint -> midPointColor, black -> shadowColor, white -> lightColor. Works on images with 8-bit SPP; thus either 8-bit gray or 24-bit color (with optional alpha).
     */
    colorizeByMappingGray$toColor$blackMapping$whiteMapping$(midPoint: number, midPointColor: _NSColor | null, shadowColor: _NSColor | null, lightColor: _NSColor | null): void;
    initForIncrementalLoad(): _NSBitmapImageRep;
    incrementalLoadFromData$complete$(data: _NSData, complete: boolean): number;
    setColor$atX$y$(color: _NSColor, x: number, y: number): void;
    colorAtX$y$(x: number, y: number): _NSColor | null;
    getPixel$atX$y$(p: NobjcObject, x: number, y: number): void;
    setPixel$atX$y$(p: NobjcObject, x: number, y: number): void;
    bitmapImageRepByConvertingToColorSpace$renderingIntent$(targetSpace: _NSColorSpace, renderingIntent: NSColorRenderingIntent): _NSBitmapImageRep | null;
    bitmapImageRepByRetaggingWithColorSpace$(newSpace: _NSColorSpace): _NSBitmapImageRep | null;
    representationUsingType$properties$(storageType: NSBitmapImageFileType, properties: _NSDictionary): _NSData | null;
    setProperty$withValue$(property: NSBitmapImageRepPropertyKey, value: NobjcObject | null): void;
    /** @deprecated NSBitmapImageFileTypeTIFF */
    valueForProperty$(property: NSBitmapImageRepPropertyKey): NobjcObject | null;
    bitmapData(): string;
    planar(): boolean;
    samplesPerPixel(): number;
    bitsPerPixel(): number;
    bytesPerRow(): number;
    bytesPerPlane(): number;
    numberOfPlanes(): number;
    bitmapFormat(): NSBitmapFormat;
    TIFFRepresentation(): _NSData | null;
    CGImage(): NobjcObject;
    colorSpace(): _NSColorSpace;
}
