@cesdk/engine 1.57.0-nightly.20250722 → 1.58.0-nightly.20250730

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -115,7 +115,17 @@ export declare type AnimationTypeLonghand = `//ly.img.ubq/animation/${AnimationT
115
115
  */
116
116
  export declare type AnimationTypeShorthand = 'slide' | 'pan' | 'fade' | 'blur' | 'grow' | 'zoom' | 'pop' | 'wipe' | 'baseline' | 'crop_zoom' | 'spin' | 'spin_loop' | 'fade_loop' | 'blur_loop' | 'pulsating_loop' | 'breathing_loop' | 'jump_loop' | 'squeeze_loop' | 'sway_loop' | 'typewriter_text' | 'block_swipe_text' | 'spread_text' | 'merge_text' | 'ken_burns';
117
117
 
118
- /** @public */
118
+ /**
119
+ * Represents the application MIME types used in the editor.
120
+ *
121
+ * @categoryDescription Application MIME Type
122
+ * Defines the possible application MIME types used in the editor.
123
+ * - 'application/octet-stream': Binary data format.
124
+ * - 'application/pdf': PDF document format.
125
+ * - 'application/zip': ZIP archive format.
126
+ *
127
+ * @public
128
+ */
119
129
  export declare type ApplicationMimeType = Extract<MimeType_2, 'application/octet-stream' | 'application/pdf' | 'application/zip'>;
120
130
 
121
131
  /**
@@ -259,6 +269,13 @@ export declare class AssetAPI {
259
269
  * @param applyAssetToBlock - An optional callback that can be used to override the default behavior of applying an asset result to a given block.
260
270
  */
261
271
  addLocalSource(id: string, supportedMimeTypes?: string[], applyAsset?: (asset: CompleteAssetResult) => Promise<DesignBlockId | undefined>, applyAssetToBlock?: (asset: CompleteAssetResult, block: DesignBlockId) => Promise<void>): void;
272
+ /**
273
+ * Creates a new local asset source from a JSON string containing asset definitions.
274
+ * @param contentJSON - The JSON string containing the asset definitions.
275
+ * @param basePath - An optional base path with which \{\{base_url\}\} strings in the assets should be replaced. If no value is provided, settings.basePath is used.
276
+ * @returns The ID of the newly created asset source or an error if that could not be created.
277
+ */
278
+ addLocalAssetSourceFromJSONString(contentJSON: string, basePath?: string): Promise<string>;
262
279
  /**
263
280
  * Remove a registered asset source.
264
281
  *
@@ -848,13 +865,33 @@ export declare interface AssetResult extends Asset {
848
865
  };
849
866
  }
850
867
 
851
- /** @public */
868
+ /**
869
+ * Represents the credits for an asset result.
870
+ *
871
+ * The `AssetResultCredits` interface provides a set of properties that describe the credits
872
+ * for an asset result, including the name and URL of the credits.
873
+ *
874
+ * @categoryDescription AssetResultCredits
875
+ * Methods for working with the credits of asset results.
876
+ *
877
+ * @public
878
+ */
852
879
  declare interface AssetResultCredits {
853
880
  name: string;
854
881
  url: string;
855
882
  }
856
883
 
857
- /** @public */
884
+ /**
885
+ * Represents the license for an asset result.
886
+ *
887
+ * The `AssetResultLicense` interface provides a set of properties that describe the license
888
+ * for an asset result, including the name and URL of the license.
889
+ *
890
+ * @categoryDescription AssetResultLicense
891
+ * Methods for working with the license of asset results.
892
+ *
893
+ * @public
894
+ */
858
895
  declare interface AssetResultLicense {
859
896
  name: string;
860
897
  url: string;
@@ -979,6 +1016,17 @@ export declare interface AssetStringProperty {
979
1016
  export declare type AssetTransformPreset = AssetFixedAspectRatio | AssetFreeAspectRatio | AssetFixedSize;
980
1017
 
981
1018
  /**
1019
+ * Represents the options for exporting audio.
1020
+ *
1021
+ * @categoryDescription Audio Export Options
1022
+ * Defines the possible options for exporting audio.
1023
+ * - 'mimeType': The MIME type of the output audio file.
1024
+ * - 'onProgress': A callback which reports on the progress of the export.
1025
+ * - 'timeOffset': The time offset in seconds relative to the target block.
1026
+ * - 'duration': The duration in seconds of the final audio.
1027
+ * - 'sampleRate': The sample rate of the exported audio.
1028
+ * - 'numberOfChannels': The number of channels of the exported audio.
1029
+ *
982
1030
  * @public
983
1031
  */
984
1032
  export declare type AudioExportOptions = {
@@ -1018,10 +1066,50 @@ export declare type AudioExportOptions = {
1018
1066
  numberOfChannels?: number;
1019
1067
  };
1020
1068
 
1021
- /** @public */
1069
+ /**
1070
+ * Represents the audio MIME types used in the editor.
1071
+ *
1072
+ * @categoryDescription Audio MIME Type
1073
+ * Defines the possible audio MIME types used in the editor.
1074
+ * - 'audio/wav': WAV audio format.
1075
+ *
1076
+ * @public
1077
+ */
1022
1078
  export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav'>;
1023
1079
 
1024
1080
  /**
1081
+ * Represents the blend mode of a layer or effect.
1082
+ *
1083
+ * @categoryDescription Blend Mode
1084
+ * Defines the possible blend modes for a layer or effect.
1085
+ * - 'PassThrough': The layer or effect is not blended and is rendered as is.
1086
+ * - 'Normal': The layer or effect is blended normally.
1087
+ * - 'Darken': The layer or effect is blended to darken the underlying content.
1088
+ * - 'Multiply': The layer or effect is blended to multiply the underlying content.
1089
+ * - 'ColorBurn': The layer or effect is blended to burn the underlying content.
1090
+ * - 'LinearBurn': The layer or effect is blended to linearly burn the underlying content.
1091
+ * - 'DarkenColor': The layer or effect is blended to darken the underlying content based on color.
1092
+ * - 'Lighten': The layer or effect is blended to lighten the underlying content.
1093
+ * - 'Screen': The layer or effect is blended to screen the underlying content.
1094
+ * - 'ColorDodge': The layer or effect is blended to dodge the underlying content.
1095
+ * - 'LinearDodge': The layer or effect is blended to linearly dodge the underlying content.
1096
+ * - 'LightenColor': The layer or effect is blended to lighten the underlying content based on color.
1097
+ * - 'Overlay': The layer or effect is blended to overlay the underlying content.
1098
+ * - 'SoftLight': The layer or effect is blended to soft light the underlying content.
1099
+ * - 'HardLight': The layer or effect is blended to hard light the underlying content.
1100
+ * - 'VividLight': The layer or effect is blended to vivid light the underlying content.
1101
+ * - 'LinearLight': The layer or effect is blended to linearly light the underlying content.
1102
+ * - 'PinLight': The layer or effect is blended to pin light the underlying content.
1103
+ * - 'HardMix': The layer or effect is blended to hard mix the underlying content.
1104
+ * - 'Difference': The layer or effect is blended to difference the underlying content.
1105
+ * - 'Exclusion': The layer or effect is blended to exclude the underlying content.
1106
+ * - 'Subtract': The layer or effect is blended to subtract the underlying content.
1107
+ * - 'Divide': The layer or effect is blended to divide the underlying content.
1108
+ * - 'Hue': The layer or effect is blended to hue the underlying content.
1109
+ * - 'Saturation': The layer or effect is blended to saturate the underlying content.
1110
+ * - 'Color': The layer or effect is blended to color the underlying content.
1111
+ * - 'Luminosity': The layer or effect is blended to luminosity the underlying content.
1112
+ *
1025
1113
  * @public
1026
1114
  */
1027
1115
  export declare type BlendMode = 'PassThrough' | 'Normal' | 'Darken' | 'Multiply' | 'ColorBurn' | 'LinearBurn' | 'DarkenColor' | 'Lighten' | 'Screen' | 'ColorDodge' | 'LinearDodge' | 'LightenColor' | 'Overlay' | 'SoftLight' | 'HardLight' | 'VividLight' | 'LinearLight' | 'PinLight' | 'HardMix' | 'Difference' | 'Exclusion' | 'Subtract' | 'Divide' | 'Hue' | 'Saturation' | 'Color' | 'Luminosity';
@@ -4924,29 +5012,79 @@ export declare class BlockAPI {
4924
5012
  moveToBackgroundTrack(block: DesignBlockId): void;
4925
5013
  }
4926
5014
 
4927
- /** @public */
5015
+ /**
5016
+ * Represents an event related to a design block.
5017
+ *
5018
+ * The `BlockEvent` interface provides a set of properties that describe an event related to
5019
+ * a design block, including the block ID and the type of event.
5020
+ *
5021
+ * @categoryDescription BlockEvent
5022
+ * Methods for working with events related to design blocks.
5023
+ *
5024
+ * @public
5025
+ */
4928
5026
  export declare interface BlockEvent {
4929
5027
  block: DesignBlockId;
4930
5028
  type: 'Created' | 'Updated' | 'Destroyed';
4931
5029
  }
4932
5030
 
4933
- /** @public Describes the state of the block which affect its rendering. */
5031
+ /**
5032
+ * Represents the state of a design block.
5033
+ *
5034
+ * The `BlockState` type is a union of the `BlockStateError`, `BlockStatePending`, and
5035
+ * `BlockStateReady` interfaces, which describe the possible states of a design block.
5036
+ *
5037
+ * @categoryDescription BlockState
5038
+ * Methods for working with the state of design blocks.
5039
+ *
5040
+ * @public
5041
+ */
4934
5042
  export declare type BlockState = BlockStateError | BlockStatePending | BlockStateReady;
4935
5043
 
4936
- /** @public There's an error preventing rendering. */
5044
+ /**
5045
+ * Represents an error state for a design block.
5046
+ *
5047
+ * The `BlockStateError` interface provides a set of properties that describe an error state
5048
+ * for a design block, including the type of error and a description of the error.
5049
+ *
5050
+ * @categoryDescription BlockStateError
5051
+ * Methods for working with error states for design blocks.
5052
+ *
5053
+ * @public
5054
+ */
4937
5055
  export declare interface BlockStateError {
4938
5056
  type: 'Error';
4939
5057
  error: 'AudioDecoding' | 'ImageDecoding' | 'FileFetch' | 'Unknown' | 'VideoDecoding';
4940
5058
  }
4941
5059
 
4942
- /** @public There is an ongoing operation on the block. Rendering may be affected. */
5060
+ /**
5061
+ * Represents a pending state for a design block.
5062
+ *
5063
+ * The `BlockStatePending` interface provides a set of properties that describe a pending
5064
+ * state for a design block, including the type of state and the progress of the operation.
5065
+ *
5066
+ * @categoryDescription BlockStatePending
5067
+ * Methods for working with pending states for design blocks.
5068
+ *
5069
+ * @public
5070
+ */
4943
5071
  export declare interface BlockStatePending {
4944
5072
  type: 'Pending';
4945
5073
  /** Expected range is [0, 1] */
4946
5074
  progress: number;
4947
5075
  }
4948
5076
 
4949
- /** @public The block is ready to be rendered. */
5077
+ /**
5078
+ * Represents a ready state for a design block.
5079
+ *
5080
+ * The `BlockStateReady` interface provides a set of properties that describe a ready state
5081
+ * for a design block, including the type of state.
5082
+ *
5083
+ * @categoryDescription BlockStateReady
5084
+ * Methods for working with ready states for design blocks.
5085
+ *
5086
+ * @public
5087
+ */
4950
5088
  export declare interface BlockStateReady {
4951
5089
  type: 'Ready';
4952
5090
  }
@@ -4987,13 +5125,30 @@ export declare type BlurTypeLonghand = `//ly.img.ubq/blur/${BlurTypeShorthand}`;
4987
5125
  export declare type BlurTypeShorthand = 'uniform' | 'linear' | 'mirrored' | 'radial';
4988
5126
 
4989
5127
  /**
4990
- * Names of boolean operations.
5128
+ * Represents the names of boolean operations.
5129
+ *
5130
+ * @categoryDescription Boolean Operation
5131
+ * Defines the possible boolean operations.
5132
+ * - 'Difference': The difference between two shapes.
5133
+ * - 'Intersection': The intersection of two shapes.
5134
+ * - 'Union': The union of two shapes.
5135
+ * - 'XOR': The exclusive OR of two shapes.
4991
5136
  *
4992
5137
  * @public
4993
5138
  */
4994
5139
  export declare type BooleanOperation = 'Difference' | 'Intersection' | 'Union' | 'XOR';
4995
5140
 
4996
- /** @public */
5141
+ /**
5142
+ * Represents a buffer of data.
5143
+ *
5144
+ * The `Buffer` interface provides a set of properties that describe a buffer of data,
5145
+ * including a handle and the buffer itself.
5146
+ *
5147
+ * @categoryDescription Buffer
5148
+ * Methods for working with buffers of data.
5149
+ *
5150
+ * @public
5151
+ */
4997
5152
  export declare interface Buffer {
4998
5153
  handle: string;
4999
5154
  buffer: Uint8Array;
@@ -5018,12 +5173,29 @@ export declare function checkVideoExportSupport(): Promise<void>;
5018
5173
  export declare function checkVideoSupport(): void;
5019
5174
 
5020
5175
  /**
5176
+ * Represents a color in the CMYK color space.
5177
+ *
5178
+ * The `CMYK` type is a tuple that contains four numbers representing the cyan, magenta,
5179
+ * yellow, and black components of the color.
5180
+ *
5181
+ * @categoryDescription CMYK
5182
+ * Methods for working with colors in the CMYK color space.
5183
+ *
5021
5184
  * @public
5022
5185
  */
5023
5186
  export declare type CMYK = [c: number, m: number, y: number, k: number];
5024
5187
 
5025
5188
  /**
5026
- * All components between 0 and 1
5189
+ * Represents a CMYK color value.
5190
+ *
5191
+ * @categoryDescription CMYK Color
5192
+ * Defines a CMYK color value with components between 0 and 1.
5193
+ * - 'c': The cyan component.
5194
+ * - 'm': The magenta component.
5195
+ * - 'y': The yellow component.
5196
+ * - 'k': The black component.
5197
+ * - 'tint': The tint factor.
5198
+ *
5027
5199
  * @public
5028
5200
  */
5029
5201
  export declare interface CMYKColor {
@@ -5040,12 +5212,27 @@ export declare interface CMYKColor {
5040
5212
  }
5041
5213
 
5042
5214
  /**
5043
- * A type alias for all color types supported by the engine.
5215
+ * Represents all color types supported by the engine.
5216
+ *
5217
+ * @categoryDescription Color
5218
+ * Defines all color types supported by the engine.
5219
+ * - 'RGBAColor': An RGBA color value.
5220
+ * - 'CMYKColor': A CMYK color value.
5221
+ * - 'SpotColor': A spot color value.
5222
+ *
5044
5223
  * @public
5045
5224
  */
5046
5225
  export declare type Color = RGBAColor | CMYKColor | SpotColor;
5047
5226
 
5048
5227
  /**
5228
+ * Represents the color space used in the editor.
5229
+ *
5230
+ * @categoryDescription Color Space
5231
+ * Defines the possible color spaces used in the editor.
5232
+ * - 'sRGB': The sRGB color space.
5233
+ * - 'CMYK': The CMYK color space.
5234
+ * - 'SpotColor': The spot color space.
5235
+ *
5049
5236
  * @public
5050
5237
  */
5051
5238
  export declare type ColorSpace = 'sRGB' | 'CMYK' | 'SpotColor';
@@ -5068,7 +5255,19 @@ export declare interface CompleteAssetResult extends AssetResult {
5068
5255
  active: boolean;
5069
5256
  }
5070
5257
 
5071
- /** @public */
5258
+ /**
5259
+ * Specifies the configuration for the Creative Editor SDK.
5260
+ *
5261
+ * The `Configuration` interface provides a set of properties that control the behavior
5262
+ * and settings of the editor. These options include settings for the base URL, license,
5263
+ * user ID, core settings, logger, feature flags, presets, force WebGL1, audio output,
5264
+ * and role.
5265
+ *
5266
+ * @categoryDescription Configuration
5267
+ * Methods for configuring the settings of the Creative Editor SDK.
5268
+ *
5269
+ * @public
5270
+ */
5072
5271
  export declare interface Configuration {
5073
5272
  baseURL: string;
5074
5273
  license: string;
@@ -5111,9 +5310,14 @@ export declare interface Configuration {
5111
5310
  }
5112
5311
 
5113
5312
  /**
5114
- * - Crop: Manual crop.
5115
- * - Cover: Automatically cover the entire frame.
5116
- * - Contain: Automatically contain content inside frame.
5313
+ * Represents the mode for filling content within a block.
5314
+ *
5315
+ * The `ContentFillMode` type provides a set of values that control the mode for
5316
+ * filling content within a block. These options include settings for cropping,
5317
+ * covering, and containing the content.
5318
+ *
5319
+ * @categoryDescription ContentFillMode
5320
+ * Methods for configuring the mode for filling content within a block.
5117
5321
  *
5118
5322
  * @public
5119
5323
  */
@@ -5141,9 +5345,6 @@ export declare type CreateSceneOptions = {
5141
5345
  * It provides APIs to directly interact with assets, blocks, scenes, and variables. These APIs can be used in a headless environment
5142
5346
  * to build and manipulate designs programmatically, or in a browser to create interactive applications.
5143
5347
  *
5144
- * @categoryDescription Core APIs
5145
- * Primary interfaces for working with assets, blocks, scenes, variables, editing, and events.
5146
- *
5147
5348
  * @categoryDescription Engine Management
5148
5349
  * Methods for initializing, configuring, and managing the engine lifecycle.
5149
5350
  *
@@ -5336,16 +5537,49 @@ export declare interface CursorEvent extends CustomEvent<string> {
5336
5537
  }
5337
5538
 
5338
5539
  /**
5540
+ * Represents the operation performed on a cutout.
5541
+ *
5542
+ * @categoryDescription Cutout Operation
5543
+ * Defines the possible operations for a cutout.
5544
+ * - 'Difference': The difference between two shapes.
5545
+ * - 'Intersection': The intersection of two shapes.
5546
+ * - 'Union': The union of two shapes.
5547
+ * - 'XOR': The exclusive OR of two shapes.
5548
+ *
5339
5549
  * @public
5340
5550
  */
5341
5551
  export declare type CutoutOperation = 'Difference' | 'Intersection' | 'Union' | 'XOR';
5342
5552
 
5343
5553
  /**
5554
+ * Represents the type of a cutout.
5555
+ *
5556
+ * @categoryDescription Cutout Type
5557
+ * Defines the possible types for a cutout.
5558
+ * - 'Solid': A solid cutout.
5559
+ * - 'Dashed': A dashed cutout.
5560
+ *
5344
5561
  * @public
5345
5562
  */
5346
5563
  export declare type CutoutType = 'Solid' | 'Dashed';
5347
5564
 
5348
5565
  /**
5566
+ * Represents the default asset source IDs used in the editor.
5567
+ *
5568
+ * @categoryDescription Default Asset Source ID
5569
+ * Defines the possible default asset source IDs used in the editor.
5570
+ * - 'ly.img.sticker': Asset source for stickers.
5571
+ * - 'ly.img.vectorpath': Asset source for vector paths.
5572
+ * - 'ly.img.colors.defaultPalette': Asset source for the default color palette.
5573
+ * - 'ly.img.filter.lut': Asset source for LUT filters.
5574
+ * - 'ly.img.filter.duotone': Asset source for duotone filters.
5575
+ * - 'ly.img.effect': Asset source for effects.
5576
+ * - 'ly.img.blur': Asset source for blur effects.
5577
+ * - 'ly.img.typeface': Asset source for typefaces.
5578
+ * - 'ly.img.page.presets': Asset source for page presets.
5579
+ * - 'ly.img.page.presets.video': Asset source for video page presets.
5580
+ * - 'ly.img.crop.presets': Asset source for crop presets.
5581
+ * - 'ly.img.captionPresets': Asset source for caption presets.
5582
+ *
5349
5583
  * @public
5350
5584
  */
5351
5585
  export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath' | 'ly.img.colors.defaultPalette' | 'ly.img.filter.lut' | 'ly.img.filter.duotone' | 'ly.img.effect' | 'ly.img.blur' | 'ly.img.typeface' | 'ly.img.page.presets' | 'ly.img.page.presets.video' | 'ly.img.crop.presets' | 'ly.img.captionPresets';
@@ -5354,6 +5588,20 @@ export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath
5354
5588
  export declare function defaultLogger(message: string, level?: LogLevel): void;
5355
5589
 
5356
5590
  /**
5591
+ * Represents the default demo asset source IDs used in the editor.
5592
+ *
5593
+ * @categoryDescription Default Demo Asset Source ID
5594
+ * Defines the possible default demo asset source IDs used in the editor.
5595
+ * - 'ly.img.template': Asset source for templates.
5596
+ * - 'ly.img.image.upload': Asset source for uploading images.
5597
+ * - 'ly.img.video.upload': Asset source for uploading videos.
5598
+ * - 'ly.img.audio.upload': Asset source for uploading audio.
5599
+ * - 'ly.img.image': Asset source for images.
5600
+ * - 'ly.img.video': Asset source for videos.
5601
+ * - 'ly.img.video.template': Asset source for video templates.
5602
+ * - 'ly.img.audio': Asset source for audio.
5603
+ * - 'ly.img.textComponents': Asset source for text components.
5604
+ *
5357
5605
  * @public
5358
5606
  */
5359
5607
  export declare type DemoAssetSourceId = 'ly.img.template' | 'ly.img.image.upload' | 'ly.img.video.upload' | 'ly.img.audio.upload' | 'ly.img.image' | 'ly.img.video' | 'ly.img.video.template' | 'ly.img.audio' | 'ly.img.textComponents';
@@ -5415,7 +5663,20 @@ export declare type DropShadowOptions = {
5415
5663
  };
5416
5664
  };
5417
5665
 
5418
- /** @public */
5666
+ /**
5667
+ * Represents the current edit mode of the editor.
5668
+ *
5669
+ * @categoryDescription Edit Mode
5670
+ * Defines the possible edit modes of the editor.
5671
+ * - 'Transform': The mode for transforming blocks (e.g., resizing, rotating).
5672
+ * - 'Crop': The mode for cropping images.
5673
+ * - 'Text': The mode for editing text.
5674
+ * - 'Playback': The mode for playing back animations or videos.
5675
+ * - 'Trim': The mode for trimming video or audio.
5676
+ * - 'Custom': A custom edit mode defined by the user.
5677
+ *
5678
+ * @public
5679
+ */
5419
5680
  export declare type EditMode = 'Transform' | 'Crop' | 'Text' | 'Playback' | 'Trim' | (string & {});
5420
5681
 
5421
5682
  /**
@@ -6210,14 +6471,32 @@ export declare type EffectTypeLonghand = `//ly.img.ubq/effect/${EffectTypeShorth
6210
6471
  */
6211
6472
  export declare type EffectTypeShorthand = 'adjustments' | 'cross_cut' | 'dot_pattern' | 'duotone_filter' | 'extrude_blur' | 'glow' | 'green_screen' | 'half_tone' | 'linocut' | 'liquid' | 'lut_filter' | 'mirror' | 'outliner' | 'pixelize' | 'posterize' | 'radial_pixel' | 'recolor' | 'sharpie' | 'shifter' | 'tilt_shift' | 'tv_glitch' | 'vignette';
6212
6473
 
6213
- /** @public */
6474
+ /**
6475
+ * Represents an engine plugin.
6476
+ *
6477
+ * @categoryDescription Engine Plugin
6478
+ * Defines the structure of an engine plugin, including its name, version, and initialization function.
6479
+ * - 'name': The name of the plugin.
6480
+ * - 'version': The version of the plugin.
6481
+ * - 'initialize': The function to initialize the plugin with the provided context.
6482
+ *
6483
+ * @public
6484
+ */
6214
6485
  export declare interface EnginePlugin {
6215
6486
  name: string;
6216
6487
  version: string;
6217
6488
  initialize: (context: EnginePluginContext) => void;
6218
6489
  }
6219
6490
 
6220
- /** @public */
6491
+ /**
6492
+ * Represents the context for an engine plugin.
6493
+ *
6494
+ * @categoryDescription Engine Plugin Context
6495
+ * Defines the context provided to an engine plugin, including APIs for assets, blocks, scenes, editor, events, and variables.
6496
+ * - 'engine': The engine instance containing APIs for asset, block, scene, editor, event, and variable management.
6497
+ *
6498
+ * @public
6499
+ */
6221
6500
  export declare type EnginePluginContext = {
6222
6501
  engine: {
6223
6502
  asset: AssetAPI;
@@ -6254,13 +6533,41 @@ export declare class EventAPI {
6254
6533
  subscribe: (blocks: DesignBlockId[], callback: (events: BlockEvent[]) => void) => (() => void);
6255
6534
  }
6256
6535
 
6257
- /** @public */
6536
+ /**
6537
+ * Specifies options for exporting audio design blocks to various formats.
6538
+ *
6539
+ * The `ExportAudioOptions` interface provides a set of properties that control the
6540
+ * behavior and quality of the exported audio content. These options include settings
6541
+ * for sample rate and number of channels.
6542
+ *
6543
+ * @categoryDescription Export Audio Options
6544
+ * Methods for configuring export settings for audio design blocks.
6545
+ *
6546
+ * @public
6547
+ */
6258
6548
  declare interface ExportAudioOptions {
6259
6549
  sampleRate: number;
6260
6550
  numberOfChannels: number;
6261
6551
  }
6262
6552
 
6263
6553
  /**
6554
+ * Represents the options for exporting a design block.
6555
+ *
6556
+ * @categoryDescription Export Options
6557
+ * Defines the possible options for exporting a design block.
6558
+ * - 'mimeType': The MIME type of the output file.
6559
+ * - 'pngCompressionLevel': The PNG compression level to use, when exporting to PNG.
6560
+ * - 'jpegQuality': The JPEG quality to use when encoding to JPEG.
6561
+ * - 'webpQuality': The WebP quality to use when encoding to WebP.
6562
+ * - 'targetWidth': An optional target width used in conjunction with target height.
6563
+ * - 'targetHeight': An optional target height used in conjunction with target width.
6564
+ * - 'exportPdfWithHighCompatibility': Export the PDF document with a higher compatibility to different PDF
6565
+ viewers.
6566
+ * - 'exportPdfWithUnderlayer': Export the PDF document with an underlayer.
6567
+ * - 'underlayerSpotColorName': The name of the spot color to be used for the underlayer's fill.
6568
+ * - 'underlayerOffset': The adjustment in size of the shape of the underlayer.
6569
+ * - 'abortSignal': An abort signal that can be used to cancel the export.
6570
+ *
6264
6571
  * @public
6265
6572
  */
6266
6573
  export declare type ExportOptions = {
@@ -6332,7 +6639,19 @@ export declare type ExportOptions = {
6332
6639
  abortSignal?: AbortSignal;
6333
6640
  };
6334
6641
 
6335
- /** @public */
6642
+ /**
6643
+ * Specifies options for exporting design blocks to various formats.
6644
+ *
6645
+ * The `ExportOptions` interface provides a set of properties that control the
6646
+ * behavior and quality of the exported content. These options include settings
6647
+ * for JPEG, WebP, PNG, and PDF exports, as well as options for resizing and
6648
+ * adding underlayers.
6649
+ *
6650
+ * @categoryDescription Export Options
6651
+ * Methods for configuring export settings for design blocks.
6652
+ *
6653
+ * @public
6654
+ */
6336
6655
  declare interface ExportOptions_2 {
6337
6656
  jpegQuality: number;
6338
6657
  webpQuality: number;
@@ -6346,7 +6665,18 @@ declare interface ExportOptions_2 {
6346
6665
  underlayerOffset: number;
6347
6666
  }
6348
6667
 
6349
- /** @public */
6668
+ /**
6669
+ * Specifies options for exporting video design blocks to various formats.
6670
+ *
6671
+ * The `ExportVideoOptions` interface provides a set of properties that control the
6672
+ * behavior and quality of the exported video content. These options include settings
6673
+ * for H.264 profile, level, framerate, video bitrate, audio bitrate, and resizing.
6674
+ *
6675
+ * @categoryDescription Export Video Options
6676
+ * Methods for configuring export settings for video design blocks.
6677
+ *
6678
+ * @public
6679
+ */
6350
6680
  declare interface ExportVideoOptions {
6351
6681
  h264Profile: number;
6352
6682
  h264Level: number;
@@ -6380,7 +6710,19 @@ export declare type FillTypeLonghand = `//ly.img.ubq/fill/${FillTypeShorthand}`;
6380
6710
  */
6381
6711
  export declare type FillTypeShorthand = 'color' | 'gradient/linear' | 'gradient/radial' | 'gradient/conical' | 'image' | 'video' | 'pixelStream';
6382
6712
 
6383
- /** @public */
6713
+ /**
6714
+ * Represents a query for finding assets.
6715
+ *
6716
+ * The `FindAssetsQuery` interface provides a set of properties that describe a query for finding
6717
+ * assets, including the number of assets per page, the page number, the query string, the tags,
6718
+ * the groups, the excluded groups, the locale, the sorting order, the sort key, and whether to
6719
+ * sort active assets first.
6720
+ *
6721
+ * @categoryDescription FindAssetsQuery
6722
+ * Methods for working with queries for finding assets.
6723
+ *
6724
+ * @public
6725
+ */
6384
6726
  declare interface FindAssetsQuery {
6385
6727
  perPage: number;
6386
6728
  page: number;
@@ -6394,13 +6736,33 @@ declare interface FindAssetsQuery {
6394
6736
  sortActiveFirst: boolean;
6395
6737
  }
6396
6738
 
6397
- /** @public */
6739
+ /**
6740
+ * Specifies the horizontal and vertical flip states of a design block.
6741
+ *
6742
+ * The `Flip` interface provides a set of properties that indicate whether the design block
6743
+ * is flipped horizontally or vertically.
6744
+ *
6745
+ * @categoryDescription Flip
6746
+ * Methods for configuring the flip states of a design block.
6747
+ *
6748
+ * @public
6749
+ */
6398
6750
  declare interface Flip {
6399
6751
  horizontal: boolean;
6400
6752
  vertical: boolean;
6401
6753
  }
6402
6754
 
6403
- /** @public */
6755
+ /**
6756
+ * Represents a font.
6757
+ *
6758
+ * The Font interface defines the structure of a font within the Creative Editor SDK.
6759
+ * It includes properties for the uri, subFamily, weight, and style.
6760
+ *
6761
+ * @categoryDescription Fonts
6762
+ * Methods for managing fonts within the editor.
6763
+ *
6764
+ * @public
6765
+ */
6404
6766
  export declare interface Font {
6405
6767
  uri: string;
6406
6768
  subFamily: string;
@@ -6408,13 +6770,42 @@ export declare interface Font {
6408
6770
  style?: FontStyle;
6409
6771
  }
6410
6772
 
6411
- /** @public */
6773
+ /**
6774
+ * Represents the style of a font.
6775
+ *
6776
+ * The FontStyle type defines the possible styles of a font within the Creative Editor SDK.
6777
+ * Each style corresponds to a different appearance, allowing for flexibility in how fonts are styled.
6778
+ *
6779
+ * @categoryDescription Fonts
6780
+ * Methods for managing font styles within the editor.
6781
+ *
6782
+ * @public
6783
+ */
6412
6784
  export declare type FontStyle = 'normal' | 'italic';
6413
6785
 
6414
- /** @public */
6786
+ /**
6787
+ * Represents the weight of a font.
6788
+ *
6789
+ * The FontWeight type defines the possible weights of a font within the Creative Editor SDK.
6790
+ * Each weight corresponds to a different thickness, allowing for flexibility in how fonts are styled.
6791
+ *
6792
+ * @categoryDescription Fonts
6793
+ * Methods for managing font weights within the editor.
6794
+ *
6795
+ * @public
6796
+ */
6415
6797
  export declare type FontWeight = 'thin' | 'extraLight' | 'light' | 'normal' | 'medium' | 'semiBold' | 'bold' | 'extraBold' | 'heavy';
6416
6798
 
6417
- /** @public */
6799
+ /**
6800
+ * Represents a gradient color stop.
6801
+ *
6802
+ * @categoryDescription Gradient Color Stop
6803
+ * Defines a gradient color stop with a color and a stop position.
6804
+ * - 'color': The color value.
6805
+ * - 'stop': The relative position of the color within the gradient in the range [0, 1].
6806
+ *
6807
+ * @public
6808
+ */
6418
6809
  export declare interface GradientColorStop {
6419
6810
  /** A color value within a gradient. */
6420
6811
  color: Color;
@@ -6423,6 +6814,14 @@ export declare interface GradientColorStop {
6423
6814
  }
6424
6815
 
6425
6816
  /**
6817
+ * Represents a gradient stop in the RGBA color space.
6818
+ *
6819
+ * The `GradientstopRGBA` type is a tuple that contains five numbers representing the stop
6820
+ * position and the red, green, blue, and alpha components of the color.
6821
+ *
6822
+ * @categoryDescription GradientstopRGBA
6823
+ * Methods for working with gradient stops in the RGBA color space.
6824
+ *
6426
6825
  * @public
6427
6826
  */
6428
6827
  export declare type GradientstopRGBA = [
@@ -6434,8 +6833,13 @@ a: number
6434
6833
  ];
6435
6834
 
6436
6835
  /**
6437
- * A hexadecimal color value (RGB or RGBA) that starts with a '#'
6438
- * @example #6686FF or #6686FFFF
6836
+ * Represents a hexadecimal color value (RGB or RGBA) that starts with a '#'.
6837
+ *
6838
+ * @categoryDescription Hex Color String
6839
+ * Defines a hexadecimal color value that starts with a '#'.
6840
+ * - '#6686FF': A hexadecimal color value for RGB.
6841
+ * - '#6686FFFF': A hexadecimal color value for RGBA.
6842
+ *
6439
6843
  * @public
6440
6844
  */
6441
6845
  export declare type HexColorString = string;
@@ -6447,9 +6851,14 @@ export declare type HexColorString = string;
6447
6851
  export declare type HistoryId = number;
6448
6852
 
6449
6853
  /**
6450
- * - Left: The blocks get left aligned.
6451
- * - Right: The blocks get right aligned.
6452
- * - Center: The blocks get center aligned.
6854
+ * Represents the horizontal alignment of blocks.
6855
+ *
6856
+ * The `HorizontalBlockAlignment` type provides a set of values that control the
6857
+ * horizontal alignment of blocks. These options include settings for aligning
6858
+ * blocks to the left, right, or center.
6859
+ *
6860
+ * @categoryDescription HorizontalBlockAlignment
6861
+ * Methods for configuring the horizontal alignment of blocks.
6453
6862
  *
6454
6863
  * @public
6455
6864
  */
@@ -6488,23 +6897,46 @@ export declare interface HTMLCreativeEngineCanvasElement extends HTMLElement {
6488
6897
  clear(): void;
6489
6898
  }
6490
6899
 
6491
- /** @public */
6900
+ /**
6901
+ * Represents the image MIME types used in the editor.
6902
+ *
6903
+ * @categoryDescription Image MIME Type
6904
+ * Defines the possible image MIME types used in the editor.
6905
+ * - 'image/png': PNG image format.
6906
+ * - 'image/jpeg': JPEG image format.
6907
+ * - 'image/webp': WebP image format.
6908
+ * - 'image/x-tga': TGA image format.
6909
+ *
6910
+ * @public
6911
+ */
6492
6912
  export declare type ImageMimeType = Extract<MimeType_2, 'image/png' | 'image/jpeg' | 'image/webp' | 'image/x-tga'>;
6493
6913
 
6494
6914
  /**
6495
- * Type guard for {@link CMYKColor}
6915
+ * Type guard for {@link CMYKColor}.
6916
+ *
6917
+ * @categoryDescription Type Guard
6918
+ * Defines a type guard for CMYKColor.
6919
+ *
6496
6920
  * @public
6497
6921
  */
6498
6922
  export declare function isCMYKColor(color: Color): color is CMYKColor;
6499
6923
 
6500
6924
  /**
6501
- * Type guard for {@link RGBAColor}
6925
+ * Type guard for {@link RGBAColor}.
6926
+ *
6927
+ * @categoryDescription Type Guard
6928
+ * Defines a type guard for RGBAColor.
6929
+ *
6502
6930
  * @public
6503
6931
  */
6504
6932
  export declare function isRGBAColor(color: Color): color is RGBAColor;
6505
6933
 
6506
6934
  /**
6507
- * Type guard for {@link SpotColor}
6935
+ * Type guard for {@link SpotColor}.
6936
+ *
6937
+ * @categoryDescription Type Guard
6938
+ * Defines a type guard for SpotColor.
6939
+ *
6508
6940
  * @public
6509
6941
  */
6510
6942
  export declare function isSpotColor(color: Color): color is SpotColor;
@@ -6515,15 +6947,45 @@ export declare function isSpotColor(color: Color): color is SpotColor;
6515
6947
  */
6516
6948
  declare type Locale = string;
6517
6949
 
6518
- /** @public */
6950
+ /**
6951
+ * Represents a logger function.
6952
+ *
6953
+ * The Logger interface defines the structure of a logger function within the Creative Editor SDK.
6954
+ * It includes a method for logging messages with an optional log level.
6955
+ *
6956
+ * @categoryDescription Logging
6957
+ * Methods for managing logging within the editor.
6958
+ *
6959
+ * @public
6960
+ */
6519
6961
  export declare interface Logger {
6520
6962
  (message: string, level?: LogLevel): void;
6521
6963
  }
6522
6964
 
6523
- /** @public */
6965
+ /**
6966
+ * Provides logging functionality for the Creative Editor SDK.
6967
+ *
6968
+ * The `Logger` interface and associated types define a standardized way to log messages
6969
+ * at different severity levels within the SDK. This allows developers to track the
6970
+ * behavior of the editor, diagnose issues, and understand the flow of operations.
6971
+ *
6972
+ * @categoryDescription Logging
6973
+ * Methods for managing logging within the editor.
6974
+ *
6975
+ * @public
6976
+ */
6524
6977
  export declare type LogLevel = 'Info' | 'Warning' | 'Error';
6525
6978
 
6526
6979
  /**
6980
+ * Provides a set of predefined log levels for the Creative Editor SDK.
6981
+ *
6982
+ * The `LogLevel` object contains constants representing different severity levels
6983
+ * for logging messages. These levels can be used to categorize log messages based
6984
+ * on their importance and urgency.
6985
+ *
6986
+ * @categoryDescription Logging
6987
+ * Methods for managing logging within the editor.
6988
+ *
6527
6989
  * @public
6528
6990
  * @deprecated Specifying log levels via `LogLevel.Info` has been deprecated.
6529
6991
  * Please use the desired LogLevel string directly.
@@ -6535,9 +6997,24 @@ export declare const LogLevel: {
6535
6997
  };
6536
6998
 
6537
6999
  /**
7000
+ * Represents the MIME types used in the editor.
7001
+ *
7002
+ * @categoryDescription MIME Type
7003
+ * Defines the possible MIME types used in the editor.
7004
+ * - 'image/png': PNG image format.
7005
+ * - 'image/jpeg': JPEG image format.
7006
+ * - 'image/webp': WebP image format.
7007
+ * - 'image/x-tga': TGA image format.
7008
+ * - 'audio/wav': WAV audio format.
7009
+ * - 'video/mp4': MP4 video format.
7010
+ * - 'video/quicktime': QuickTime video format.
7011
+ * - 'application/octet-stream': Binary data format.
7012
+ * - 'application/pdf': PDF document format.
7013
+ * - 'application/zip': ZIP archive format.
7014
+ *
6538
7015
  * @public
6539
- * @deprecated Use The `MimeType` string literal types instead.
6540
- * */
7016
+ * @deprecated Use the `MimeType` string literal types instead.
7017
+ */
6541
7018
  declare const MimeType_2: {
6542
7019
  readonly Png: "image/png";
6543
7020
  readonly Jpeg: "image/jpeg";
@@ -6551,7 +7028,24 @@ declare const MimeType_2: {
6551
7028
  readonly Zip: "application/zip";
6552
7029
  };
6553
7030
 
6554
- /** @public */
7031
+ /**
7032
+ * Represents the MIME types used in the editor.
7033
+ *
7034
+ * @categoryDescription MIME Type
7035
+ * Defines the possible MIME types used in the editor.
7036
+ * - 'image/png': PNG image format.
7037
+ * - 'image/jpeg': JPEG image format.
7038
+ * - 'image/webp': WebP image format.
7039
+ * - 'image/x-tga': TGA image format.
7040
+ * - 'audio/wav': WAV audio format.
7041
+ * - 'video/mp4': MP4 video format.
7042
+ * - 'video/quicktime': QuickTime video format.
7043
+ * - 'application/octet-stream': Binary data format.
7044
+ * - 'application/pdf': PDF document format.
7045
+ * - 'application/zip': ZIP archive format.
7046
+ *
7047
+ * @public
7048
+ */
6555
7049
  declare type MimeType_2 = (typeof MimeType_2)[keyof typeof MimeType_2];
6556
7050
  export { MimeType_2 as MimeType }
6557
7051
 
@@ -6596,22 +7090,43 @@ export declare interface PageDuration {
6596
7090
  }
6597
7091
 
6598
7092
  /**
6599
- * A color definition for the custom color palette.
6600
- * The RGB and CMYK components must all be specified in the range [0-1].
7093
+ * Represents a color definition for the custom color palette.
7094
+ *
7095
+ * @categoryDescription Palette Color
7096
+ * Defines a color definition for the custom color palette.
7097
+ * - 'HexColorString': A hexadecimal color value.
7098
+ * - 'RGBColor': An RGB color value.
7099
+ * - 'RGBAColor': An RGBA color value.
7100
+ * - 'SpotColor': A spot color value.
7101
+ *
6601
7102
  * @public
6602
7103
  */
6603
7104
  export declare type PaletteColor = HexColorString | RGBColor | RGBAColor | SpotColor;
6604
7105
 
6605
7106
  /**
6606
- * - Absolute: Position in absolute design units.
6607
- * - Percent: Position in relation to the block's parent's size in percent, where 1.0 means 100%.
6608
- * - Auto: Position is automatically determined
7107
+ * Represents the mode for positioning blocks.
7108
+ *
7109
+ * The `PositionMode` type provides a set of values that control the mode for
7110
+ * positioning blocks. These options include settings for absolute positioning,
7111
+ * percentage-based positioning, and automatic positioning.
7112
+ *
7113
+ * @categoryDescription PositionMode
7114
+ * Methods for configuring the mode for positioning blocks.
6609
7115
  *
6610
7116
  * @public
6611
7117
  */
6612
7118
  export declare type PositionMode = 'Absolute' | 'Percent' | 'Auto';
6613
7119
 
6614
- /** @public */
7120
+ /**
7121
+ * Represents the various types of properties that can be associated with design blocks.
7122
+ * Each type corresponds to a different kind of data that can be used to define the properties
7123
+ * of a design block within the system.
7124
+ *
7125
+ * @categoryDescription Property Types
7126
+ * Defines the different types of properties that can be used to describe design blocks.
7127
+ *
7128
+ * @public
7129
+ */
6615
7130
  export declare type PropertyType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum' | 'Struct' | 'Double' | 'SourceSet';
6616
7131
 
6617
7132
  /**
@@ -6710,12 +7225,28 @@ export declare interface RefocusEvent extends CustomEvent<EventTarget | null> {
6710
7225
  }
6711
7226
 
6712
7227
  /**
7228
+ * Represents a color in the RGBA color space.
7229
+ *
7230
+ * The `RGBA` type is a tuple that contains four numbers representing the red, green,
7231
+ * blue, and alpha components of the color.
7232
+ *
7233
+ * @categoryDescription RGBA
7234
+ * Methods for working with colors in the RGBA color space.
7235
+ *
6713
7236
  * @public
6714
7237
  */
6715
7238
  export declare type RGBA = [r: number, g: number, b: number, a: number];
6716
7239
 
6717
7240
  /**
6718
- * All components between 0 and 1
7241
+ * Represents an RGBA color value.
7242
+ *
7243
+ * @categoryDescription RGBA Color
7244
+ * Defines an RGBA color value with components between 0 and 1.
7245
+ * - 'r': The red component.
7246
+ * - 'g': The green component.
7247
+ * - 'b': The blue component.
7248
+ * - 'a': The alpha component.
7249
+ *
6719
7250
  * @public
6720
7251
  */
6721
7252
  export declare interface RGBAColor {
@@ -6730,7 +7261,14 @@ export declare interface RGBAColor {
6730
7261
  }
6731
7262
 
6732
7263
  /**
6733
- * All components between 0 and 1
7264
+ * Represents an RGB color value.
7265
+ *
7266
+ * @categoryDescription RGB Color
7267
+ * Defines an RGB color value with components between 0 and 1.
7268
+ * - 'r': The red component.
7269
+ * - 'g': The green component.
7270
+ * - 'b': The blue component.
7271
+ *
6734
7272
  * @public
6735
7273
  */
6736
7274
  export declare interface RGBColor {
@@ -6742,7 +7280,17 @@ export declare interface RGBColor {
6742
7280
  b: number;
6743
7281
  }
6744
7282
 
6745
- /** @public */
7283
+ /**
7284
+ * Represents a role string.
7285
+ *
7286
+ * The RoleString type defines the possible roles within the Creative Editor SDK.
7287
+ * Each role corresponds to a different level of access and permissions, allowing for flexibility in how users are managed.
7288
+ *
7289
+ * @categoryDescription Roles
7290
+ * Methods for managing roles within the editor.
7291
+ *
7292
+ * @public
7293
+ */
6746
7294
  export declare type RoleString = 'Creator' | 'Adopter' | 'Viewer' | 'Presenter';
6747
7295
 
6748
7296
  /**
@@ -7302,23 +7850,130 @@ export declare type SceneLayout = 'Free' | 'VerticalStack' | 'HorizontalStack' |
7302
7850
  export declare type SceneMode = 'Design' | 'Video';
7303
7851
 
7304
7852
  /**
7853
+ * @public
7854
+ * Represents the various scopes that define the capabilities and permissions
7855
+ * within the Creative Editor SDK. Each scope corresponds to a specific
7856
+ * functionality or action that can be performed within the editor.
7857
+ *
7858
+ * The `Scope` type is used to control access to different features and operations,
7859
+ * allowing for fine-grained control over what actions are permitted.
7860
+ *
7861
+ * @categoryDescription Scopes
7862
+ * Defines the various scopes that control the capabilities and permissions
7863
+ * within the Creative Editor SDK.
7864
+ *
7305
7865
  * @public
7306
7866
  */
7307
7867
  export declare type Scope = 'text/edit' | 'text/character' | 'fill/change' | 'fill/changeType' | 'stroke/change' | 'shape/change' | 'layer/move' | 'layer/resize' | 'layer/rotate' | 'layer/flip' | 'layer/crop' | 'layer/opacity' | 'layer/blendMode' | 'layer/visibility' | 'layer/clipping' | 'appearance/adjustments' | 'appearance/filter' | 'appearance/effect' | 'appearance/blur' | 'appearance/shadow' | 'appearance/animation' | 'lifecycle/destroy' | 'lifecycle/duplicate' | 'editor/add' | 'editor/select';
7308
7868
 
7309
- /** @public */
7310
- export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'features/transformEditsRetainCoverMode' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/moveChildrenWhenCroppingFill' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'useSystemFontFallback' | 'forceSystemEmojis';
7869
+ /**
7870
+ * Represents the boolean settings available in the editor.
7871
+ *
7872
+ * @categoryDescription Boolean Settings
7873
+ * Defines the possible boolean settings in the editor.
7874
+ * - 'controlGizmo/showCropHandles': Show crop handles in the control gizmo.
7875
+ * - 'controlGizmo/showCropScaleHandles': Show crop scale handles in the control gizmo.
7876
+ * - 'controlGizmo/showMoveHandles': Show move handles in the control gizmo.
7877
+ * - 'controlGizmo/showResizeHandles': Show resize handles in the control gizmo.
7878
+ * - 'controlGizmo/showRotateHandles': Show rotate handles in the control gizmo.
7879
+ * - 'controlGizmo/showScaleHandles': Show scale handles in the control gizmo.
7880
+ * - 'doubleClickToCropEnabled': Enable double-click to crop.
7881
+ * - 'features/singlePageModeEnabled': Enable single page mode.
7882
+ * - 'features/pageCarouselEnabled': Enable page carousel.
7883
+ * - 'features/transformEditsRetainCoverMode': Retain cover mode during transform edits.
7884
+ * - 'mouse/enableScroll': Enable mouse scroll.
7885
+ * - 'mouse/enableZoom': Enable mouse zoom.
7886
+ * - 'page/allowCropInteraction': Allow crop interaction on pages.
7887
+ * - 'page/allowMoveInteraction': Allow move interaction on pages.
7888
+ * - 'page/allowResizeInteraction': Allow resize interaction on pages.
7889
+ * - 'page/allowRotateInteraction': Allow rotate interaction on pages.
7890
+ * - 'page/dimOutOfPageAreas': Dim out-of-page areas.
7891
+ * - 'page/restrictResizeInteractionToFixedAspectRatio': Restrict resize interaction to fixed aspect ratio.
7892
+ * - 'page/moveChildrenWhenCroppingFill': Move children when cropping fill.
7893
+ * - 'page/title/appendPageName': Append page name to the title.
7894
+ * - 'page/title/show': Show page title.
7895
+ * - 'page/title/showOnSinglePage': Show page title on single page.
7896
+ * - 'page/title/showPageTitleTemplate': Show page title template.
7897
+ * - 'placeholderControls/showButton': Show button in placeholder controls.
7898
+ * - 'placeholderControls/showOverlay': Show overlay in placeholder controls.
7899
+ * - 'blockAnimations/enabled': Enable block animations.
7900
+ * - 'showBuildVersion': Show build version.
7901
+ * - 'touch/dragStartCanSelect': Allow drag start to select.
7902
+ * - 'touch/singlePointPanning': Enable single-point panning.
7903
+ * - 'useSystemFontFallback': Use system font fallback.
7904
+ * - 'forceSystemEmojis': Force system emojis.
7905
+ *
7906
+ * @public
7907
+ */
7908
+ export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'features/transformEditsRetainCoverMode' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/moveChildrenWhenCroppingFill' | 'page/selectWhenNoBlocksSelected' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'useSystemFontFallback' | 'forceSystemEmojis';
7311
7909
 
7312
- /** @public
7910
+ /**
7911
+ * Represents the color settings available in the editor.
7912
+ *
7913
+ * @categoryDescription Color Settings
7914
+ * Defines the possible color settings in the editor.
7915
+ * - 'borderOutlineColor': The color of the border outline.
7916
+ * - 'clearColor': The clear color.
7917
+ * - 'colorMaskingSettings/maskColor': The color used for masking.
7918
+ * - 'cropOverlayColor': The color of the crop overlay.
7919
+ * - 'errorStateColor': The color indicating an error state.
7920
+ * - 'highlightColor': The highlight color.
7921
+ * - 'page/innerBorderColor': The color of the inner border of the page.
7922
+ * - 'page/marginFillColor': The color of the margin fill.
7923
+ * - 'page/marginFrameColor': The color of the margin frame.
7924
+ * - 'page/outerBorderColor': The color of the outer border of the page.
7925
+ * - 'page/title/color': The color of the page title.
7926
+ * - 'placeholderHighlightColor': The highlight color for placeholders.
7927
+ * - 'progressColor': The color indicating progress.
7928
+ * - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
7929
+ * - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
7930
+ * - 'snappingGuideColor': The color of the snapping guide.
7931
+ * - 'textVariableHighlightColor': The highlight color for text variables.
7932
+ *
7933
+ * @public
7313
7934
  */
7314
7935
  export declare type SettingsColor = 'borderOutlineColor' | 'clearColor' | 'colorMaskingSettings/maskColor' | 'cropOverlayColor' | 'errorStateColor' | 'highlightColor' | 'page/innerBorderColor' | 'page/marginFillColor' | 'page/marginFrameColor' | 'page/outerBorderColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | 'rotationSnappingGuideColor' | 'ruleOfThirdsLineColor' | 'snappingGuideColor' | 'textVariableHighlightColor';
7315
7936
 
7316
- /** @public
7937
+ /**
7938
+ * Represents the color settings available in the editor.
7939
+ *
7940
+ * @categoryDescription Color Settings
7941
+ * Defines the possible color settings in the editor.
7942
+ * - 'borderOutlineColor': The color of the border outline.
7943
+ * - 'clearColor': The clear color.
7944
+ * - 'colorMaskingSettings/maskColor': The color used for masking.
7945
+ * - 'cropOverlayColor': The color of the crop overlay.
7946
+ * - 'errorStateColor': The color indicating an error state.
7947
+ * - 'highlightColor': The highlight color.
7948
+ * - 'page/innerBorderColor': The color of the inner border of the page.
7949
+ * - 'page/marginFillColor': The color of the margin fill.
7950
+ * - 'page/marginFrameColor': The color of the margin frame.
7951
+ * - 'page/outerBorderColor': The color of the outer border of the page.
7952
+ * - 'page/title/color': The color of the page title.
7953
+ * - 'placeholderHighlightColor': The highlight color for placeholders.
7954
+ * - 'progressColor': The color indicating progress.
7955
+ * - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
7956
+ * - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
7957
+ * - 'snappingGuideColor': The color of the snapping guide.
7958
+ * - 'textVariableHighlightColor': The highlight color for text variables.
7959
+ *
7960
+ * @public
7317
7961
  * @deprecated Use SettingsColor instead.
7318
7962
  */
7319
7963
  export declare type SettingsColorRGBA = SettingsColor;
7320
7964
 
7321
- /** @public */
7965
+ /**
7966
+ * Represents the enum settings available in the editor.
7967
+ *
7968
+ * @categoryDescription Enum Settings
7969
+ * Defines the possible enum settings in the editor.
7970
+ * - 'doubleClickSelectionMode': The mode for double-click selection.
7971
+ * - 'touch/pinchAction': The action for pinch gestures.
7972
+ * - 'touch/rotateAction': The action for rotate gestures.
7973
+ * - 'camera/clamping/overshootMode': The mode for camera clamping overshoot.
7974
+ *
7975
+ * @public
7976
+ */
7322
7977
  export declare type SettingsEnum = {
7323
7978
  doubleClickSelectionMode: 'Direct' | 'Hierarchical';
7324
7979
  'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
@@ -7326,13 +7981,50 @@ export declare type SettingsEnum = {
7326
7981
  'camera/clamping/overshootMode': 'Center' | 'Reverse';
7327
7982
  };
7328
7983
 
7329
- /** @public */
7984
+ /**
7985
+ * Represents the float settings available in the editor.
7986
+ *
7987
+ * @categoryDescription Float Settings
7988
+ * Defines the possible float settings in the editor.
7989
+ * - 'controlGizmo/blockScaleDownLimit': The scale down limit for the control gizmo block.
7990
+ * - 'positionSnappingThreshold': The threshold for position snapping.
7991
+ * - 'rotationSnappingThreshold': The threshold for rotation snapping.
7992
+ *
7993
+ * @public
7994
+ */
7330
7995
  export declare type SettingsFloat = 'controlGizmo/blockScaleDownLimit' | 'positionSnappingThreshold' | 'rotationSnappingThreshold';
7331
7996
 
7332
- /** @public */
7997
+ /**
7998
+ * Represents the string settings available in the editor.
7999
+ *
8000
+ * @categoryDescription String Settings
8001
+ * Defines the possible string settings in the editor.
8002
+ * - 'basePath': The base path for resources.
8003
+ * - 'defaultEmojiFontFileUri': The default URI for the emoji font file.
8004
+ * - 'defaultFontFileUri': The default URI for the font file.
8005
+ * - 'license': The license key.
8006
+ * - 'page/title/fontFileUri': The URI for the page title font file.
8007
+ * - 'page/title/separator': The separator for the page title.
8008
+ * - 'fallbackFontUri': The URI for the fallback font.
8009
+ *
8010
+ * @public
8011
+ */
7333
8012
  export declare type SettingsString = 'basePath' | 'defaultEmojiFontFileUri' | 'defaultFontFileUri' | 'license' | 'page/title/fontFileUri' | 'page/title/separator' | 'fallbackFontUri';
7334
8013
 
7335
- /** @public */
8014
+ /**
8015
+ * Represents the type of a setting.
8016
+ *
8017
+ * @categoryDescription Setting Type
8018
+ * Defines the possible types for a setting.
8019
+ * - 'Bool': A boolean setting.
8020
+ * - 'Int': An integer setting.
8021
+ * - 'Float': A float setting.
8022
+ * - 'String': A string setting.
8023
+ * - 'Color': A color setting.
8024
+ * - 'Enum': An enum setting.
8025
+ *
8026
+ * @public
8027
+ */
7336
8028
  export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
7337
8029
 
7338
8030
  /**
@@ -7364,9 +8056,14 @@ export declare interface Size2 {
7364
8056
  }
7365
8057
 
7366
8058
  /**
7367
- * - Absolute: Size in absolute design units.
7368
- * - Percent: Size in relation to the block's parent's size in percent, where 1.0 means 100%.
7369
- * - Auto: Size is automatically determined
8059
+ * Represents the mode for sizing blocks.
8060
+ *
8061
+ * The `SizeMode` type provides a set of values that control the mode for sizing
8062
+ * blocks. These options include settings for absolute sizing, percentage-based
8063
+ * sizing, and automatic sizing.
8064
+ *
8065
+ * @categoryDescription SizeMode
8066
+ * Methods for configuring the mode for sizing blocks.
7370
8067
  *
7371
8068
  * @public
7372
8069
  */
@@ -7389,23 +8086,75 @@ export declare interface Source {
7389
8086
  height: number;
7390
8087
  }
7391
8088
 
7392
- /** @public */
8089
+ /**
8090
+ * Represents a spot color value.
8091
+ *
8092
+ * @categoryDescription Spot Color
8093
+ * Defines a spot color value with a name, tint, and external reference.
8094
+ * - 'name': The name of the spot color.
8095
+ * - 'tint': The tint factor.
8096
+ * - 'externalReference': The external reference of the spot color.
8097
+ *
8098
+ * @public
8099
+ */
7393
8100
  export declare interface SpotColor {
7394
8101
  name: string;
7395
8102
  tint: number;
7396
8103
  externalReference: string;
7397
8104
  }
7398
8105
 
7399
- /** @public */
8106
+ /**
8107
+ * Represents the corner geometry of a stroke.
8108
+ *
8109
+ * @categoryDescription Stroke Corner Geometry
8110
+ * Defines the possible corner geometries for a stroke.
8111
+ * - 'Bevel': A beveled corner.
8112
+ * - 'Miter': A mitered corner.
8113
+ * - 'Round': A rounded corner.
8114
+ *
8115
+ * @public
8116
+ */
7400
8117
  export declare type StrokeCornerGeometry = 'Bevel' | 'Miter' | 'Round';
7401
8118
 
7402
- /** @public */
8119
+ /**
8120
+ * Represents the position of a stroke relative to the shape's boundary.
8121
+ *
8122
+ * @categoryDescription Stroke Position
8123
+ * Defines the possible positions for a stroke relative to the shape's boundary.
8124
+ * - 'Center': The stroke is centered on the shape's boundary.
8125
+ * - 'Inner': The stroke is inside the shape's boundary.
8126
+ * - 'Outer': The stroke is outside the shape's boundary.
8127
+ *
8128
+ * @public
8129
+ */
7403
8130
  export declare type StrokePosition = 'Center' | 'Inner' | 'Outer';
7404
8131
 
7405
- /** @public */
8132
+ /**
8133
+ * Represents the style of a stroke.
8134
+ *
8135
+ * @categoryDescription Stroke Style
8136
+ * Defines the possible styles for a stroke.
8137
+ * - 'Dashed': A dashed line stroke.
8138
+ * - 'DashedRound': A dashed line stroke with rounded ends.
8139
+ * - 'Dotted': A dotted line stroke.
8140
+ * - 'LongDashed': A long dashed line stroke.
8141
+ * - 'LongDashedRound': A long dashed line stroke with rounded ends.
8142
+ * - 'Solid': A solid line stroke.
8143
+ *
8144
+ * @public
8145
+ */
7406
8146
  export declare type StrokeStyle = 'Dashed' | 'DashedRound' | 'Dotted' | 'LongDashed' | 'LongDashedRound' | 'Solid';
7407
8147
 
7408
- /** @public */
8148
+ /**
8149
+ * Represents a subscription to an event.
8150
+ *
8151
+ * The `Subscription` type is a number that uniquely identifies a subscription to an event.
8152
+ *
8153
+ * @categoryDescription Subscription
8154
+ * Methods for working with subscriptions to events.
8155
+ *
8156
+ * @public
8157
+ */
7409
8158
  declare type Subscription = number;
7410
8159
 
7411
8160
  /**
@@ -7436,17 +8185,46 @@ export declare function supportsVideoExport(): Promise<boolean>;
7436
8185
  export declare function supportsWasm(): boolean;
7437
8186
 
7438
8187
  /**
8188
+ * Represents the text case of a text block.
8189
+ *
8190
+ * @categoryDescription Text Case
8191
+ * Defines the possible text cases for a text block.
8192
+ * - 'Normal': The text is in its normal case.
8193
+ * - 'Uppercase': The text is in uppercase.
8194
+ * - 'Lowercase': The text is in lowercase.
8195
+ * - 'Titlecase': The text is in title case.
8196
+ *
7439
8197
  * @public
7440
8198
  */
7441
8199
  export declare type TextCase = 'Normal' | 'Uppercase' | 'Lowercase' | 'Titlecase';
7442
8200
 
7443
- /** @public */
8201
+ /**
8202
+ * Represents a transient resource.
8203
+ *
8204
+ * The `TransientResource` interface provides a set of properties that describe a transient
8205
+ * resource, including a URI and the size of the resource.
8206
+ *
8207
+ * @categoryDescription TransientResource
8208
+ * Methods for working with transient resources.
8209
+ *
8210
+ * @public
8211
+ */
7444
8212
  export declare interface TransientResource {
7445
8213
  uri: string;
7446
8214
  size: number;
7447
8215
  }
7448
8216
 
7449
- /** @public */
8217
+ /**
8218
+ * Represents a typeface.
8219
+ *
8220
+ * The Typeface interface defines the structure of a typeface within the Creative Editor SDK.
8221
+ * It includes properties for the name and fonts.
8222
+ *
8223
+ * @categoryDescription Fonts
8224
+ * Methods for managing typefaces within the editor.
8225
+ *
8226
+ * @public
8227
+ */
7450
8228
  export declare interface Typeface {
7451
8229
  /** The unique name of this typeface */
7452
8230
  name: string;
@@ -7455,7 +8233,16 @@ export declare interface Typeface {
7455
8233
  }
7456
8234
 
7457
8235
  /**
8236
+ * Represents a typeface definition used in the editor.
8237
+ *
7458
8238
  * @deprecated This type definition is not used anymore and will be removed.
8239
+ *
8240
+ * @categoryDescription Typeface Definition
8241
+ * Defines the structure of a typeface definition, including metadata, family name, and font details.
8242
+ * - 'meta': Optional metadata for the typeface, including default status, library, and categories.
8243
+ * - 'family': The name of the typeface family.
8244
+ * - 'fonts': An array of font definitions, each containing a font URL, weight, and style.
8245
+ *
7459
8246
  * @public
7460
8247
  */
7461
8248
  export declare type TypefaceDefinition = {
@@ -7540,9 +8327,14 @@ export declare interface Vec3 {
7540
8327
  }
7541
8328
 
7542
8329
  /**
7543
- * - Top: The blocks get top aligned.
7544
- * - Bottom: The blocks get bottom aligned.
7545
- * - Center: The blocks get center aligned.
8330
+ * Represents the vertical alignment of blocks.
8331
+ *
8332
+ * The `VerticalBlockAlignment` type provides a set of values that control the
8333
+ * vertical alignment of blocks. These options include settings for aligning
8334
+ * blocks to the top, bottom, or center.
8335
+ *
8336
+ * @categoryDescription VerticalBlockAlignment
8337
+ * Methods for configuring the vertical alignment of blocks.
7546
8338
  *
7547
8339
  * @public
7548
8340
  */
@@ -7555,6 +8347,24 @@ export declare type VerticalBlockAlignment = 'Top' | 'Bottom' | 'Center';
7555
8347
  export declare type VerticalTextAlignment = 'Top' | 'Bottom' | 'Center';
7556
8348
 
7557
8349
  /**
8350
+ * Represents the options for exporting a video.
8351
+ *
8352
+ * @categoryDescription Video Export Options
8353
+ * Defines the possible options for exporting a video.
8354
+ * - 'mimeType': The MIME type of the output video file.
8355
+ * - 'onProgress': A callback which reports on the progress of the export.
8356
+ * - 'h264Profile': Determines the encoder feature set and in turn the quality, size and speed of the
8357
+ encoding process.
8358
+ * - 'h264Level': Controls the H.264 encoding level.
8359
+ * - 'videoBitrate': The video bitrate in bits per second.
8360
+ * - 'audioBitrate': The audio bitrate in bits per second.
8361
+ * - 'timeOffset': The time offset in seconds of the scene's timeline from which the video will start.
8362
+ * - 'duration': The duration in seconds of the final video.
8363
+ * - 'framerate': The target framerate of the exported video in Hz.
8364
+ * - 'targetWidth': An optional target width used in conjunction with target height.
8365
+ * - 'targetHeight': An optional target height used in conjunction with target width.
8366
+ * - 'abortSignal': An abort signal that can be used to cancel the export.
8367
+ *
7558
8368
  * @public
7559
8369
  */
7560
8370
  export declare type VideoExportOptions = {
@@ -7628,13 +8438,27 @@ export declare type VideoExportOptions = {
7628
8438
  abortSignal?: AbortSignal;
7629
8439
  };
7630
8440
 
7631
- /** @public */
8441
+ /**
8442
+ * Represents the video MIME types used in the editor.
8443
+ *
8444
+ * @categoryDescription Video MIME Type
8445
+ * Defines the possible video MIME types used in the editor.
8446
+ * - 'video/mp4': MP4 video format.
8447
+ * - 'video/quicktime': QuickTime video format.
8448
+ *
8449
+ * @public
8450
+ */
7632
8451
  export declare type VideoMimeType = Extract<MimeType_2, 'video/mp4' | 'video/quicktime'>;
7633
8452
 
7634
8453
  /**
7635
- * Describes a rectangle on the screen
7636
- * - `x` and `y` indicate the position
7637
- * - `w` and `h` indicate the width and height
8454
+ * Describes a rectangle on the screen.
8455
+ *
8456
+ * The `XYWH` type is a tuple that contains four numbers representing the x and y coordinates
8457
+ * of the top-left corner of the rectangle, as well as the width and height of the rectangle.
8458
+ *
8459
+ * @categoryDescription XYWH
8460
+ * Methods for working with rectangles on the screen.
8461
+ *
7638
8462
  * @public
7639
8463
  */
7640
8464
  export declare type XYWH = [x: number, y: number, w: number, h: number];