PluginAPI constructor

PluginAPI({
  1. String? apiVersion,
  2. String? command,
  3. EditorType? editorType,
  4. Mode? mode,
  5. String? pluginId,
  6. String? widgetId,
  7. String? fileKey,
  8. bool? skipInvisibleInstanceChildren,
  9. TimerAPI? timer,
  10. ViewportAPI? viewport,
  11. User? currentUser,
  12. List<ActiveUser>? activeUsers,
  13. TextReviewAPI? textreview,
  14. CodegenAPI? codegen,
  15. VSCodeAPI? vscode,
  16. DevResourcesAPI? devResources,
  17. PaymentsAPI? payments,
  18. Uiapi? ui,
  19. UtilAPI? util,
  20. ConstantsAPI? constants,
  21. ClientStorageAPI? clientStorage,
  22. ParametersAPI? parameters,
  23. VariablesAPI? variables,
  24. TeamLibraryAPI? teamLibrary,
  25. AnnotationsAPI? annotations,
  26. DocumentNode? root,
  27. PageNode? currentPage,
  28. Symbol? mixed,
  29. bool? hasMissingFont,
  30. void closePlugin([
    1. String?
    ])?,
  31. NotificationHandler notify(
    1. String, [
    2. NotificationOptions?
    ])?,
  32. void commitUndo()?,
  33. void triggerUndo()?,
  34. Future<VersionHistoryResult> saveVersionHistoryAsync(
    1. String, [
    2. String?
    ])?,
  35. void openExternal(
    1. String
    )?,
  36. void showUI(
    1. String, [
    2. ShowUIOptions?
    ])?,
  37. Future<Object?> getNodeByIdAsync(
    1. String
    )?,
  38. Object? getNodeById(
    1. String
    )?,
  39. Future<BaseStyle?> getStyleByIdAsync(
    1. String
    )?,
  40. BaseStyle? getStyleById(
    1. String
    )?,
  41. Future<void> setCurrentPageAsync(
    1. PageNode
    )?,
  42. RectangleNode createRectangle()?,
  43. LineNode createLine()?,
  44. EllipseNode createEllipse()?,
  45. PolygonNode createPolygon()?,
  46. StarNode createStar()?,
  47. VectorNode createVector()?,
  48. TextNode createText()?,
  49. FrameNode createFrame()?,
  50. ComponentNode createComponent()?,
  51. ComponentNode createComponentFromNode(
    1. SceneNode
    )?,
  52. PageNode createPage()?,
  53. PageNode createPageDivider([
    1. String?
    ])?,
  54. SliceNode createSlice()?,
  55. SlideNode createSlide([
    1. num?,
    2. num?
    ])?,
  56. SlideRowNode createSlideRow([
    1. num?
    ])?,
  57. StickyNode createSticky()?,
  58. ConnectorNode createConnector()?,
  59. ShapeWithTextNode createShapeWithText()?,
  60. CodeBlockNode createCodeBlock()?,
  61. SectionNode createSection()?,
  62. TableNode createTable([
    1. num?,
    2. num?
    ])?,
  63. Future<SceneNode> createNodeFromJSXAsync([
    1. dynamic
    ])?,
  64. BooleanOperationNode createBooleanOperation()?,
  65. PaintStyle createPaintStyle()?,
  66. TextStyle createTextStyle()?,
  67. EffectStyle createEffectStyle()?,
  68. GridStyle createGridStyle()?,
  69. Future<List<PaintStyle>> getLocalPaintStylesAsync()?,
  70. List<PaintStyle> getLocalPaintStyles()?,
  71. Future<List<TextStyle>> getLocalTextStylesAsync()?,
  72. List<TextStyle> getLocalTextStyles()?,
  73. Future<List<EffectStyle>> getLocalEffectStylesAsync()?,
  74. List<EffectStyle> getLocalEffectStyles()?,
  75. Future<List<GridStyle>> getLocalGridStylesAsync()?,
  76. List<GridStyle> getLocalGridStyles()?,
  77. dynamic getSelectionColors()?,
  78. void moveLocalPaintStyleAfter(
    1. PaintStyle, [
    2. PaintStyle?
    ])?,
  79. void moveLocalTextStyleAfter(
    1. TextStyle, [
    2. TextStyle?
    ])?,
  80. void moveLocalEffectStyleAfter(
    1. EffectStyle, [
    2. EffectStyle?
    ])?,
  81. void moveLocalGridStyleAfter(
    1. GridStyle, [
    2. GridStyle?
    ])?,
  82. void moveLocalPaintFolderAfter(
    1. String, [
    2. String?
    ])?,
  83. void moveLocalTextFolderAfter(
    1. String, [
    2. String?
    ])?,
  84. void moveLocalEffectFolderAfter(
    1. String, [
    2. String?
    ])?,
  85. void moveLocalGridFolderAfter(
    1. String, [
    2. String?
    ])?,
  86. Future<ComponentNode> importComponentByKeyAsync(
    1. String
    )?,
  87. Future<ComponentSetNode> importComponentSetByKeyAsync(
    1. String
    )?,
  88. Future<BaseStyle> importStyleByKeyAsync(
    1. String
    )?,
  89. Future<List<Font>> listAvailableFontsAsync()?,
  90. Future<void> loadFontAsync(
    1. FontName
    )?,
  91. FrameNode createNodeFromSvg(
    1. String
    )?,
  92. Image createImage(
    1. Uint8List
    )?,
  93. Future<Image> createImageAsync(
    1. String
    )?,
  94. Image? getImageByHash(
    1. String
    )?,
  95. Future<Video> createVideoAsync(
    1. Uint8List
    )?,
  96. Future<OpaqueNodeMixin> createLinkPreviewAsync(
    1. String
    )?,
  97. MediaNode createGif(
    1. String
    )?,
  98. ComponentSetNode combineAsVariants(
    1. ReadonlyArray<ComponentNode>,
    2. Object, [
    3. num?
    ])?,
  99. GroupNode group(
    1. ReadonlyArray<Object>,
    2. Object, [
    3. num?
    ])?,
  100. VectorNode flatten(
    1. ReadonlyArray<Object>, [
    2. Object?,
    3. num?
    ])?,
  101. BooleanOperationNode union(
    1. ReadonlyArray<Object>,
    2. Object, [
    3. num?
    ])?,
  102. BooleanOperationNode subtract(
    1. ReadonlyArray<Object>,
    2. Object, [
    3. num?
    ])?,
  103. BooleanOperationNode intersect(
    1. ReadonlyArray<Object>,
    2. Object, [
    3. num?
    ])?,
  104. BooleanOperationNode exclude(
    1. ReadonlyArray<Object>,
    2. Object, [
    3. num?
    ])?,
  105. Array<SceneNode> ungroup(
    1. Object
    )?,
  106. String base64Encode(
    1. Uint8List
    )?,
  107. Uint8List base64Decode(
    1. String
    )?,
  108. Future<BaseNodeMixin?> getFileThumbnailNodeAsync()?,
  109. BaseNodeMixin? getFileThumbnailNode()?,
  110. Future<void> setFileThumbnailNodeAsync([
    1. BaseNodeMixin?
    ])?,
  111. Future<void> loadAllPagesAsync()?,
  112. Array<Array<SlideNode>> getSlideGrid()?,
  113. void setSlideGrid(
    1. Array<Array<SlideNode>>
    )?,
})

Implementation

factory PluginAPI({
  _i2.String? apiVersion,
  _i2.String? command,
  _i3.EditorType? editorType,
  _i3.Mode? mode,
  _i2.String? pluginId,
  _i2.String? widgetId,
  _i2.String? fileKey,
  _i2.bool? skipInvisibleInstanceChildren,
  _i3.TimerAPI? timer,
  _i3.ViewportAPI? viewport,
  _i3.User? currentUser,
  _i2.List<_i3.ActiveUser>? activeUsers,
  _i3.TextReviewAPI? textreview,
  _i3.CodegenAPI? codegen,
  _i3.VSCodeAPI? vscode,
  _i3.DevResourcesAPI? devResources,
  _i3.PaymentsAPI? payments,
  _i3.Uiapi? ui,
  _i3.UtilAPI? util,
  _i3.ConstantsAPI? constants,
  _i3.ClientStorageAPI? clientStorage,
  _i3.ParametersAPI? parameters,
  _i3.VariablesAPI? variables,
  _i3.TeamLibraryAPI? teamLibrary,
  _i3.AnnotationsAPI? annotations,
  _i3.DocumentNode? root,
  _i3.PageNode? currentPage,
  _i2.Symbol? mixed,
  _i2.bool? hasMissingFont,
  void Function([_i2.String?])? closePlugin,
  _i3.NotificationHandler Function(
    _i2.String, [
    _i3.NotificationOptions?,
  ])? notify,
  void Function()? commitUndo,
  void Function()? triggerUndo,
  _i2.Future<_i3.VersionHistoryResult> Function(
    _i2.String, [
    _i2.String?,
  ])? saveVersionHistoryAsync,
  void Function(_i2.String)? openExternal,
  void Function(
    _i2.String, [
    _i3.ShowUIOptions?,
  ])? showUI,
  _i2.Future<_i2.Object?> Function(_i2.String)? getNodeByIdAsync,
  _i2.Object? Function(_i2.String)? getNodeById,
  _i2.Future<_i3.BaseStyle?> Function(_i2.String)? getStyleByIdAsync,
  _i3.BaseStyle? Function(_i2.String)? getStyleById,
  _i2.Future<void> Function(_i3.PageNode)? setCurrentPageAsync,
  _i3.RectangleNode Function()? createRectangle,
  _i3.LineNode Function()? createLine,
  _i3.EllipseNode Function()? createEllipse,
  _i3.PolygonNode Function()? createPolygon,
  _i3.StarNode Function()? createStar,
  _i3.VectorNode Function()? createVector,
  _i3.TextNode Function()? createText,
  _i3.FrameNode Function()? createFrame,
  _i3.ComponentNode Function()? createComponent,
  _i3.ComponentNode Function(_i3.SceneNode)? createComponentFromNode,
  _i3.PageNode Function()? createPage,
  _i3.PageNode Function([_i2.String?])? createPageDivider,
  _i3.SliceNode Function()? createSlice,
  _i3.SlideNode Function([
    _i2.num?,
    _i2.num?,
  ])? createSlide,
  _i3.SlideRowNode Function([_i2.num?])? createSlideRow,
  _i3.StickyNode Function()? createSticky,
  _i3.ConnectorNode Function()? createConnector,
  _i3.ShapeWithTextNode Function()? createShapeWithText,
  _i3.CodeBlockNode Function()? createCodeBlock,
  _i3.SectionNode Function()? createSection,
  _i3.TableNode Function([
    _i2.num?,
    _i2.num?,
  ])? createTable,
  _i2.Future<_i3.SceneNode> Function([_i2.dynamic])? createNodeFromJSXAsync,
  _i3.BooleanOperationNode Function()? createBooleanOperation,
  _i3.PaintStyle Function()? createPaintStyle,
  _i3.TextStyle Function()? createTextStyle,
  _i3.EffectStyle Function()? createEffectStyle,
  _i3.GridStyle Function()? createGridStyle,
  _i2.Future<_i2.List<_i3.PaintStyle>> Function()? getLocalPaintStylesAsync,
  _i2.List<_i3.PaintStyle> Function()? getLocalPaintStyles,
  _i2.Future<_i2.List<_i3.TextStyle>> Function()? getLocalTextStylesAsync,
  _i2.List<_i3.TextStyle> Function()? getLocalTextStyles,
  _i2.Future<_i2.List<_i3.EffectStyle>> Function()? getLocalEffectStylesAsync,
  _i2.List<_i3.EffectStyle> Function()? getLocalEffectStyles,
  _i2.Future<_i2.List<_i3.GridStyle>> Function()? getLocalGridStylesAsync,
  _i2.List<_i3.GridStyle> Function()? getLocalGridStyles,
  _i2.dynamic Function()? getSelectionColors,
  void Function(
    _i3.PaintStyle, [
    _i3.PaintStyle?,
  ])? moveLocalPaintStyleAfter,
  void Function(
    _i3.TextStyle, [
    _i3.TextStyle?,
  ])? moveLocalTextStyleAfter,
  void Function(
    _i3.EffectStyle, [
    _i3.EffectStyle?,
  ])? moveLocalEffectStyleAfter,
  void Function(
    _i3.GridStyle, [
    _i3.GridStyle?,
  ])? moveLocalGridStyleAfter,
  void Function(
    _i2.String, [
    _i2.String?,
  ])? moveLocalPaintFolderAfter,
  void Function(
    _i2.String, [
    _i2.String?,
  ])? moveLocalTextFolderAfter,
  void Function(
    _i2.String, [
    _i2.String?,
  ])? moveLocalEffectFolderAfter,
  void Function(
    _i2.String, [
    _i2.String?,
  ])? moveLocalGridFolderAfter,
  _i2.Future<_i3.ComponentNode> Function(_i2.String)?
      importComponentByKeyAsync,
  _i2.Future<_i3.ComponentSetNode> Function(_i2.String)?
      importComponentSetByKeyAsync,
  _i2.Future<_i3.BaseStyle> Function(_i2.String)? importStyleByKeyAsync,
  _i2.Future<_i2.List<_i3.Font>> Function()? listAvailableFontsAsync,
  _i2.Future<void> Function(_i3.FontName)? loadFontAsync,
  _i3.FrameNode Function(_i2.String)? createNodeFromSvg,
  _i3.Image Function(_i6.Uint8List)? createImage,
  _i2.Future<_i3.Image> Function(_i2.String)? createImageAsync,
  _i3.Image? Function(_i2.String)? getImageByHash,
  _i2.Future<_i3.Video> Function(_i6.Uint8List)? createVideoAsync,
  _i2.Future<_i3.OpaqueNodeMixin> Function(_i2.String)?
      createLinkPreviewAsync,
  _i3.MediaNode Function(_i2.String)? createGif,
  _i3.ComponentSetNode Function(
    _i4.ReadonlyArray<_i3.ComponentNode>,
    _i2.Object, [
    _i2.num?,
  ])? combineAsVariants,
  _i3.GroupNode Function(
    _i4.ReadonlyArray<_i2.Object>,
    _i2.Object, [
    _i2.num?,
  ])? group,
  _i3.VectorNode Function(
    _i4.ReadonlyArray<_i2.Object>, [
    _i2.Object?,
    _i2.num?,
  ])? flatten,
  _i3.BooleanOperationNode Function(
    _i4.ReadonlyArray<_i2.Object>,
    _i2.Object, [
    _i2.num?,
  ])? union,
  _i3.BooleanOperationNode Function(
    _i4.ReadonlyArray<_i2.Object>,
    _i2.Object, [
    _i2.num?,
  ])? subtract,
  _i3.BooleanOperationNode Function(
    _i4.ReadonlyArray<_i2.Object>,
    _i2.Object, [
    _i2.num?,
  ])? intersect,
  _i3.BooleanOperationNode Function(
    _i4.ReadonlyArray<_i2.Object>,
    _i2.Object, [
    _i2.num?,
  ])? exclude,
  _i4.Array<_i3.SceneNode> Function(_i2.Object)? ungroup,
  _i2.String Function(_i6.Uint8List)? base64Encode,
  _i6.Uint8List Function(_i2.String)? base64Decode,
  _i2.Future<_i3.BaseNodeMixin?> Function()? getFileThumbnailNodeAsync,
  _i3.BaseNodeMixin? Function()? getFileThumbnailNode,
  _i2.Future<void> Function([_i3.BaseNodeMixin?])? setFileThumbnailNodeAsync,
  _i2.Future<void> Function()? loadAllPagesAsync,
  _i4.Array<_i4.Array<_i3.SlideNode>> Function()? getSlideGrid,
  void Function(_i4.Array<_i4.Array<_i3.SlideNode>>)? setSlideGrid,
}) =>
    PluginAPI._(
      apiVersion: apiVersion,
      command: command,
      editorType: editorType?.name ?? _i7.undefined,
      mode: mode?.name ?? _i7.undefined,
      pluginId: pluginId,
      widgetId: widgetId,
      fileKey: fileKey ?? _i7.undefined,
      skipInvisibleInstanceChildren: skipInvisibleInstanceChildren,
      timer: timer ?? _i7.undefined,
      viewport: viewport ?? _i7.undefined,
      currentUser: currentUser ?? _i7.undefined,
      activeUsers: activeUsers,
      textreview: textreview ?? _i7.undefined,
      codegen: codegen ?? _i7.undefined,
      vscode: vscode ?? _i7.undefined,
      devResources: devResources ?? _i7.undefined,
      payments: payments ?? _i7.undefined,
      ui: ui ?? _i7.undefined,
      util: util ?? _i7.undefined,
      constants: constants ?? _i7.undefined,
      clientStorage: clientStorage ?? _i7.undefined,
      parameters: parameters ?? _i7.undefined,
      variables: variables ?? _i7.undefined,
      teamLibrary: teamLibrary ?? _i7.undefined,
      annotations: annotations ?? _i7.undefined,
      root: root ?? _i7.undefined,
      currentPage: currentPage ?? _i7.undefined,
      mixed: mixed ?? _i7.undefined,
      hasMissingFont: hasMissingFont,
      closePlugin: closePlugin == null ? null : _i5.allowInterop(closePlugin),
      notify: notify == null ? null : _i5.allowInterop(notify),
      commitUndo: commitUndo == null ? null : _i5.allowInterop(commitUndo),
      triggerUndo: triggerUndo == null ? null : _i5.allowInterop(triggerUndo),
      saveVersionHistoryAsync: saveVersionHistoryAsync == null
          ? null
          : _i5.allowInterop(saveVersionHistoryAsync),
      openExternal:
          openExternal == null ? null : _i5.allowInterop(openExternal),
      showUI: showUI == null ? null : _i5.allowInterop(showUI),
      getNodeByIdAsync: getNodeByIdAsync == null
          ? null
          : _i5.allowInterop(getNodeByIdAsync),
      getNodeById: getNodeById == null
          ? null
          : _i5.allowInterop((p0) =>
              () => getNodeById(p0) ?? _i7.undefined ?? _i7.undefined),
      getStyleByIdAsync: getStyleByIdAsync == null
          ? null
          : _i5.allowInterop(getStyleByIdAsync),
      getStyleById: getStyleById == null
          ? null
          : _i5.allowInterop((p0) =>
              () => getStyleById(p0) ?? _i7.undefined ?? _i7.undefined),
      setCurrentPageAsync: setCurrentPageAsync == null
          ? null
          : _i5.allowInterop(setCurrentPageAsync),
      createRectangle:
          createRectangle == null ? null : _i5.allowInterop(createRectangle),
      createLine: createLine == null ? null : _i5.allowInterop(createLine),
      createEllipse:
          createEllipse == null ? null : _i5.allowInterop(createEllipse),
      createPolygon:
          createPolygon == null ? null : _i5.allowInterop(createPolygon),
      createStar: createStar == null ? null : _i5.allowInterop(createStar),
      createVector:
          createVector == null ? null : _i5.allowInterop(createVector),
      createText: createText == null ? null : _i5.allowInterop(createText),
      createFrame: createFrame == null ? null : _i5.allowInterop(createFrame),
      createComponent:
          createComponent == null ? null : _i5.allowInterop(createComponent),
      createComponentFromNode: createComponentFromNode == null
          ? null
          : _i5.allowInterop(createComponentFromNode),
      createPage: createPage == null ? null : _i5.allowInterop(createPage),
      createPageDivider: createPageDivider == null
          ? null
          : _i5.allowInterop(createPageDivider),
      createSlice: createSlice == null ? null : _i5.allowInterop(createSlice),
      createSlide: createSlide == null ? null : _i5.allowInterop(createSlide),
      createSlideRow:
          createSlideRow == null ? null : _i5.allowInterop(createSlideRow),
      createSticky:
          createSticky == null ? null : _i5.allowInterop(createSticky),
      createConnector:
          createConnector == null ? null : _i5.allowInterop(createConnector),
      createShapeWithText: createShapeWithText == null
          ? null
          : _i5.allowInterop(createShapeWithText),
      createCodeBlock:
          createCodeBlock == null ? null : _i5.allowInterop(createCodeBlock),
      createSection:
          createSection == null ? null : _i5.allowInterop(createSection),
      createTable: createTable == null ? null : _i5.allowInterop(createTable),
      createNodeFromJSXAsync: createNodeFromJSXAsync == null
          ? null
          : _i5.allowInterop(createNodeFromJSXAsync),
      createBooleanOperation: createBooleanOperation == null
          ? null
          : _i5.allowInterop(createBooleanOperation),
      createPaintStyle: createPaintStyle == null
          ? null
          : _i5.allowInterop(createPaintStyle),
      createTextStyle:
          createTextStyle == null ? null : _i5.allowInterop(createTextStyle),
      createEffectStyle: createEffectStyle == null
          ? null
          : _i5.allowInterop(createEffectStyle),
      createGridStyle:
          createGridStyle == null ? null : _i5.allowInterop(createGridStyle),
      getLocalPaintStylesAsync: getLocalPaintStylesAsync == null
          ? null
          : _i5.allowInterop(getLocalPaintStylesAsync),
      getLocalPaintStyles: getLocalPaintStyles == null
          ? null
          : _i5.allowInterop(getLocalPaintStyles),
      getLocalTextStylesAsync: getLocalTextStylesAsync == null
          ? null
          : _i5.allowInterop(getLocalTextStylesAsync),
      getLocalTextStyles: getLocalTextStyles == null
          ? null
          : _i5.allowInterop(getLocalTextStyles),
      getLocalEffectStylesAsync: getLocalEffectStylesAsync == null
          ? null
          : _i5.allowInterop(getLocalEffectStylesAsync),
      getLocalEffectStyles: getLocalEffectStyles == null
          ? null
          : _i5.allowInterop(getLocalEffectStyles),
      getLocalGridStylesAsync: getLocalGridStylesAsync == null
          ? null
          : _i5.allowInterop(getLocalGridStylesAsync),
      getLocalGridStyles: getLocalGridStyles == null
          ? null
          : _i5.allowInterop(getLocalGridStyles),
      getSelectionColors: getSelectionColors == null
          ? null
          : _i5.allowInterop(
              () => () => getSelectionColors() ?? _i7.undefined),
      moveLocalPaintStyleAfter: moveLocalPaintStyleAfter == null
          ? null
          : _i5.allowInterop(moveLocalPaintStyleAfter),
      moveLocalTextStyleAfter: moveLocalTextStyleAfter == null
          ? null
          : _i5.allowInterop(moveLocalTextStyleAfter),
      moveLocalEffectStyleAfter: moveLocalEffectStyleAfter == null
          ? null
          : _i5.allowInterop(moveLocalEffectStyleAfter),
      moveLocalGridStyleAfter: moveLocalGridStyleAfter == null
          ? null
          : _i5.allowInterop(moveLocalGridStyleAfter),
      moveLocalPaintFolderAfter: moveLocalPaintFolderAfter == null
          ? null
          : _i5.allowInterop(moveLocalPaintFolderAfter),
      moveLocalTextFolderAfter: moveLocalTextFolderAfter == null
          ? null
          : _i5.allowInterop(moveLocalTextFolderAfter),
      moveLocalEffectFolderAfter: moveLocalEffectFolderAfter == null
          ? null
          : _i5.allowInterop(moveLocalEffectFolderAfter),
      moveLocalGridFolderAfter: moveLocalGridFolderAfter == null
          ? null
          : _i5.allowInterop(moveLocalGridFolderAfter),
      importComponentByKeyAsync: importComponentByKeyAsync == null
          ? null
          : _i5.allowInterop(importComponentByKeyAsync),
      importComponentSetByKeyAsync: importComponentSetByKeyAsync == null
          ? null
          : _i5.allowInterop(importComponentSetByKeyAsync),
      importStyleByKeyAsync: importStyleByKeyAsync == null
          ? null
          : _i5.allowInterop(importStyleByKeyAsync),
      listAvailableFontsAsync: listAvailableFontsAsync == null
          ? null
          : _i5.allowInterop(listAvailableFontsAsync),
      loadFontAsync:
          loadFontAsync == null ? null : _i5.allowInterop(loadFontAsync),
      createNodeFromSvg: createNodeFromSvg == null
          ? null
          : _i5.allowInterop(createNodeFromSvg),
      createImage: createImage == null ? null : _i5.allowInterop(createImage),
      createImageAsync: createImageAsync == null
          ? null
          : _i5.allowInterop(createImageAsync),
      getImageByHash: getImageByHash == null
          ? null
          : _i5.allowInterop(
              (p0) => () => getImageByHash(p0) ?? _i7.undefined),
      createVideoAsync: createVideoAsync == null
          ? null
          : _i5.allowInterop(createVideoAsync),
      createLinkPreviewAsync: createLinkPreviewAsync == null
          ? null
          : _i5.allowInterop(createLinkPreviewAsync),
      createGif: createGif == null ? null : _i5.allowInterop(createGif),
      combineAsVariants: combineAsVariants == null
          ? null
          : _i5.allowInterop(combineAsVariants),
      group: group == null ? null : _i5.allowInterop(group),
      flatten: flatten == null ? null : _i5.allowInterop(flatten),
      union: union == null ? null : _i5.allowInterop(union),
      subtract: subtract == null ? null : _i5.allowInterop(subtract),
      intersect: intersect == null ? null : _i5.allowInterop(intersect),
      exclude: exclude == null ? null : _i5.allowInterop(exclude),
      ungroup: ungroup == null ? null : _i5.allowInterop(ungroup),
      base64Encode:
          base64Encode == null ? null : _i5.allowInterop(base64Encode),
      base64Decode:
          base64Decode == null ? null : _i5.allowInterop(base64Decode),
      getFileThumbnailNodeAsync: getFileThumbnailNodeAsync == null
          ? null
          : _i5.allowInterop(getFileThumbnailNodeAsync),
      getFileThumbnailNode: getFileThumbnailNode == null
          ? null
          : _i5.allowInterop(
              () => () => getFileThumbnailNode() ?? _i7.undefined),
      setFileThumbnailNodeAsync: setFileThumbnailNodeAsync == null
          ? null
          : _i5.allowInterop(setFileThumbnailNodeAsync),
      loadAllPagesAsync: loadAllPagesAsync == null
          ? null
          : _i5.allowInterop(loadAllPagesAsync),
      getSlideGrid:
          getSlideGrid == null ? null : _i5.allowInterop(getSlideGrid),
      setSlideGrid:
          setSlideGrid == null ? null : _i5.allowInterop(setSlideGrid),
    );