/// <reference types="@nativescript/objc-node-api" />

declare const kCGUseBT1886ForCoreVideoGamma: interop.Pointer;

declare const kCGPDFContextOutputIntents: interop.Pointer;

declare const CGAffineTransformIdentity: CGAffineTransform;

declare const kCGPDFContextCreator: interop.Pointer;

declare const kCGFontIndexInvalid: number;

declare const kCGColorSpaceLinearGray: interop.Pointer;

declare const CGRectZero: CGRect;

declare const kCGSkipBoostToHDR: interop.Pointer;

declare const kCGColorSpaceITUR_709: interop.Pointer;

declare const kCGColorSpaceITUR_2020: interop.Pointer;

declare const kCGColorSpaceDisplayP3_HLG: interop.Pointer;

declare const kCGPDFOutlineDestination: interop.Pointer;

declare const kCGDynamicRangeStandard: interop.Object;

declare const kCGColorSpaceExtendedSRGB: interop.Pointer;

declare const kCGColorSpaceExtendedLinearGray: interop.Pointer;

declare const kCGColorSpaceDisplayP3_PQ_EOTF: interop.Pointer;

declare const kCGPDFContextCropBox: interop.Pointer;

declare const kCGDefaultHDRImageContentHeadroom: number;

declare const kCGColorSpaceITUR_2020_HLG: interop.Pointer;

declare const kCGPDFContextTrimBox: interop.Pointer;

declare const kCGPDFContextAllowsPrinting: interop.Pointer;

declare const kCGPDFContextOutputIntent: interop.Pointer;

declare const kCGColorSpaceITUR_2020_PQ_EOTF: interop.Pointer;

declare const kCGPDFContextUserPassword: interop.Pointer;

declare const kCGDynamicRangeHigh: interop.Object;

declare const kCGPDFOutlineTitle: interop.Pointer;

declare const kCGUse100nitsHLGOOTF: interop.Pointer;

declare const kCGColorSpaceACESCGLinear: interop.Pointer;

declare const kCGEXRToneMappingGammaKneeHigh: interop.Pointer;

declare const kCGFontVariationAxisMinValue: interop.Pointer;

declare const kCGPDFTagPropertyLanguageText: interop.Pointer;

declare const kCGPDFTagPropertyTitleText: interop.Pointer;

declare const kCGPDFTagPropertyActualText: interop.Pointer;

declare const kCGPDFContextCreateLinearizedPDF: interop.Pointer;

declare const kCGPDFXInfo: interop.Pointer;

declare const kCGPDFXOutputCondition: interop.Pointer;

declare const kCGPDFXOutputConditionIdentifier: interop.Pointer;

declare const kCGPDFXOutputIntentSubtype: interop.Pointer;

declare const kCGPDFContextAllowsCopying: interop.Pointer;

declare const kCGPDFContextOwnerPassword: interop.Pointer;

declare const kCGPDFContextKeywords: interop.Pointer;

declare const kCGPDFContextSubject: interop.Pointer;

declare const kCGPDFContextAuthor: interop.Pointer;

declare const kCGPDFContextTitle: interop.Pointer;

declare const kCGPDFContextArtBox: interop.Pointer;

declare const kCGColorConversionTRCSize: interop.Pointer;

declare const kCGColorConversionBlackPointCompensation: interop.Pointer;

declare const kCGDynamicRangeConstrained: interop.Object;

declare const kCGPreferredDynamicRange: interop.Object;

declare const kCGUseLegacyHDREcosystem: interop.Pointer;

declare const kCGPDFOutlineDestinationRect: interop.Pointer;

declare const kCGPDFOutlineChildren: interop.Pointer;

declare const kCGBitmapByteOrder32Host: interop.Enum<typeof CGBitmapInfo>;

declare const kCGFontVariationAxisName: interop.Pointer;

declare const kCGGlyphMax: number;

declare const kCGFontIndexMax: number;

declare const kCGPDFContextAccessPermissions: interop.Pointer;

declare const kCGColorClear: interop.Pointer;

declare const kCGColorBlack: interop.Pointer;

declare const kCGColorWhite: interop.Pointer;

declare const kCGColorSpaceExtendedRange: interop.Pointer;

declare const kCGColorSpaceExtendedLinearSRGB: interop.Pointer;

declare const kCGColorSpaceExtendedLinearDisplayP3: interop.Pointer;

declare const kCGColorSpaceExtendedDisplayP3: interop.Pointer;

declare const kCGColorSpaceExtendedLinearITUR_2020: interop.Pointer;

declare const kCGColorSpaceExtendedITUR_2020: interop.Pointer;

declare const kCGColorSpaceLinearITUR_2020: interop.Pointer;

declare const kCGColorSpaceROMMRGB: interop.Pointer;

declare const kCGColorSpaceITUR_2020_sRGBGamma: interop.Pointer;

declare const kCGColorSpaceITUR_709_PQ: interop.Pointer;

declare const kCGColorSpaceGenericLab: interop.Pointer;

declare const kCGColorSpaceGenericGrayGamma2_2: interop.Pointer;

declare const kCGColorSpaceAdobeRGB1998: interop.Pointer;

declare const kCGColorSpaceGenericCMYK: interop.Pointer;

declare const kCGColorSpaceGenericGray: interop.Pointer;

declare const CGSizeZero: CGSize;

declare const kCGPDFTagPropertyAlternativeText: interop.Pointer;

declare const kCGColorSpaceGenericRGBLinear: interop.Pointer;

declare const kCGColorSpaceGenericXYZ: interop.Pointer;

declare const kCGContentAverageLightLevel: interop.Object;

declare const kCGPDFContextBleedBox: interop.Pointer;

declare const CGRectNull: CGRect;

declare const kCGFontVariationAxisDefaultValue: interop.Pointer;

declare const kCGPDFContextEncryptionKeyLength: interop.Pointer;

declare const kCGColorSpaceGenericRGB: interop.Pointer;

declare const kCGEXRToneMappingGammaExposure: interop.Pointer;

declare const kCGPDFContextCreatePDFA: interop.Pointer;

declare const kCGColorSpaceITUR_709_HLG: interop.Pointer;

declare const kCGColorSpaceDisplayP3_PQ: interop.Pointer;

declare const kCGColorSpaceExtendedGray: interop.Pointer;

declare const kCGColorSpaceLinearDisplayP3: interop.Pointer;

declare const kCGEXRToneMappingGammaDefog: interop.Pointer;

declare const kCGBitmapByteOrder16Host: interop.Enum<typeof CGBitmapInfo>;

declare const kCGPDFContextMediaBox: interop.Pointer;

declare const kCGColorSpaceCoreMedia709: interop.Pointer;

declare const kCGContentAverageLightLevelNits: interop.Object;

declare const kCGColorSpaceDCIP3: interop.Pointer;

declare const kCGFontVariationAxisMaxValue: interop.Pointer;

declare const kCGAdaptiveMaximumBitDepth: interop.Pointer;

declare const kCGPDFXRegistryName: interop.Pointer;

declare const kCGColorSpaceDisplayP3: interop.Pointer;

declare const kCGColorSpaceITUR_2100_HLG: interop.Pointer;

declare const CGPointZero: CGPoint;

declare const kCGColorSpaceLinearSRGB: interop.Pointer;

declare const kCGPDFXDestinationOutputProfile: interop.Pointer;

declare const CGRectInfinite: CGRect;

declare const kCGColorSpaceSRGB: interop.Pointer;

declare const kCGColorSpaceITUR_2020_PQ: interop.Pointer;

declare const kCGColorSpaceITUR_2100_PQ: interop.Pointer;

declare const kCGEXRToneMappingGammaKneeLow: interop.Pointer;

declare const CGTextEncoding: {
  FontSpecific: 0,
  MacRoman: 1,
};

declare const CGTextDrawingMode: {
  Fill: 0,
  Stroke: 1,
  FillStroke: 2,
  Invisible: 3,
  FillClip: 4,
  StrokeClip: 5,
  FillStrokeClip: 6,
  Clip: 7,
};

declare const CGImagePixelFormatInfo: {
  Mask: 983040,
  Packed: 0,
  RGB555: 65536,
  RGB565: 131072,
  RGB101010: 196608,
  RGBCIF10: 262144,
};

declare const CGPDFAccessPermissions: {
  LowQualityPrinting: 1,
  HighQualityPrinting: 2,
  DocumentChanges: 4,
  DocumentAssembly: 8,
  ContentCopying: 16,
  ContentAccessibility: 32,
  Commenting: 64,
  FormFieldEntry: 128,
};

declare const CGColorModel: {
  NoColorant: 0,
  Gray: 1,
  RGB: 2,
  CMYK: 4,
  Lab: 8,
  DeviceN: 16,
};

declare const CGComponent: {
  Unknown: 0,
  Integer8Bit: 1,
  Integer10Bit: 6,
  Integer16Bit: 2,
  Integer32Bit: 3,
  Float16Bit: 5,
  Float32Bit: 4,
};

declare const CGPDFBox: {
  Media: 0,
  Crop: 1,
  Bleed: 2,
  Trim: 3,
  Art: 4,
};

declare const CGToneMapping: {
  Default: 0,
  ImageSpecificLumaScaling: 1,
  ReferenceWhiteBased: 2,
  ITURecommended: 3,
  EXRGamma: 4,
  None: 5,
};

declare const CGBlendMode: {
  Normal: 0,
  Multiply: 1,
  Screen: 2,
  Overlay: 3,
  Darken: 4,
  Lighten: 5,
  ColorDodge: 6,
  ColorBurn: 7,
  SoftLight: 8,
  HardLight: 9,
  Difference: 10,
  Exclusion: 11,
  Hue: 12,
  Saturation: 13,
  Color: 14,
  Luminosity: 15,
  Clear: 16,
  Copy: 17,
  SourceIn: 18,
  SourceOut: 19,
  SourceAtop: 20,
  DestinationOver: 21,
  DestinationIn: 22,
  DestinationOut: 23,
  DestinationAtop: 24,
  XOR: 25,
  PlusDarker: 26,
  PlusLighter: 27,
};

declare const CGBitmapLayout: {
  AlphaOnly: 0,
  Gray: 1,
  GrayAlpha: 2,
  RGBA: 3,
  ARGB: 4,
  RGBX: 5,
  XRGB: 6,
  BGRA: 7,
  BGRX: 8,
  ABGR: 9,
  XBGR: 10,
  CMYK: 11,
};

declare const CGInterpolationQuality: {
  Default: 0,
  None: 1,
  Low: 2,
  Medium: 4,
  High: 3,
};

declare const CGError: {
  Success: 0,
  Failure: 1000,
  IllegalArgument: 1001,
  InvalidConnection: 1002,
  InvalidContext: 1003,
  CannotComplete: 1004,
  NotImplemented: 1006,
  RangeCheck: 1007,
  TypeCheck: 1008,
  InvalidOperation: 1010,
  NoneAvailable: 1011,
};

declare const CGPathDrawingMode: {
  Fill: 0,
  EOFill: 1,
  Stroke: 2,
  FillStroke: 3,
  EOFillStroke: 4,
};

declare const CGGradientDrawingOptions: {
  BeforeStart: 1,
  AfterEnd: 2,
};

declare const CGFontPostScriptFormat: {
  Type1: 1,
  Type3: 3,
  Type42: 42,
};

declare const CGImageAlphaInfo: {
  None: 0,
  PremultipliedLast: 1,
  PremultipliedFirst: 2,
  Last: 3,
  First: 4,
  NoneSkipLast: 5,
  NoneSkipFirst: 6,
  Only: 7,
};

declare const CGPatternTiling: {
  NoDistortion: 0,
  ConstantSpacingMinimalDistortion: 1,
  ConstantSpacing: 2,
};

declare const CGImageByteOrderInfo: {
  OrderMask: 28672,
  OrderDefault: 0,
  Order16Little: 4096,
  Order32Little: 8192,
  Order16Big: 12288,
  Order32Big: 16384,
  Order16Host: 4096,
  Order32Host: 8192,
};

declare const CGColorSpaceModel: {
  Unknown: -1,
  Monochrome: 0,
  RGB: 1,
  CMYK: 2,
  Lab: 3,
  DeviceN: 4,
  Indexed: 5,
  Pattern: 6,
  XYZ: 7,
};

declare const CGBitmapInfo: {
  AlphaInfoMask: 31,
  ComponentInfoMask: 3840,
  ByteOrderInfoMask: 28672,
  PixelFormatInfoMask: 983040,
  FloatInfoMask: 3840,
  ByteOrderMask: 28672,
  FloatComponents: 256,
  ByteOrderDefault: 0,
  ByteOrder16Little: 4096,
  ByteOrder32Little: 8192,
  ByteOrder16Big: 12288,
  ByteOrder32Big: 16384,
};

declare const CGPathElementType: {
  MoveToPoint: 0,
  AddLineToPoint: 1,
  AddQuadCurveToPoint: 2,
  AddCurveToPoint: 3,
  CloseSubpath: 4,
};

declare const CGPDFTagType: {
  Document: 100,
  Part: 101,
  Art: 102,
  Section: 103,
  Div: 104,
  BlockQuote: 105,
  Caption: 106,
  TOC: 107,
  TOCI: 108,
  Index: 109,
  NonStructure: 110,
  Private: 111,
  Paragraph: 200,
  Header: 201,
  Header1: 202,
  Header2: 203,
  Header3: 204,
  Header4: 205,
  Header5: 206,
  Header6: 207,
  List: 300,
  ListItem: 301,
  Label: 302,
  ListBody: 303,
  Table: 400,
  TableRow: 401,
  TableHeaderCell: 402,
  TableDataCell: 403,
  TableHeader: 404,
  TableBody: 405,
  TableFooter: 406,
  Span: 500,
  Quote: 501,
  Note: 502,
  Reference: 503,
  Bibliography: 504,
  Code: 505,
  Link: 506,
  Annotation: 507,
  Ruby: 600,
  RubyBaseText: 601,
  RubyAnnotationText: 602,
  RubyPunctuation: 603,
  Warichu: 604,
  WarichuText: 605,
  WarichuPunctiation: 606,
  Figure: 700,
  Formula: 701,
  Form: 702,
  Object: 800,
};

declare const CGLineJoin: {
  Miter: 0,
  Round: 1,
  Bevel: 2,
};

declare const CGColorRenderingIntent: {
  Default: 0,
  AbsoluteColorimetric: 1,
  RelativeColorimetric: 2,
  Perceptual: 3,
  Saturation: 4,
};

declare const CGColorConversionInfoTransformType: {
  From: 0,
  To: 1,
  Apply: 2,
};

declare const CGGlyphDeprecatedEnum: {
  Min: 0,
  Max: 1,
};

declare const CGImageComponentInfo: {
  Integer: 0,
  Float: 256,
};

declare const CGPDFDataFormat: {
  Raw: 0,
  JPEGEncoded: 1,
  JPEG2000: 2,
};

declare const CGPDFObjectType: {
  Null: 1,
  Boolean: 2,
  Integer: 3,
  Real: 4,
  Name: 5,
  String: 6,
  Array: 7,
  Dictionary: 8,
  Stream: 9,
};

declare const CGLineCap: {
  Butt: 0,
  Round: 1,
  Square: 2,
};

declare class CGPDFContentStream {
  constructor(init?: CGPDFContentStream);
}

declare class CGLayer {
  constructor(init?: CGLayer);
}

declare class CGDataConsumer {
  constructor(init?: CGDataConsumer);
}

declare class CGColorDataFormat {
  constructor(init?: CGColorDataFormat);
  version: number;
  colorspace_info: interop.Object | null;
  bitmap_info: interop.Enum<typeof CGBitmapInfo>;
  bits_per_component: number;
  bytes_per_row: number;
  intent: interop.Enum<typeof CGColorRenderingIntent>;
  decode: interop.Pointer;
}

declare class CGColorBufferFormat {
  constructor(init?: CGColorBufferFormat);
  version: number;
  bitmapInfo: interop.Enum<typeof CGBitmapInfo>;
  bitsPerComponent: number;
  bitsPerPixel: number;
  bytesPerRow: number;
}

declare class CGPDFDictionary {
  constructor(init?: CGPDFDictionary);
}

declare class CGImage {
  constructor(init?: CGImage);
}

declare class CGGradient {
  constructor(init?: CGGradient);
}

declare class ColorSyncProfile {
  constructor(init?: ColorSyncProfile);
}

declare class CGDataProvider {
  constructor(init?: CGDataProvider);
}

declare class CGContext {
  constructor(init?: CGContext);
}

declare class CGColorConversionInfo {
  constructor(init?: CGColorConversionInfo);
}

declare class __IOSurface {
  constructor(init?: __IOSurface);
}

declare class CGPDFDocument {
  constructor(init?: CGPDFDocument);
}

declare class CGFunctionCallbacks {
  constructor(init?: CGFunctionCallbacks);
  version: number;
  evaluate: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => void | null;
  releaseInfo: (p1: interop.PointerConvertible) => void | null;
}

declare class CGPath {
  constructor(init?: CGPath);
}

declare class CGDataConsumerCallbacks {
  constructor(init?: CGDataConsumerCallbacks);
  putBytes: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: number) => number | null;
  releaseConsumer: (p1: interop.PointerConvertible) => void | null;
}

declare class CGPDFScanner {
  constructor(init?: CGPDFScanner);
}

declare class CGPatternCallbacks {
  constructor(init?: CGPatternCallbacks);
  version: number;
  drawPattern: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => void | null;
  releaseInfo: (p1: interop.PointerConvertible) => void | null;
}

declare class CGPDFPage {
  constructor(init?: CGPDFPage);
}

declare class CGContentInfo {
  constructor(init?: CGContentInfo);
  deepestImageComponent: interop.Enum<typeof CGComponent>;
  contentColorModels: interop.Enum<typeof CGColorModel>;
  hasWideGamut: boolean;
  hasTransparency: boolean;
  largestContentHeadroom: number;
}

declare class CGPDFObject {
  constructor(init?: CGPDFObject);
}

declare class CGContentToneMappingInfo {
  constructor(init?: CGContentToneMappingInfo);
  method: interop.Enum<typeof CGToneMapping>;
  options: interop.Object | null;
}

declare class CGPathElement {
  constructor(init?: CGPathElement);
  type: interop.Enum<typeof CGPathElementType>;
  points: interop.Pointer;
}

declare class CGPDFString {
  constructor(init?: CGPDFString);
}

declare class CGFunction {
  constructor(init?: CGFunction);
}

declare class CGPDFArray {
  constructor(init?: CGPDFArray);
}

declare class CGPDFOperatorTable {
  constructor(init?: CGPDFOperatorTable);
}

declare class CGPDFStream {
  constructor(init?: CGPDFStream);
}

declare class CGFont {
  constructor(init?: CGFont);
}

declare class CGRenderingBufferProvider {
  constructor(init?: CGRenderingBufferProvider);
}

declare class CGShading {
  constructor(init?: CGShading);
}

declare class CGDataProviderSequentialCallbacks {
  constructor(init?: CGDataProviderSequentialCallbacks);
  version: number;
  getBytes: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: number) => number | null;
  skipForward: (p1: interop.PointerConvertible, p2: number) => number | null;
  rewind: (p1: interop.PointerConvertible) => void | null;
  releaseInfo: (p1: interop.PointerConvertible) => void | null;
}

declare class CGDataProviderDirectCallbacks {
  constructor(init?: CGDataProviderDirectCallbacks);
  version: number;
  getBytePointer: (p1: interop.PointerConvertible) => interop.Pointer | null;
  releaseBytePointer: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => void | null;
  getBytesAtPosition: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: number, p4: number) => number | null;
  releaseInfo: (p1: interop.PointerConvertible) => void | null;
}

declare class CGPattern {
  constructor(init?: CGPattern);
}

declare class CGColorSpace {
  constructor(init?: CGColorSpace);
}

declare class CGColor {
  constructor(init?: CGColor);
}

declare class CGBitmapParameters {
  constructor(init?: CGBitmapParameters);
  width: number;
  height: number;
  bytesPerPixel: number;
  alignedBytesPerRow: number;
  component: interop.Enum<typeof CGComponent>;
  layout: interop.Enum<typeof CGBitmapLayout>;
  format: interop.Enum<typeof CGImagePixelFormatInfo>;
  colorSpace: interop.Object | null;
  hasPremultipliedAlpha: boolean;
  byteOrder: number;
  edrTargetHeadroom: number;
}

declare function CGRectGetMinX(rect: CGRect): number;

declare function CGRectGetMidX(rect: CGRect): number;

declare function CGRectGetMaxX(rect: CGRect): number;

declare function CGRectGetMinY(rect: CGRect): number;

declare function CGRectGetMidY(rect: CGRect): number;

declare function CGRectGetMaxY(rect: CGRect): number;

declare function CGRectGetWidth(rect: CGRect): number;

declare function CGRectGetHeight(rect: CGRect): number;

declare function CGPointEqualToPoint(point1: CGPoint, point2: CGPoint): boolean;

declare function CGSizeEqualToSize(size1: CGSize, size2: CGSize): boolean;

declare function CGRectEqualToRect(rect1: CGRect, rect2: CGRect): boolean;

declare function CGRectStandardize(rect: CGRect): CGRect;

declare function CGRectIsEmpty(rect: CGRect): boolean;

declare function CGRectIsNull(rect: CGRect): boolean;

declare function CGRectIsInfinite(rect: CGRect): boolean;

declare function CGRectInset(rect: CGRect, dx: number, dy: number): CGRect;

declare function CGRectIntegral(rect: CGRect): CGRect;

declare function CGRectUnion(r1: CGRect, r2: CGRect): CGRect;

declare function CGRectIntersection(r1: CGRect, r2: CGRect): CGRect;

declare function CGRectOffset(rect: CGRect, dx: number, dy: number): CGRect;

declare function CGRectDivide(rect: CGRect, slice: interop.PointerConvertible, remainder: interop.PointerConvertible, amount: number, edge: interop.Enum<typeof CGRectEdge>): void;

declare function CGRectContainsPoint(rect: CGRect, point: CGPoint): boolean;

declare function CGRectContainsRect(rect1: CGRect, rect2: CGRect): boolean;

declare function CGRectIntersectsRect(rect1: CGRect, rect2: CGRect): boolean;

declare function CGPointCreateDictionaryRepresentation(point: CGPoint): interop.Object;

declare function CGPointMakeWithDictionaryRepresentation(dict: interop.Object, point: interop.PointerConvertible): boolean;

declare function CGSizeCreateDictionaryRepresentation(size: CGSize): interop.Object;

declare function CGSizeMakeWithDictionaryRepresentation(dict: interop.Object, size: interop.PointerConvertible): boolean;

declare function CGRectCreateDictionaryRepresentation(p1: CGRect): interop.Object;

declare function CGRectMakeWithDictionaryRepresentation(dict: interop.Object, rect: interop.PointerConvertible): boolean;

declare function CGAffineTransformMake(a: number, b: number, c: number, d: number, tx: number, ty: number): CGAffineTransform;

declare function CGAffineTransformMakeTranslation(tx: number, ty: number): CGAffineTransform;

declare function CGAffineTransformMakeScale(sx: number, sy: number): CGAffineTransform;

declare function CGAffineTransformMakeRotation(angle: number): CGAffineTransform;

declare function CGAffineTransformIsIdentity(t: CGAffineTransform): boolean;

declare function CGAffineTransformTranslate(t: CGAffineTransform, tx: number, ty: number): CGAffineTransform;

declare function CGAffineTransformScale(t: CGAffineTransform, sx: number, sy: number): CGAffineTransform;

declare function CGAffineTransformRotate(t: CGAffineTransform, angle: number): CGAffineTransform;

declare function CGAffineTransformInvert(t: CGAffineTransform): CGAffineTransform;

declare function CGAffineTransformConcat(t1: CGAffineTransform, t2: CGAffineTransform): CGAffineTransform;

declare function CGAffineTransformEqualToTransform(t1: CGAffineTransform, t2: CGAffineTransform): boolean;

declare function CGPointApplyAffineTransform(point: CGPoint, t: CGAffineTransform): CGPoint;

declare function CGSizeApplyAffineTransform(size: CGSize, t: CGAffineTransform): CGSize;

declare function CGRectApplyAffineTransform(rect: CGRect, t: CGAffineTransform): CGRect;

declare function CGAffineTransformDecompose(transform: CGAffineTransform): CGAffineTransformComponents;

declare function CGAffineTransformMakeWithComponents(components: CGAffineTransformComponents): CGAffineTransform;

declare function CGDataProviderGetTypeID(): number;

declare function CGDataProviderCreateSequential(info: interop.PointerConvertible, callbacks: interop.PointerConvertible): interop.Object;

declare function CGDataProviderCreateDirect(info: interop.PointerConvertible, size: number, callbacks: interop.PointerConvertible): interop.Object;

declare function CGDataProviderCreateWithData(info: interop.PointerConvertible, data: interop.PointerConvertible, size: number, releaseData: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: number) => void): interop.Object;

declare function CGDataProviderCreateWithCFData(data: interop.Object): interop.Object;

declare function CGDataProviderCreateWithURL(url: interop.Object): interop.Object;

declare function CGDataProviderCreateWithFilename(filename: string): interop.Object;

declare function CGDataProviderRetain(provider: interop.Object): interop.Object;

declare function CGDataProviderRelease(provider: interop.Object): void;

declare function CGDataProviderCopyData(provider: interop.Object): interop.Object;

declare function CGDataProviderGetInfo(provider: interop.Object): interop.Pointer;

declare function CGColorSpaceCreateDeviceGray(): interop.Object;

declare function CGColorSpaceCreateDeviceRGB(): interop.Object;

declare function CGColorSpaceCreateDeviceCMYK(): interop.Object;

declare function CGColorSpaceCreateCalibratedGray(whitePoint: interop.PointerConvertible, blackPoint: interop.PointerConvertible, gamma: number): interop.Object;

declare function CGColorSpaceCreateCalibratedRGB(whitePoint: interop.PointerConvertible, blackPoint: interop.PointerConvertible, gamma: interop.PointerConvertible, matrix: interop.PointerConvertible): interop.Object;

declare function CGColorSpaceCreateLab(whitePoint: interop.PointerConvertible, blackPoint: interop.PointerConvertible, range: interop.PointerConvertible): interop.Object;

declare function CGColorSpaceCreateWithICCData(data: interop.Object): interop.Object;

declare function CGColorSpaceCreateICCBased(nComponents: number, range: interop.PointerConvertible, profile: interop.Object, alternate: interop.Object): interop.Object;

declare function CGColorSpaceCreateIndexed(baseSpace: interop.Object, lastIndex: number, colorTable: interop.PointerConvertible): interop.Object;

declare function CGColorSpaceCreatePattern(baseSpace: interop.Object): interop.Object;

declare function CGColorSpaceCreateWithColorSyncProfile(p1: interop.Object, options: interop.Object): interop.Object;

declare function CGColorSpaceCreateWithName(name: interop.Object): interop.Object;

declare function CGColorSpaceRetain(space: interop.Object): interop.Object;

declare function CGColorSpaceRelease(space: interop.Object): void;

declare function CGColorSpaceGetName(space: interop.Object): interop.Object;

declare function CGColorSpaceCopyName(space: interop.Object): interop.Object;

declare function CGColorSpaceGetTypeID(): number;

declare function CGColorSpaceGetNumberOfComponents(space: interop.Object): number;

declare function CGColorSpaceGetModel(space: interop.Object): interop.Enum<typeof CGColorSpaceModel>;

declare function CGColorSpaceGetBaseColorSpace(space: interop.Object): interop.Object;

declare function CGColorSpaceCopyBaseColorSpace(space: interop.Object): interop.Object;

declare function CGColorSpaceGetColorTableCount(space: interop.Object): number;

declare function CGColorSpaceGetColorTable(space: interop.Object, table: interop.PointerConvertible): void;

declare function CGColorSpaceCopyICCData(space: interop.Object): interop.Object;

declare function CGColorSpaceIsWideGamutRGB(p1: interop.Object): boolean;

declare function CGColorSpaceIsHDR(p1: interop.Object): boolean;

declare function CGColorSpaceUsesITUR_2100TF(p1: interop.Object): boolean;

declare function CGColorSpaceIsPQBased(s: interop.Object): boolean;

declare function CGColorSpaceIsHLGBased(s: interop.Object): boolean;

declare function CGColorSpaceSupportsOutput(space: interop.Object): boolean;

declare function CGColorSpaceCopyPropertyList(space: interop.Object): interop.Object;

declare function CGColorSpaceCreateWithPropertyList(plist: interop.Object): interop.Object;

declare function CGColorSpaceUsesExtendedRange(space: interop.Object): boolean;

declare function CGColorSpaceCreateLinearized(space: interop.Object): interop.Object;

declare function CGColorSpaceCreateExtended(space: interop.Object): interop.Object;

declare function CGColorSpaceCreateExtendedLinearized(space: interop.Object): interop.Object;

declare function CGColorSpaceCreateCopyWithStandardRange(space: interop.Object): interop.Object;

declare function CGColorSpaceCreateWithICCProfile(data: interop.Object): interop.Object;

declare function CGColorSpaceCopyICCProfile(space: interop.Object): interop.Object;

declare function CGColorSpaceCreateWithPlatformColorSpace(ref: interop.PointerConvertible): interop.Object;

declare function CGPatternGetTypeID(): number;

declare function CGPatternCreate(info: interop.PointerConvertible, bounds: CGRect, matrix: CGAffineTransform, xStep: number, yStep: number, tiling: interop.Enum<typeof CGPatternTiling>, isColored: boolean, callbacks: interop.PointerConvertible): interop.Object;

declare function CGPatternRetain(pattern: interop.Object): interop.Object;

declare function CGPatternRelease(pattern: interop.Object): void;

declare function CGColorCreate(space: interop.Object, components: interop.PointerConvertible): interop.Object;

declare function CGColorCreateGenericGray(gray: number, alpha: number): interop.Object;

declare function CGColorCreateGenericRGB(red: number, green: number, blue: number, alpha: number): interop.Object;

declare function CGColorCreateGenericCMYK(cyan: number, magenta: number, yellow: number, black: number, alpha: number): interop.Object;

declare function CGColorCreateGenericGrayGamma2_2(gray: number, alpha: number): interop.Object;

declare function CGColorCreateSRGB(red: number, green: number, blue: number, alpha: number): interop.Object;

declare function CGColorCreateWithContentHeadroom(headroom: number, space: interop.Object, red: number, green: number, blue: number, alpha: number): interop.Object;

declare function CGColorGetContentHeadroom(color: interop.Object): number;

declare function CGColorGetConstantColor(colorName: interop.Object): interop.Object;

declare function CGColorCreateWithPattern(space: interop.Object, pattern: interop.Object, components: interop.PointerConvertible): interop.Object;

declare function CGColorCreateCopy(color: interop.Object): interop.Object;

declare function CGColorCreateCopyWithAlpha(color: interop.Object, alpha: number): interop.Object;

declare function CGColorCreateCopyByMatchingToColorSpace(p1: interop.Object, intent: interop.Enum<typeof CGColorRenderingIntent>, color: interop.Object, options: interop.Object): interop.Object;

declare function CGColorRetain(color: interop.Object): interop.Object;

declare function CGColorRelease(color: interop.Object): void;

declare function CGColorEqualToColor(color1: interop.Object, color2: interop.Object): boolean;

declare function CGColorGetNumberOfComponents(color: interop.Object): number;

declare function CGColorGetComponents(color: interop.Object): interop.Pointer;

declare function CGColorGetAlpha(color: interop.Object): number;

declare function CGColorGetColorSpace(color: interop.Object): interop.Object;

declare function CGColorGetPattern(color: interop.Object): interop.Object;

declare function CGColorGetTypeID(): number;

declare function CGFontGetTypeID(): number;

declare function CGFontCreateWithDataProvider(provider: interop.Object): interop.Object;

declare function CGFontCreateWithFontName(name: interop.Object): interop.Object;

declare function CGFontCreateCopyWithVariations(font: interop.Object, variations: interop.Object): interop.Object;

declare function CGFontRetain(font: interop.Object): interop.Object;

declare function CGFontRelease(font: interop.Object): void;

declare function CGFontGetNumberOfGlyphs(font: interop.Object): number;

declare function CGFontGetUnitsPerEm(font: interop.Object): number;

declare function CGFontCopyPostScriptName(font: interop.Object): interop.Object;

declare function CGFontCopyFullName(font: interop.Object): interop.Object;

declare function CGFontGetAscent(font: interop.Object): number;

declare function CGFontGetDescent(font: interop.Object): number;

declare function CGFontGetLeading(font: interop.Object): number;

declare function CGFontGetCapHeight(font: interop.Object): number;

declare function CGFontGetXHeight(font: interop.Object): number;

declare function CGFontGetFontBBox(font: interop.Object): CGRect;

declare function CGFontGetItalicAngle(font: interop.Object): number;

declare function CGFontGetStemV(font: interop.Object): number;

declare function CGFontCopyVariationAxes(font: interop.Object): interop.Object;

declare function CGFontCopyVariations(font: interop.Object): interop.Object;

declare function CGFontGetGlyphAdvances(font: interop.Object, glyphs: interop.PointerConvertible, count: number, advances: interop.PointerConvertible): boolean;

declare function CGFontGetGlyphBBoxes(font: interop.Object, glyphs: interop.PointerConvertible, count: number, bboxes: interop.PointerConvertible): boolean;

declare function CGFontGetGlyphWithGlyphName(font: interop.Object, name: interop.Object): number;

declare function CGFontCopyGlyphNameForGlyph(font: interop.Object, glyph: number): interop.Object;

declare function CGFontCanCreatePostScriptSubset(font: interop.Object, format: interop.Enum<typeof CGFontPostScriptFormat>): boolean;

declare function CGFontCreatePostScriptSubset(font: interop.Object, subsetName: interop.Object, format: interop.Enum<typeof CGFontPostScriptFormat>, glyphs: interop.PointerConvertible, count: number, encoding: interop.PointerConvertible): interop.Object;

declare function CGFontCreatePostScriptEncoding(font: interop.Object, encoding: interop.PointerConvertible): interop.Object;

declare function CGFontCopyTableTags(font: interop.Object): interop.Object;

declare function CGFontCopyTableForTag(font: interop.Object, tag: number): interop.Object;

declare function CGGradientGetTypeID(): number;

declare function CGGradientCreateWithColorComponents(space: interop.Object, components: interop.PointerConvertible, locations: interop.PointerConvertible, count: number): interop.Object;

declare function CGGradientCreateWithContentHeadroom(headroom: number, space: interop.Object, components: interop.PointerConvertible, locations: interop.PointerConvertible, count: number): interop.Object;

declare function CGGradientCreateWithColors(space: interop.Object, colors: interop.Object, locations: interop.PointerConvertible): interop.Object;

declare function CGGradientRetain(gradient: interop.Object): interop.Object;

declare function CGGradientRelease(gradient: interop.Object): void;

declare function CGGradientGetContentHeadroom(gradient: interop.Object): number;

declare function CGImageGetTypeID(): number;

declare function CGImageCreate(width: number, height: number, bitsPerComponent: number, bitsPerPixel: number, bytesPerRow: number, space: interop.Object, bitmapInfo: interop.Enum<typeof CGBitmapInfo>, provider: interop.Object, decode: interop.PointerConvertible, shouldInterpolate: boolean, intent: interop.Enum<typeof CGColorRenderingIntent>): interop.Object;

declare function CGImageMaskCreate(width: number, height: number, bitsPerComponent: number, bitsPerPixel: number, bytesPerRow: number, provider: interop.Object, decode: interop.PointerConvertible, shouldInterpolate: boolean): interop.Object;

declare function CGImageCreateCopy(image: interop.Object): interop.Object;

declare function CGImageCreateWithJPEGDataProvider(source: interop.Object, decode: interop.PointerConvertible, shouldInterpolate: boolean, intent: interop.Enum<typeof CGColorRenderingIntent>): interop.Object;

declare function CGImageCreateWithPNGDataProvider(source: interop.Object, decode: interop.PointerConvertible, shouldInterpolate: boolean, intent: interop.Enum<typeof CGColorRenderingIntent>): interop.Object;

declare function CGImageCreateWithImageInRect(image: interop.Object, rect: CGRect): interop.Object;

declare function CGImageCreateWithMask(image: interop.Object, mask: interop.Object): interop.Object;

declare function CGImageCreateWithMaskingColors(image: interop.Object, components: interop.PointerConvertible): interop.Object;

declare function CGImageCreateCopyWithColorSpace(image: interop.Object, space: interop.Object): interop.Object;

declare function CGImageCreateWithContentHeadroom(headroom: number, width: number, height: number, bitsPerComponent: number, bitsPerPixel: number, bytesPerRow: number, space: interop.Object, bitmapInfo: interop.Enum<typeof CGBitmapInfo>, provider: interop.Object, decode: interop.PointerConvertible, shouldInterpolate: boolean, intent: interop.Enum<typeof CGColorRenderingIntent>): interop.Object;

declare function CGImageCreateCopyWithContentHeadroom(headroom: number, image: interop.Object): interop.Object;

declare function CGImageGetContentHeadroom(image: interop.Object): number;

declare function CGImageCalculateContentHeadroom(image: interop.Object): number;

declare function CGImageGetContentAverageLightLevel(image: interop.Object): number;

declare function CGImageCalculateContentAverageLightLevel(image: interop.Object): number;

declare function CGImageCreateCopyWithContentAverageLightLevel(image: interop.Object, avll: number): interop.Object;

declare function CGImageCreateCopyWithCalculatedHDRStats(image: interop.Object): interop.Object;

declare function CGImageRetain(image: interop.Object): interop.Object;

declare function CGImageRelease(image: interop.Object): void;

declare function CGImageIsMask(image: interop.Object): boolean;

declare function CGImageGetWidth(image: interop.Object): number;

declare function CGImageGetHeight(image: interop.Object): number;

declare function CGImageGetBitsPerComponent(image: interop.Object): number;

declare function CGImageGetBitsPerPixel(image: interop.Object): number;

declare function CGImageGetBytesPerRow(image: interop.Object): number;

declare function CGImageGetColorSpace(image: interop.Object): interop.Object;

declare function CGImageGetAlphaInfo(image: interop.Object): interop.Enum<typeof CGImageAlphaInfo>;

declare function CGImageGetDataProvider(image: interop.Object): interop.Object;

declare function CGImageGetDecode(image: interop.Object): interop.Pointer;

declare function CGImageGetShouldInterpolate(image: interop.Object): boolean;

declare function CGImageGetRenderingIntent(image: interop.Object): interop.Enum<typeof CGColorRenderingIntent>;

declare function CGImageGetBitmapInfo(image: interop.Object): interop.Enum<typeof CGBitmapInfo>;

declare function CGImageGetByteOrderInfo(image: interop.Object): interop.Enum<typeof CGImageByteOrderInfo>;

declare function CGImageGetPixelFormatInfo(image: interop.Object): interop.Enum<typeof CGImagePixelFormatInfo>;

declare function CGImageShouldToneMap(image: interop.Object): boolean;

declare function CGImageContainsImageSpecificToneMappingMetadata(image: interop.Object): boolean;

declare function CGImageGetUTType(image: interop.Object): interop.Object;

declare function CGPathGetTypeID(): number;

declare function CGPathCreateMutable(): interop.Object;

declare function CGPathCreateCopy(path: interop.Object): interop.Object;

declare function CGPathCreateCopyByTransformingPath(path: interop.Object, transform: interop.PointerConvertible): interop.Object;

declare function CGPathCreateMutableCopy(path: interop.Object): interop.Object;

declare function CGPathCreateMutableCopyByTransformingPath(path: interop.Object, transform: interop.PointerConvertible): interop.Object;

declare function CGPathCreateWithRect(rect: CGRect, transform: interop.PointerConvertible): interop.Object;

declare function CGPathCreateWithEllipseInRect(rect: CGRect, transform: interop.PointerConvertible): interop.Object;

declare function CGPathCreateWithRoundedRect(rect: CGRect, cornerWidth: number, cornerHeight: number, transform: interop.PointerConvertible): interop.Object;

declare function CGPathAddRoundedRect(path: interop.Object, transform: interop.PointerConvertible, rect: CGRect, cornerWidth: number, cornerHeight: number): void;

declare function CGPathCreateCopyByDashingPath(path: interop.Object, transform: interop.PointerConvertible, phase: number, lengths: interop.PointerConvertible, count: number): interop.Object;

declare function CGPathCreateCopyByStrokingPath(path: interop.Object, transform: interop.PointerConvertible, lineWidth: number, lineCap: interop.Enum<typeof CGLineCap>, lineJoin: interop.Enum<typeof CGLineJoin>, miterLimit: number): interop.Object;

declare function CGPathRetain(path: interop.Object): interop.Object;

declare function CGPathRelease(path: interop.Object): void;

declare function CGPathEqualToPath(path1: interop.Object, path2: interop.Object): boolean;

declare function CGPathMoveToPoint(path: interop.Object, m: interop.PointerConvertible, x: number, y: number): void;

declare function CGPathAddLineToPoint(path: interop.Object, m: interop.PointerConvertible, x: number, y: number): void;

declare function CGPathAddQuadCurveToPoint(path: interop.Object, m: interop.PointerConvertible, cpx: number, cpy: number, x: number, y: number): void;

declare function CGPathAddCurveToPoint(path: interop.Object, m: interop.PointerConvertible, cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;

declare function CGPathCloseSubpath(path: interop.Object): void;

declare function CGPathAddRect(path: interop.Object, m: interop.PointerConvertible, rect: CGRect): void;

declare function CGPathAddRects(path: interop.Object, m: interop.PointerConvertible, rects: interop.PointerConvertible, count: number): void;

declare function CGPathAddLines(path: interop.Object, m: interop.PointerConvertible, points: interop.PointerConvertible, count: number): void;

declare function CGPathAddEllipseInRect(path: interop.Object, m: interop.PointerConvertible, rect: CGRect): void;

declare function CGPathAddRelativeArc(path: interop.Object, matrix: interop.PointerConvertible, x: number, y: number, radius: number, startAngle: number, delta: number): void;

declare function CGPathAddArc(path: interop.Object, m: interop.PointerConvertible, x: number, y: number, radius: number, startAngle: number, endAngle: number, clockwise: boolean): void;

declare function CGPathAddArcToPoint(path: interop.Object, m: interop.PointerConvertible, x1: number, y1: number, x2: number, y2: number, radius: number): void;

declare function CGPathAddPath(path1: interop.Object, m: interop.PointerConvertible, path2: interop.Object): void;

declare function CGPathIsEmpty(path: interop.Object): boolean;

declare function CGPathIsRect(path: interop.Object, rect: interop.PointerConvertible): boolean;

declare function CGPathGetCurrentPoint(path: interop.Object): CGPoint;

declare function CGPathGetBoundingBox(path: interop.Object): CGRect;

declare function CGPathGetPathBoundingBox(path: interop.Object): CGRect;

declare function CGPathContainsPoint(path: interop.Object, m: interop.PointerConvertible, point: CGPoint, eoFill: boolean): boolean;

declare function CGPathApply(path: interop.Object, info: interop.PointerConvertible, function$: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => void): void;

declare function CGPathApplyWithBlock(path: interop.Object, block: (p1: interop.PointerConvertible) => void): void;

declare function CGPathCreateCopyByNormalizing(path: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateCopyByUnioningPath(path: interop.Object, maskPath: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateCopyByIntersectingPath(path: interop.Object, maskPath: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateCopyBySubtractingPath(path: interop.Object, maskPath: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateCopyBySymmetricDifferenceOfPath(path: interop.Object, maskPath: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateCopyOfLineBySubtractingPath(path: interop.Object, maskPath: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateCopyOfLineByIntersectingPath(path: interop.Object, maskPath: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateSeparateComponents(path: interop.Object, evenOddFillRule: boolean): interop.Object;

declare function CGPathCreateCopyByFlattening(path: interop.Object, flatteningThreshold: number): interop.Object;

declare function CGPathIntersectsPath(path1: interop.Object, path2: interop.Object, evenOddFillRule: boolean): boolean;

declare function CGPDFObjectGetType(object: interop.PointerConvertible): interop.Enum<typeof CGPDFObjectType>;

declare function CGPDFObjectGetValue(object: interop.PointerConvertible, type: interop.Enum<typeof CGPDFObjectType>, value: interop.PointerConvertible): boolean;

declare function CGPDFStreamGetDictionary(stream: interop.PointerConvertible): interop.Pointer;

declare function CGPDFStreamCopyData(stream: interop.PointerConvertible, format: interop.PointerConvertible): interop.Object;

declare function CGPDFStringGetLength(string: interop.PointerConvertible): number;

declare function CGPDFStringGetBytePtr(string: interop.PointerConvertible): interop.Pointer;

declare function CGPDFStringCopyTextString(string: interop.PointerConvertible): interop.Object;

declare function CGPDFStringCopyDate(string: interop.PointerConvertible): interop.Object;

declare function CGPDFArrayGetCount(array: interop.PointerConvertible): number;

declare function CGPDFArrayGetObject(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetNull(array: interop.PointerConvertible, index: number): boolean;

declare function CGPDFArrayGetBoolean(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetInteger(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetNumber(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetName(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetString(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetArray(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetDictionary(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayGetStream(array: interop.PointerConvertible, index: number, value: interop.PointerConvertible): boolean;

declare function CGPDFArrayApplyBlock(array: interop.PointerConvertible, block: (p1: number, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => boolean, info: interop.PointerConvertible): void;

declare function CGPDFDictionaryGetCount(dict: interop.PointerConvertible): number;

declare function CGPDFDictionaryGetObject(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetBoolean(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetInteger(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetNumber(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetName(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetString(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetArray(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetDictionary(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryGetStream(dict: interop.PointerConvertible, key: string, value: interop.PointerConvertible): boolean;

declare function CGPDFDictionaryApplyFunction(dict: interop.PointerConvertible, function$: (p1: string, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => void, info: interop.PointerConvertible): void;

declare function CGPDFDictionaryApplyBlock(dict: interop.PointerConvertible, block: (p1: string, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => boolean, info: interop.PointerConvertible): void;

declare function CGPDFPageRetain(page: interop.Object): interop.Object;

declare function CGPDFPageRelease(page: interop.Object): void;

declare function CGPDFPageGetDocument(page: interop.Object): interop.Object;

declare function CGPDFPageGetPageNumber(page: interop.Object): number;

declare function CGPDFPageGetBoxRect(page: interop.Object, box: interop.Enum<typeof CGPDFBox>): CGRect;

declare function CGPDFPageGetRotationAngle(page: interop.Object): number;

declare function CGPDFPageGetDrawingTransform(page: interop.Object, box: interop.Enum<typeof CGPDFBox>, rect: CGRect, rotate: number, preserveAspectRatio: boolean): CGAffineTransform;

declare function CGPDFPageGetDictionary(page: interop.Object): interop.Pointer;

declare function CGPDFPageGetTypeID(): number;

declare function CGPDFDocumentCreateWithProvider(provider: interop.Object): interop.Object;

declare function CGPDFDocumentCreateWithURL(url: interop.Object): interop.Object;

declare function CGPDFDocumentRetain(document: interop.Object): interop.Object;

declare function CGPDFDocumentRelease(document: interop.Object): void;

declare function CGPDFDocumentGetVersion(document: interop.Object, majorVersion: interop.PointerConvertible, minorVersion: interop.PointerConvertible): void;

declare function CGPDFDocumentIsEncrypted(document: interop.Object): boolean;

declare function CGPDFDocumentUnlockWithPassword(document: interop.Object, password: string): boolean;

declare function CGPDFDocumentIsUnlocked(document: interop.Object): boolean;

declare function CGPDFDocumentAllowsPrinting(document: interop.Object): boolean;

declare function CGPDFDocumentAllowsCopying(document: interop.Object): boolean;

declare function CGPDFDocumentGetNumberOfPages(document: interop.Object): number;

declare function CGPDFDocumentGetPage(document: interop.Object, pageNumber: number): interop.Object;

declare function CGPDFDocumentGetCatalog(document: interop.Object): interop.Pointer;

declare function CGPDFDocumentGetInfo(document: interop.Object): interop.Pointer;

declare function CGPDFDocumentGetID(document: interop.Object): interop.Pointer;

declare function CGPDFDocumentGetTypeID(): number;

declare function CGPDFDocumentGetOutline(document: interop.Object): interop.Object;

declare function CGPDFDocumentGetAccessPermissions(document: interop.Object): interop.Enum<typeof CGPDFAccessPermissions>;

declare function CGFunctionGetTypeID(): number;

declare function CGFunctionCreate(info: interop.PointerConvertible, domainDimension: number, domain: interop.PointerConvertible, rangeDimension: number, range: interop.PointerConvertible, callbacks: interop.PointerConvertible): interop.Object;

declare function CGFunctionRetain(function$: interop.Object): interop.Object;

declare function CGFunctionRelease(function$: interop.Object): void;

declare function CGShadingGetTypeID(): number;

declare function CGShadingCreateAxial(space: interop.Object, start: CGPoint, end: CGPoint, function$: interop.Object, extendStart: boolean, extendEnd: boolean): interop.Object;

declare function CGShadingCreateAxialWithContentHeadroom(headroom: number, space: interop.Object, start: CGPoint, end: CGPoint, function$: interop.Object, extendStart: boolean, extendEnd: boolean): interop.Object;

declare function CGShadingCreateRadial(space: interop.Object, start: CGPoint, startRadius: number, end: CGPoint, endRadius: number, function$: interop.Object, extendStart: boolean, extendEnd: boolean): interop.Object;

declare function CGShadingCreateRadialWithContentHeadroom(headroom: number, space: interop.Object, start: CGPoint, startRadius: number, end: CGPoint, endRadius: number, function$: interop.Object, extendStart: boolean, extendEnd: boolean): interop.Object;

declare function CGShadingRetain(shading: interop.Object): interop.Object;

declare function CGShadingRelease(shading: interop.Object): void;

declare function CGShadingGetContentHeadroom(shading: interop.Object): number;

declare function CGEXRToneMappingGammaGetDefaultOptions(): interop.Object;

declare function CGContextGetTypeID(): number;

declare function CGContextSaveGState(c: interop.Object): void;

declare function CGContextRestoreGState(c: interop.Object): void;

declare function CGContextScaleCTM(c: interop.Object, sx: number, sy: number): void;

declare function CGContextTranslateCTM(c: interop.Object, tx: number, ty: number): void;

declare function CGContextRotateCTM(c: interop.Object, angle: number): void;

declare function CGContextConcatCTM(c: interop.Object, transform: CGAffineTransform): void;

declare function CGContextGetCTM(c: interop.Object): CGAffineTransform;

declare function CGContextSetLineWidth(c: interop.Object, width: number): void;

declare function CGContextSetLineCap(c: interop.Object, cap: interop.Enum<typeof CGLineCap>): void;

declare function CGContextSetLineJoin(c: interop.Object, join: interop.Enum<typeof CGLineJoin>): void;

declare function CGContextSetMiterLimit(c: interop.Object, limit: number): void;

declare function CGContextSetLineDash(c: interop.Object, phase: number, lengths: interop.PointerConvertible, count: number): void;

declare function CGContextSetFlatness(c: interop.Object, flatness: number): void;

declare function CGContextSetAlpha(c: interop.Object, alpha: number): void;

declare function CGContextSetBlendMode(c: interop.Object, mode: interop.Enum<typeof CGBlendMode>): void;

declare function CGContextBeginPath(c: interop.Object): void;

declare function CGContextMoveToPoint(c: interop.Object, x: number, y: number): void;

declare function CGContextAddLineToPoint(c: interop.Object, x: number, y: number): void;

declare function CGContextAddCurveToPoint(c: interop.Object, cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;

declare function CGContextAddQuadCurveToPoint(c: interop.Object, cpx: number, cpy: number, x: number, y: number): void;

declare function CGContextClosePath(c: interop.Object): void;

declare function CGContextAddRect(c: interop.Object, rect: CGRect): void;

declare function CGContextAddRects(c: interop.Object, rects: interop.PointerConvertible, count: number): void;

declare function CGContextAddLines(c: interop.Object, points: interop.PointerConvertible, count: number): void;

declare function CGContextAddEllipseInRect(c: interop.Object, rect: CGRect): void;

declare function CGContextAddArc(c: interop.Object, x: number, y: number, radius: number, startAngle: number, endAngle: number, clockwise: number): void;

declare function CGContextAddArcToPoint(c: interop.Object, x1: number, y1: number, x2: number, y2: number, radius: number): void;

declare function CGContextAddPath(c: interop.Object, path: interop.Object): void;

declare function CGContextReplacePathWithStrokedPath(c: interop.Object): void;

declare function CGContextIsPathEmpty(c: interop.Object): boolean;

declare function CGContextGetPathCurrentPoint(c: interop.Object): CGPoint;

declare function CGContextGetPathBoundingBox(c: interop.Object): CGRect;

declare function CGContextCopyPath(c: interop.Object): interop.Object;

declare function CGContextPathContainsPoint(c: interop.Object, point: CGPoint, mode: interop.Enum<typeof CGPathDrawingMode>): boolean;

declare function CGContextDrawPath(c: interop.Object, mode: interop.Enum<typeof CGPathDrawingMode>): void;

declare function CGContextFillPath(c: interop.Object): void;

declare function CGContextEOFillPath(c: interop.Object): void;

declare function CGContextStrokePath(c: interop.Object): void;

declare function CGContextFillRect(c: interop.Object, rect: CGRect): void;

declare function CGContextFillRects(c: interop.Object, rects: interop.PointerConvertible, count: number): void;

declare function CGContextStrokeRect(c: interop.Object, rect: CGRect): void;

declare function CGContextStrokeRectWithWidth(c: interop.Object, rect: CGRect, width: number): void;

declare function CGContextClearRect(c: interop.Object, rect: CGRect): void;

declare function CGContextFillEllipseInRect(c: interop.Object, rect: CGRect): void;

declare function CGContextStrokeEllipseInRect(c: interop.Object, rect: CGRect): void;

declare function CGContextStrokeLineSegments(c: interop.Object, points: interop.PointerConvertible, count: number): void;

declare function CGContextClip(c: interop.Object): void;

declare function CGContextEOClip(c: interop.Object): void;

declare function CGContextResetClip(c: interop.Object): void;

declare function CGContextClipToMask(c: interop.Object, rect: CGRect, mask: interop.Object): void;

declare function CGContextGetClipBoundingBox(c: interop.Object): CGRect;

declare function CGContextClipToRect(c: interop.Object, rect: CGRect): void;

declare function CGContextClipToRects(c: interop.Object, rects: interop.PointerConvertible, count: number): void;

declare function CGContextSetFillColorWithColor(c: interop.Object, color: interop.Object): void;

declare function CGContextSetStrokeColorWithColor(c: interop.Object, color: interop.Object): void;

declare function CGContextSetFillColorSpace(c: interop.Object, space: interop.Object): void;

declare function CGContextSetStrokeColorSpace(c: interop.Object, space: interop.Object): void;

declare function CGContextSetFillColor(c: interop.Object, components: interop.PointerConvertible): void;

declare function CGContextSetStrokeColor(c: interop.Object, components: interop.PointerConvertible): void;

declare function CGContextSetFillPattern(c: interop.Object, pattern: interop.Object, components: interop.PointerConvertible): void;

declare function CGContextSetStrokePattern(c: interop.Object, pattern: interop.Object, components: interop.PointerConvertible): void;

declare function CGContextSetPatternPhase(c: interop.Object, phase: CGSize): void;

declare function CGContextSetGrayFillColor(c: interop.Object, gray: number, alpha: number): void;

declare function CGContextSetGrayStrokeColor(c: interop.Object, gray: number, alpha: number): void;

declare function CGContextSetRGBFillColor(c: interop.Object, red: number, green: number, blue: number, alpha: number): void;

declare function CGContextSetRGBStrokeColor(c: interop.Object, red: number, green: number, blue: number, alpha: number): void;

declare function CGContextSetCMYKFillColor(c: interop.Object, cyan: number, magenta: number, yellow: number, black: number, alpha: number): void;

declare function CGContextSetCMYKStrokeColor(c: interop.Object, cyan: number, magenta: number, yellow: number, black: number, alpha: number): void;

declare function CGContextSetRenderingIntent(c: interop.Object, intent: interop.Enum<typeof CGColorRenderingIntent>): void;

declare function CGContextSetEDRTargetHeadroom(c: interop.Object, headroom: number): boolean;

declare function CGContextGetEDRTargetHeadroom(c: interop.Object): number;

declare function CGContextDrawImage(c: interop.Object, rect: CGRect, image: interop.Object): void;

declare function CGContextDrawTiledImage(c: interop.Object, rect: CGRect, image: interop.Object): void;

declare function CGContextDrawImageApplyingToneMapping(c: interop.Object, r: CGRect, image: interop.Object, method: interop.Enum<typeof CGToneMapping>, options: interop.Object): boolean;

declare function CGContextGetContentToneMappingInfo(c: interop.Object): CGContentToneMappingInfo;

declare function CGContextSetContentToneMappingInfo(c: interop.Object, info: CGContentToneMappingInfo): void;

declare function CGContextGetInterpolationQuality(c: interop.Object): interop.Enum<typeof CGInterpolationQuality>;

declare function CGContextSetInterpolationQuality(c: interop.Object, quality: interop.Enum<typeof CGInterpolationQuality>): void;

declare function CGContextSetShadowWithColor(c: interop.Object, offset: CGSize, blur: number, color: interop.Object): void;

declare function CGContextSetShadow(c: interop.Object, offset: CGSize, blur: number): void;

declare function CGContextDrawLinearGradient(c: interop.Object, gradient: interop.Object, startPoint: CGPoint, endPoint: CGPoint, options: interop.Enum<typeof CGGradientDrawingOptions>): void;

declare function CGContextDrawRadialGradient(c: interop.Object, gradient: interop.Object, startCenter: CGPoint, startRadius: number, endCenter: CGPoint, endRadius: number, options: interop.Enum<typeof CGGradientDrawingOptions>): void;

declare function CGContextDrawConicGradient(c: interop.Object, gradient: interop.Object, center: CGPoint, angle: number): void;

declare function CGContextDrawShading(c: interop.Object, shading: interop.Object): void;

declare function CGContextSetCharacterSpacing(c: interop.Object, spacing: number): void;

declare function CGContextSetTextPosition(c: interop.Object, x: number, y: number): void;

declare function CGContextGetTextPosition(c: interop.Object): CGPoint;

declare function CGContextSetTextMatrix(c: interop.Object, t: CGAffineTransform): void;

declare function CGContextGetTextMatrix(c: interop.Object): CGAffineTransform;

declare function CGContextSetTextDrawingMode(c: interop.Object, mode: interop.Enum<typeof CGTextDrawingMode>): void;

declare function CGContextSetFont(c: interop.Object, font: interop.Object): void;

declare function CGContextSetFontSize(c: interop.Object, size: number): void;

declare function CGContextShowGlyphsAtPositions(c: interop.Object, glyphs: interop.PointerConvertible, Lpositions: interop.PointerConvertible, count: number): void;

declare function CGContextDrawPDFPage(c: interop.Object, page: interop.Object): void;

declare function CGContextBeginPage(c: interop.Object, mediaBox: interop.PointerConvertible): void;

declare function CGContextEndPage(c: interop.Object): void;

declare function CGContextRetain(c: interop.Object): interop.Object;

declare function CGContextRelease(c: interop.Object): void;

declare function CGContextFlush(c: interop.Object): void;

declare function CGContextSynchronize(c: interop.Object): void;

declare function CGContextSynchronizeAttributes(c: interop.Object): void;

declare function CGContextSetShouldAntialias(c: interop.Object, shouldAntialias: boolean): void;

declare function CGContextSetAllowsAntialiasing(c: interop.Object, allowsAntialiasing: boolean): void;

declare function CGContextSetShouldSmoothFonts(c: interop.Object, shouldSmoothFonts: boolean): void;

declare function CGContextSetAllowsFontSmoothing(c: interop.Object, allowsFontSmoothing: boolean): void;

declare function CGContextSetShouldSubpixelPositionFonts(c: interop.Object, shouldSubpixelPositionFonts: boolean): void;

declare function CGContextSetAllowsFontSubpixelPositioning(c: interop.Object, allowsFontSubpixelPositioning: boolean): void;

declare function CGContextSetShouldSubpixelQuantizeFonts(c: interop.Object, shouldSubpixelQuantizeFonts: boolean): void;

declare function CGContextSetAllowsFontSubpixelQuantization(c: interop.Object, allowsFontSubpixelQuantization: boolean): void;

declare function CGContextBeginTransparencyLayer(c: interop.Object, auxiliaryInfo: interop.Object): void;

declare function CGContextBeginTransparencyLayerWithRect(c: interop.Object, rect: CGRect, auxInfo: interop.Object): void;

declare function CGContextEndTransparencyLayer(c: interop.Object): void;

declare function CGContextGetUserSpaceToDeviceSpaceTransform(c: interop.Object): CGAffineTransform;

declare function CGContextConvertPointToDeviceSpace(c: interop.Object, point: CGPoint): CGPoint;

declare function CGContextConvertPointToUserSpace(c: interop.Object, point: CGPoint): CGPoint;

declare function CGContextConvertSizeToDeviceSpace(c: interop.Object, size: CGSize): CGSize;

declare function CGContextConvertSizeToUserSpace(c: interop.Object, size: CGSize): CGSize;

declare function CGContextConvertRectToDeviceSpace(c: interop.Object, rect: CGRect): CGRect;

declare function CGContextConvertRectToUserSpace(c: interop.Object, rect: CGRect): CGRect;

declare function CGContextSelectFont(c: interop.Object, name: string, size: number, textEncoding: interop.Enum<typeof CGTextEncoding>): void;

declare function CGContextShowText(c: interop.Object, string: string, length: number): void;

declare function CGContextShowTextAtPoint(c: interop.Object, x: number, y: number, string: string, length: number): void;

declare function CGContextShowGlyphs(c: interop.Object, g: interop.PointerConvertible, count: number): void;

declare function CGContextShowGlyphsAtPoint(c: interop.Object, x: number, y: number, glyphs: interop.PointerConvertible, count: number): void;

declare function CGContextShowGlyphsWithAdvances(c: interop.Object, glyphs: interop.PointerConvertible, advances: interop.PointerConvertible, count: number): void;

declare function CGRenderingBufferProviderCreate(info: interop.PointerConvertible, size: number, lockPointer: (p1: interop.PointerConvertible) => interop.Pointer, unlockPointer: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => void, releaseInfo: (p1: interop.PointerConvertible) => void): interop.Pointer;

declare function CGRenderingBufferProviderCreateWithCFData(data: interop.Object): interop.Pointer;

declare function CGRenderingBufferProviderGetSize(provider: interop.PointerConvertible): number;

declare function CGRenderingBufferLockBytePtr(provider: interop.PointerConvertible): interop.Pointer;

declare function CGRenderingBufferUnlockBytePtr(provider: interop.PointerConvertible): void;

declare function CGRenderingBufferProviderGetTypeID(): number;

declare function CGBitmapContextCreateWithData(data: interop.PointerConvertible, width: number, height: number, bitsPerComponent: number, bytesPerRow: number, space: interop.Object, bitmapInfo: interop.Enum<typeof CGBitmapInfo>, releaseCallback: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => void, releaseInfo: interop.PointerConvertible): interop.Object;

declare function CGBitmapContextCreate(data: interop.PointerConvertible, width: number, height: number, bitsPerComponent: number, bytesPerRow: number, space: interop.Object, bitmapInfo: interop.Enum<typeof CGBitmapInfo>): interop.Object;

declare function CGBitmapContextCreateAdaptive(width: number, height: number, auxiliaryInfo: interop.Object, onResolve: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => boolean, onAllocate: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => interop.Pointer, onFree: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => void, onError: (p1: interop.PointerConvertible, p2: interop.PointerConvertible, p3: interop.PointerConvertible) => void): interop.Object;

declare function CGBitmapContextGetData(context: interop.Object): interop.Pointer;

declare function CGBitmapContextGetWidth(context: interop.Object): number;

declare function CGBitmapContextGetHeight(context: interop.Object): number;

declare function CGBitmapContextGetBitsPerComponent(context: interop.Object): number;

declare function CGBitmapContextGetBitsPerPixel(context: interop.Object): number;

declare function CGBitmapContextGetBytesPerRow(context: interop.Object): number;

declare function CGBitmapContextGetColorSpace(context: interop.Object): interop.Object;

declare function CGBitmapContextGetAlphaInfo(context: interop.Object): interop.Enum<typeof CGImageAlphaInfo>;

declare function CGBitmapContextGetBitmapInfo(context: interop.Object): interop.Enum<typeof CGBitmapInfo>;

declare function CGBitmapContextCreateImage(context: interop.Object): interop.Object;

declare function CGColorConversionInfoGetTypeID(): number;

declare function CGColorConversionInfoCreate(src: interop.Object, dst: interop.Object): interop.Pointer;

declare function CGColorConversionInfoCreateWithOptions(src: interop.Object, dst: interop.Object, options: interop.Object): interop.Pointer;

declare function CGColorConversionInfoCreateFromList(options: interop.Object, p2: interop.Object, p3: interop.Enum<typeof CGColorConversionInfoTransformType>, p4: interop.Enum<typeof CGColorRenderingIntent>): interop.Pointer;

declare function CGColorConversionInfoCreateFromListWithArguments(options: interop.Object, p2: interop.Object, p3: interop.Enum<typeof CGColorConversionInfoTransformType>, p4: interop.Enum<typeof CGColorRenderingIntent>, p5: string): interop.Pointer;

declare function CGColorConversionInfoCreateForToneMapping(from: interop.Object, source_headroom: number, to: interop.Object, target_headroom: number, method: interop.Enum<typeof CGToneMapping>, options: interop.Object, error: interop.PointerConvertible): interop.Pointer;

declare function CGColorConversionInfoConvertData(info: interop.PointerConvertible, width: number, height: number, dst_data: interop.PointerConvertible, dst_format: CGColorBufferFormat, src_data: interop.PointerConvertible, src_format: CGColorBufferFormat, options: interop.Object): boolean;

declare function CGConvertColorDataWithFormat(width: number, height: number, dst_data: interop.PointerConvertible, dst_format: CGColorDataFormat, src_data: interop.PointerConvertible, src_format: CGColorDataFormat, options: interop.Object): boolean;

declare function CGDataConsumerGetTypeID(): number;

declare function CGDataConsumerCreate(info: interop.PointerConvertible, cbks: interop.PointerConvertible): interop.Object;

declare function CGDataConsumerCreateWithURL(url: interop.Object): interop.Object;

declare function CGDataConsumerCreateWithCFData(data: interop.Object): interop.Object;

declare function CGDataConsumerRetain(consumer: interop.Object): interop.Object;

declare function CGDataConsumerRelease(consumer: interop.Object): void;

declare function CGErrorSetCallback(callback: () => void): void;

declare function CGLayerCreateWithContext(context: interop.Object, size: CGSize, auxiliaryInfo: interop.Object): interop.Object;

declare function CGLayerRetain(layer: interop.Object): interop.Object;

declare function CGLayerRelease(layer: interop.Object): void;

declare function CGLayerGetSize(layer: interop.Object): CGSize;

declare function CGLayerGetContext(layer: interop.Object): interop.Object;

declare function CGContextDrawLayerInRect(context: interop.Object, rect: CGRect, layer: interop.Object): void;

declare function CGContextDrawLayerAtPoint(context: interop.Object, point: CGPoint, layer: interop.Object): void;

declare function CGLayerGetTypeID(): number;

declare function CGPDFContentStreamCreateWithPage(page: interop.Object): interop.Pointer;

declare function CGPDFContentStreamCreateWithStream(stream: interop.PointerConvertible, streamResources: interop.PointerConvertible, parent: interop.PointerConvertible): interop.Pointer;

declare function CGPDFContentStreamRetain(cs: interop.PointerConvertible): interop.Pointer;

declare function CGPDFContentStreamRelease(cs: interop.PointerConvertible): void;

declare function CGPDFContentStreamGetStreams(cs: interop.PointerConvertible): interop.Object;

declare function CGPDFContentStreamGetResource(cs: interop.PointerConvertible, category: string, name: string): interop.Pointer;

declare function CGPDFContextCreate(consumer: interop.Object, mediaBox: interop.PointerConvertible, auxiliaryInfo: interop.Object): interop.Object;

declare function CGPDFContextCreateWithURL(url: interop.Object, mediaBox: interop.PointerConvertible, auxiliaryInfo: interop.Object): interop.Object;

declare function CGPDFContextClose(context: interop.Object): void;

declare function CGPDFContextBeginPage(context: interop.Object, pageInfo: interop.Object): void;

declare function CGPDFContextEndPage(context: interop.Object): void;

declare function CGPDFContextAddDocumentMetadata(context: interop.Object, metadata: interop.Object): void;

declare function CGPDFContextSetParentTree(context: interop.Object, parentTreeDictionary: interop.PointerConvertible): void;

declare function CGPDFContextSetIDTree(context: interop.Object, IDTreeDictionary: interop.PointerConvertible): void;

declare function CGPDFContextSetPageTagStructureTree(context: interop.Object, pageTagStructureTreeDictionary: interop.Object): void;

declare function CGPDFContextSetURLForRect(context: interop.Object, url: interop.Object, rect: CGRect): void;

declare function CGPDFContextAddDestinationAtPoint(context: interop.Object, name: interop.Object, point: CGPoint): void;

declare function CGPDFContextSetDestinationForRect(context: interop.Object, name: interop.Object, rect: CGRect): void;

declare function CGPDFContextSetOutline(context: interop.Object, outline: interop.Object): void;

declare function CGPDFTagTypeGetName(tagType: interop.Enum<typeof CGPDFTagType>): string;

declare function CGPDFContextBeginTag(context: interop.Object, tagType: interop.Enum<typeof CGPDFTagType>, tagProperties: interop.Object): void;

declare function CGPDFContextEndTag(context: interop.Object): void;

declare function CGPDFScannerCreate(cs: interop.PointerConvertible, table: interop.PointerConvertible, info: interop.PointerConvertible): interop.Pointer;

declare function CGPDFScannerRetain(scanner: interop.PointerConvertible): interop.Pointer;

declare function CGPDFScannerRelease(scanner: interop.PointerConvertible): void;

declare function CGPDFScannerScan(scanner: interop.PointerConvertible): boolean;

declare function CGPDFScannerGetContentStream(scanner: interop.PointerConvertible): interop.Pointer;

declare function CGPDFScannerPopObject(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopBoolean(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopInteger(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopNumber(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopName(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopString(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopArray(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopDictionary(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerPopStream(scanner: interop.PointerConvertible, value: interop.PointerConvertible): boolean;

declare function CGPDFScannerStop(s: interop.PointerConvertible): void;

declare function CGPDFOperatorTableCreate(): interop.Pointer;

declare function CGPDFOperatorTableRetain(table: interop.PointerConvertible): interop.Pointer;

declare function CGPDFOperatorTableRelease(table: interop.PointerConvertible): void;

declare function CGPDFOperatorTableSetCallback(table: interop.PointerConvertible, name: string, callback: (p1: interop.PointerConvertible, p2: interop.PointerConvertible) => void): void;

