declare namespace AuGDKPixBuf { class Colorspace { // Enumerations hack... toString(radix ? : number | undefined) : string; toFixed(fractionDigits ? : number | undefined) : string; toExponential(fractionDigits ? : number | undefined) : string; toPrecision(precision ? : number | undefined) : string; valueOf() : number; toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string; static [s:number]: string; static readonly "kRgb": Colorspace } class InterpType { // Enumerations hack... toString(radix ? : number | undefined) : string; toFixed(fractionDigits ? : number | undefined) : string; toExponential(fractionDigits ? : number | undefined) : string; toPrecision(precision ? : number | undefined) : string; valueOf() : number; toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string; static [s:number]: string; static readonly "kNearest": InterpType static readonly "kTiles": InterpType static readonly "kBilinear": InterpType static readonly "kHyper": InterpType } class PixbufAlphaMode { // Enumerations hack... toString(radix ? : number | undefined) : string; toFixed(fractionDigits ? : number | undefined) : string; toExponential(fractionDigits ? : number | undefined) : string; toPrecision(precision ? : number | undefined) : string; valueOf() : number; toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string; static [s:number]: string; static readonly "kBilevel": PixbufAlphaMode static readonly "kFull": PixbufAlphaMode } class PixbufError { // Enumerations hack... toString(radix ? : number | undefined) : string; toFixed(fractionDigits ? : number | undefined) : string; toExponential(fractionDigits ? : number | undefined) : string; toPrecision(precision ? : number | undefined) : string; valueOf() : number; toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string; static [s:number]: string; static readonly "kCorruptImage": PixbufError static readonly "kInsufficientMemory": PixbufError static readonly "kBadOption": PixbufError static readonly "kUnknownType": PixbufError static readonly "kUnsupportedOperation": PixbufError static readonly "kFailed": PixbufError static readonly "kIncompleteAnimation": PixbufError } class PixbufFormatFlags { // Enumerations hack... toString(radix ? : number | undefined) : string; toFixed(fractionDigits ? : number | undefined) : string; toExponential(fractionDigits ? : number | undefined) : string; toPrecision(precision ? : number | undefined) : string; valueOf() : number; toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string; static [s:number]: string; static readonly "kWritable": PixbufFormatFlags static readonly "kScalable": PixbufFormatFlags static readonly "kThreadsafe": PixbufFormatFlags } class PixbufRotation { // Enumerations hack... toString(radix ? : number | undefined) : string; toFixed(fractionDigits ? : number | undefined) : string; toExponential(fractionDigits ? : number | undefined) : string; toPrecision(precision ? : number | undefined) : string; valueOf() : number; toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string; static [s:number]: string; static readonly "kNone": PixbufRotation static readonly "kCounterclockwise": PixbufRotation static readonly "kUpsidedown": PixbufRotation static readonly "kClockwise": PixbufRotation } class PixbufAnimationClass { parentClass : GObject.ObjectClass; isStaticImage : (animation: AuGDKPixBuf.PixbufAnimation) => boolean; getStaticImage : (animation: AuGDKPixBuf.PixbufAnimation) => AuGDKPixBuf.Pixbuf; getSize : (animation: AuGDKPixBuf.PixbufAnimation, width: number, height: number) => void; getIter : (animation: AuGDKPixBuf.PixbufAnimation, startTime: AuGlibEx.TimeVal | undefined | null) => AuGDKPixBuf.PixbufAnimationIter; } class PixbufAnimationIterClass { parentClass : GObject.ObjectClass; getDelayTime : (iter: AuGDKPixBuf.PixbufAnimationIter) => number; getPixbuf : (iter: AuGDKPixBuf.PixbufAnimationIter) => AuGDKPixBuf.Pixbuf; onCurrentlyLoadingFrame : (iter: AuGDKPixBuf.PixbufAnimationIter) => boolean; advance : (iter: AuGDKPixBuf.PixbufAnimationIter, currentTime: AuGlibEx.TimeVal | undefined | null) => boolean; } class PixbufFormat { name : string; signature : AuGDKPixBuf.PixbufModulePattern; domain : string; description : string; mimeTypes : string[]; extensions : string[]; flags : number; disabled : boolean; license : string; copy(): AuGDKPixBuf.PixbufFormat; free(): void; getDescription(): string; getExtensions(): string[]; getLicense(): string; getMimeTypes(): string[]; getName(): string; isDisabled(): boolean; isSaveOptionSupported(optionKey: string): boolean; isScalable(): boolean; isWritable(): boolean; setDisabled(disabled: boolean): void; } class PixbufLoaderClass { parentClass : GObject.ObjectClass; sizePrepared : (loader: AuGDKPixBuf.PixbufLoader, width: number, height: number) => void; areaPrepared : (loader: AuGDKPixBuf.PixbufLoader) => void; areaUpdated : (loader: AuGDKPixBuf.PixbufLoader, x: number, y: number, width: number, height: number) => void; closed : (loader: AuGDKPixBuf.PixbufLoader) => void; } class PixbufModule { moduleName : string; modulePath : string; info : AuGDKPixBuf.PixbufFormat; load : () => AuGDKPixBuf.Pixbuf; loadXPmData : (data: string[]) => AuGDKPixBuf.Pixbuf; beginLoad : void; stopLoad : () => boolean; loadIncrement : (buf: number[], size: number) => boolean; loadAnimation : () => AuGDKPixBuf.PixbufAnimation; save : (pixbuf: AuGDKPixBuf.Pixbuf, paramKeys: string[] | undefined | null, paramValues: string[] | undefined | null) => boolean; saveToCallback : void; isSaveOptionSupported : (optionKey: string) => boolean; reserved1 : void; reserved2 : void; reserved3 : void; reserved4 : void; } class PixbufModulePattern { prefix : string; mask : string; relevance : number; } class PixbufSimpleAnimClass { } class Pixbuf extends GObject.Object implements AuGIO.Icon, AuGIO.LoadableIcon { constructor(initializerList ?: PixbufCtor); bitsPerSample : number; colorspace : AuGDKPixBuf.Colorspace; hasAlpha : boolean; height : number; nChannels : number; pixelBytes : AuGlibEx.Bytes; pixels : void; rowstride : number; width : number; static New(colorspace: AuGDKPixBuf.Colorspace, hasAlpha: boolean, bitsPerSample: number, width: number, height: number): AuGDKPixBuf.Pixbuf; static NewFromBytes(data: AuGlibEx.Bytes, colorspace: AuGDKPixBuf.Colorspace, hasAlpha: boolean, bitsPerSample: number, width: number, height: number, rowstride: number): AuGDKPixBuf.Pixbuf; static NewFromData(data: number[], colorspace: AuGDKPixBuf.Colorspace, hasAlpha: boolean, bitsPerSample: number, width: number, height: number, rowstride: number, destroyFn: (pixels: number[]) => void | undefined | null): AuGDKPixBuf.Pixbuf; static NewFromFile(filename: string): AuGDKPixBuf.Pixbuf; static NewFromFileAtScale(filename: string, width: number, height: number, preserveAspectRatio: boolean): AuGDKPixBuf.Pixbuf; static NewFromFileAtScaleUtf8(filename: string, width: number, height: number, preserveAspectRatio: boolean): AuGDKPixBuf.Pixbuf; static NewFromFileAtSize(filename: string, width: number, height: number): AuGDKPixBuf.Pixbuf; static NewFromFileAtSizeUtf8(filename: string, width: number, height: number): AuGDKPixBuf.Pixbuf; static NewFromFileUtf8(filename: string): AuGDKPixBuf.Pixbuf; static NewFromInline(dataLength: number, data: number[], copyPixels: boolean): AuGDKPixBuf.Pixbuf; static NewFromResource(resourcePath: string): AuGDKPixBuf.Pixbuf; static NewFromResourceAtScale(resourcePath: string, width: number, height: number, preserveAspectRatio: boolean): AuGDKPixBuf.Pixbuf; static NewFromStream(stream: AuGIO.InputStream, cancellable: AuGIO.Cancellable | undefined | null): AuGDKPixBuf.Pixbuf; static NewFromStreamAtScale(stream: AuGIO.InputStream, width: number, height: number, preserveAspectRatio: boolean, cancellable: AuGIO.Cancellable | undefined | null): AuGDKPixBuf.Pixbuf; static NewFromStreamFinish(asyncResult: AuGIO.AsyncResult): AuGDKPixBuf.Pixbuf; static NewFromXPmData(data: string[]): AuGDKPixBuf.Pixbuf; static CalculateRowstride(colorspace: AuGDKPixBuf.Colorspace, hasAlpha: boolean, bitsPerSample: number, width: number, height: number): number; static GetFileInfo(filename: string, width ?: number, height ?: number): AuGDKPixBuf.PixbufFormat; static GetFileInfoAsync(filename: string, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void; static GetFileInfoFinish(asyncResult: AuGIO.AsyncResult, width: number, height: number): AuGDKPixBuf.PixbufFormat; static GetFormats(): AuGDKPixBuf.PixbufFormat[]; static InitModules(path: string): boolean; static NewFromStreamAsync(stream: AuGIO.InputStream, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void; static NewFromStreamAtScaleAsync(stream: AuGIO.InputStream, width: number, height: number, preserveAspectRatio: boolean, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void; static SaveToStreamFinish(asyncResult: AuGIO.AsyncResult): boolean; addAlpha(substituteColor: boolean, r: number, g: number, b: number): AuGDKPixBuf.Pixbuf; applyEmbeddedOrientation(): AuGDKPixBuf.Pixbuf; composite(dest: AuGDKPixBuf.Pixbuf, destX: number, destY: number, destWidth: number, destHeight: number, offsetX: number, offsetY: number, scaleX: number, scaleY: number, interpType: AuGDKPixBuf.InterpType, overallAlpha: number): void; compositeColor(dest: AuGDKPixBuf.Pixbuf, destX: number, destY: number, destWidth: number, destHeight: number, offsetX: number, offsetY: number, scaleX: number, scaleY: number, interpType: AuGDKPixBuf.InterpType, overallAlpha: number, checkX: number, checkY: number, checkSize: number, color1: number, color2: number): void; compositeColorSimple(destWidth: number, destHeight: number, interpType: AuGDKPixBuf.InterpType, overallAlpha: number, checkSize: number, color1: number, color2: number): AuGDKPixBuf.Pixbuf; copy(): AuGDKPixBuf.Pixbuf; copyArea(srcX: number, srcY: number, width: number, height: number, destPixbuf: AuGDKPixBuf.Pixbuf, destX: number, destY: number): void; copyOptions(destPixbuf: AuGDKPixBuf.Pixbuf): boolean; fill(pixel: number): void; flip(horizontal: boolean): AuGDKPixBuf.Pixbuf; getBitsPerSample(): number; getByteLength(): number | bigint; getColorspace(): AuGDKPixBuf.Colorspace; getHasAlpha(): boolean; getHeight(): number; getNChannels(): number; getOption(key: string): string; getOptions(): number; getPixels(length: number): number[]; getRowstride(): number; getWidth(): number; newSubpixbuf(srcX: number, srcY: number, width: number, height: number): AuGDKPixBuf.Pixbuf; readPixelBytes(): AuGlibEx.Bytes; readPixels(): number; removeOption(key: string): boolean; rotateSimple(angle: AuGDKPixBuf.PixbufRotation): AuGDKPixBuf.Pixbuf; saturateAndPixelate(dest: AuGDKPixBuf.Pixbuf, saturation: number, pixelate: boolean): void; saveToBufferv(buffer: number[], bufferSize: number | bigint, type: string, optionKeys: string[] | undefined | null, optionValues: string[] | undefined | null): boolean; saveToCallbackv(saveFunc: (buf: number[], count: number | bigint, error: AuGlibEx.Error) => boolean, type: string, optionKeys: string[] | undefined | null, optionValues: string[] | undefined | null): boolean; saveToStreamv(stream: AuGIO.OutputStream, type: string, optionKeys: string[] | undefined | null, optionValues: string[] | undefined | null, cancellable: AuGIO.Cancellable | undefined | null): boolean; saveToStreamvAsync(stream: AuGIO.OutputStream, type: string, optionKeys: string[] | undefined | null, optionValues: string[] | undefined | null, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void; savev(filename: string, type: string, optionKeys: string[] | undefined | null, optionValues: string[] | undefined | null): boolean; savevUtf8(filename: string, type: string, optionKeys: string[] | undefined | null, optionValues: string[] | undefined | null): boolean; scale(dest: AuGDKPixBuf.Pixbuf, destX: number, destY: number, destWidth: number, destHeight: number, offsetX: number, offsetY: number, scaleX: number, scaleY: number, interpType: AuGDKPixBuf.InterpType): void; scaleSimple(destWidth: number, destHeight: number, interpType: AuGDKPixBuf.InterpType): AuGDKPixBuf.Pixbuf; setOption(key: string, value: string): boolean; //TypeScript is complete garbage: static Deserialize(value: AuGlibEx.Variant): AuGIO.Icon; static Hash(): number; static NewForString(str: string): AuGIO.Icon; equal(icon2: AuGIO.Icon | undefined | null): boolean; serialize(): AuGlibEx.Variant; load(size: number, type ?: string, cancellable ?: AuGIO.Cancellable | undefined | null): AuGIO.InputStream; loadAsync(size: number, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void; loadFinish(res: AuGIO.AsyncResult, type ?: string): AuGIO.InputStream; } class PixbufCtor { colorspace ?: AuGDKPixBuf.Colorspace; nChannels ?: number; hasAlpha ?: boolean; bitsPerSample ?: number; width ?: number; height ?: number; rowstride ?: number; pixels ?: number | bigint; pixelBytes ?: AuGlibEx.Bytes; } class PixbufAnimation extends GObject.Object { constructor(initializerList ?: PixbufAnimationCtor); parentInstance : GObject.Object; static NewFromFile(filename: string): AuGDKPixBuf.PixbufAnimation; static NewFromFileUtf8(filename: string): AuGDKPixBuf.PixbufAnimation; static NewFromResource(resourcePath: string): AuGDKPixBuf.PixbufAnimation; static NewFromStream(stream: AuGIO.InputStream, cancellable: AuGIO.Cancellable | undefined | null): AuGDKPixBuf.PixbufAnimation; static NewFromStreamFinish(asyncResult: AuGIO.AsyncResult): AuGDKPixBuf.PixbufAnimation; static NewFromStreamAsync(stream: AuGIO.InputStream, cancellable: AuGIO.Cancellable | undefined | null, callback: (sourceObject: GObject.Object | undefined | null, res: AuGIO.AsyncResult) => void | undefined | null): void; getHeight(): number; getIter(startTime: AuGlibEx.TimeVal | undefined | null): AuGDKPixBuf.PixbufAnimationIter; getStaticImage(): AuGDKPixBuf.Pixbuf; getWidth(): number; isStaticImage(): boolean; //TypeScript is complete garbage: } class PixbufAnimationCtor { } class PixbufAnimationIter extends GObject.Object { constructor(initializerList ?: PixbufAnimationIterCtor); parentInstance : GObject.Object; advance(currentTime: AuGlibEx.TimeVal | undefined | null): boolean; getDelayTime(): number; getPixbuf(): AuGDKPixBuf.Pixbuf; onCurrentlyLoadingFrame(): boolean; //TypeScript is complete garbage: } class PixbufAnimationIterCtor { } class PixbufLoader extends GObject.Object { constructor(initializerList ?: PixbufLoaderCtor); parentInstance : GObject.Object; priv : void; static New(): AuGDKPixBuf.PixbufLoader; static NewWithMimeType(mimeType: string): AuGDKPixBuf.PixbufLoader; static NewWithType(imageType: string): AuGDKPixBuf.PixbufLoader; close(): boolean; getAnimation(): AuGDKPixBuf.PixbufAnimation; getFormat(): AuGDKPixBuf.PixbufFormat; getPixbuf(): AuGDKPixBuf.Pixbuf; setSize(width: number, height: number): void; write(buf: number[], count: number | bigint): boolean; writeBytes(buffer: AuGlibEx.Bytes): boolean; //TypeScript is complete garbage: } class PixbufLoaderCtor { } class PixbufLoaderEventListener extends AuGlibEx.IEventListener { areaPrepared(): void; areaUpdated(x: number, y: number, width: number, height: number): void; closed(): void; sizePrepared(width: number, height: number): void; } class PixbufNonAnim extends AuGDKPixBuf.PixbufAnimation { constructor(initializerList ?: PixbufNonAnimCtor); static New(pixbuf: AuGDKPixBuf.Pixbuf): AuGDKPixBuf.PixbufAnimation; //TypeScript is complete garbage: } class PixbufNonAnimCtor { } class PixbufSimpleAnim extends AuGDKPixBuf.PixbufAnimation { constructor(initializerList ?: PixbufSimpleAnimCtor); loop : boolean; static New(width: number, height: number, rate: number): AuGDKPixBuf.PixbufSimpleAnim; addFrame(pixbuf: AuGDKPixBuf.Pixbuf): void; getLoop(): boolean; setLoop(loop: boolean): void; //TypeScript is complete garbage: } class PixbufSimpleAnimCtor { loop ?: boolean; } class PixbufSimpleAnimIter extends AuGDKPixBuf.PixbufAnimationIter { constructor(initializerList ?: PixbufSimpleAnimIterCtor); //TypeScript is complete garbage: } class PixbufSimpleAnimIterCtor { } }