@cesdk/engine 1.57.0-nightly.20250722 → 1.57.0-rc.0

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
  */
@@ -5336,16 +5540,49 @@ export declare interface CursorEvent extends CustomEvent<string> {
5336
5540
  }
5337
5541
 
5338
5542
  /**
5543
+ * Represents the operation performed on a cutout.
5544
+ *
5545
+ * @categoryDescription Cutout Operation
5546
+ * Defines the possible operations for a cutout.
5547
+ * - 'Difference': The difference between two shapes.
5548
+ * - 'Intersection': The intersection of two shapes.
5549
+ * - 'Union': The union of two shapes.
5550
+ * - 'XOR': The exclusive OR of two shapes.
5551
+ *
5339
5552
  * @public
5340
5553
  */
5341
5554
  export declare type CutoutOperation = 'Difference' | 'Intersection' | 'Union' | 'XOR';
5342
5555
 
5343
5556
  /**
5557
+ * Represents the type of a cutout.
5558
+ *
5559
+ * @categoryDescription Cutout Type
5560
+ * Defines the possible types for a cutout.
5561
+ * - 'Solid': A solid cutout.
5562
+ * - 'Dashed': A dashed cutout.
5563
+ *
5344
5564
  * @public
5345
5565
  */
5346
5566
  export declare type CutoutType = 'Solid' | 'Dashed';
5347
5567
 
5348
5568
  /**
5569
+ * Represents the default asset source IDs used in the editor.
5570
+ *
5571
+ * @categoryDescription Default Asset Source ID
5572
+ * Defines the possible default asset source IDs used in the editor.
5573
+ * - 'ly.img.sticker': Asset source for stickers.
5574
+ * - 'ly.img.vectorpath': Asset source for vector paths.
5575
+ * - 'ly.img.colors.defaultPalette': Asset source for the default color palette.
5576
+ * - 'ly.img.filter.lut': Asset source for LUT filters.
5577
+ * - 'ly.img.filter.duotone': Asset source for duotone filters.
5578
+ * - 'ly.img.effect': Asset source for effects.
5579
+ * - 'ly.img.blur': Asset source for blur effects.
5580
+ * - 'ly.img.typeface': Asset source for typefaces.
5581
+ * - 'ly.img.page.presets': Asset source for page presets.
5582
+ * - 'ly.img.page.presets.video': Asset source for video page presets.
5583
+ * - 'ly.img.crop.presets': Asset source for crop presets.
5584
+ * - 'ly.img.captionPresets': Asset source for caption presets.
5585
+ *
5349
5586
  * @public
5350
5587
  */
5351
5588
  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 +5591,20 @@ export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath
5354
5591
  export declare function defaultLogger(message: string, level?: LogLevel): void;
5355
5592
 
5356
5593
  /**
5594
+ * Represents the default demo asset source IDs used in the editor.
5595
+ *
5596
+ * @categoryDescription Default Demo Asset Source ID
5597
+ * Defines the possible default demo asset source IDs used in the editor.
5598
+ * - 'ly.img.template': Asset source for templates.
5599
+ * - 'ly.img.image.upload': Asset source for uploading images.
5600
+ * - 'ly.img.video.upload': Asset source for uploading videos.
5601
+ * - 'ly.img.audio.upload': Asset source for uploading audio.
5602
+ * - 'ly.img.image': Asset source for images.
5603
+ * - 'ly.img.video': Asset source for videos.
5604
+ * - 'ly.img.video.template': Asset source for video templates.
5605
+ * - 'ly.img.audio': Asset source for audio.
5606
+ * - 'ly.img.textComponents': Asset source for text components.
5607
+ *
5357
5608
  * @public
5358
5609
  */
5359
5610
  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 +5666,20 @@ export declare type DropShadowOptions = {
5415
5666
  };
5416
5667
  };
5417
5668
 
5418
- /** @public */
5669
+ /**
5670
+ * Represents the current edit mode of the editor.
5671
+ *
5672
+ * @categoryDescription Edit Mode
5673
+ * Defines the possible edit modes of the editor.
5674
+ * - 'Transform': The mode for transforming blocks (e.g., resizing, rotating).
5675
+ * - 'Crop': The mode for cropping images.
5676
+ * - 'Text': The mode for editing text.
5677
+ * - 'Playback': The mode for playing back animations or videos.
5678
+ * - 'Trim': The mode for trimming video or audio.
5679
+ * - 'Custom': A custom edit mode defined by the user.
5680
+ *
5681
+ * @public
5682
+ */
5419
5683
  export declare type EditMode = 'Transform' | 'Crop' | 'Text' | 'Playback' | 'Trim' | (string & {});
5420
5684
 
5421
5685
  /**
@@ -6210,14 +6474,32 @@ export declare type EffectTypeLonghand = `//ly.img.ubq/effect/${EffectTypeShorth
6210
6474
  */
6211
6475
  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
6476
 
6213
- /** @public */
6477
+ /**
6478
+ * Represents an engine plugin.
6479
+ *
6480
+ * @categoryDescription Engine Plugin
6481
+ * Defines the structure of an engine plugin, including its name, version, and initialization function.
6482
+ * - 'name': The name of the plugin.
6483
+ * - 'version': The version of the plugin.
6484
+ * - 'initialize': The function to initialize the plugin with the provided context.
6485
+ *
6486
+ * @public
6487
+ */
6214
6488
  export declare interface EnginePlugin {
6215
6489
  name: string;
6216
6490
  version: string;
6217
6491
  initialize: (context: EnginePluginContext) => void;
6218
6492
  }
6219
6493
 
6220
- /** @public */
6494
+ /**
6495
+ * Represents the context for an engine plugin.
6496
+ *
6497
+ * @categoryDescription Engine Plugin Context
6498
+ * Defines the context provided to an engine plugin, including APIs for assets, blocks, scenes, editor, events, and variables.
6499
+ * - 'engine': The engine instance containing APIs for asset, block, scene, editor, event, and variable management.
6500
+ *
6501
+ * @public
6502
+ */
6221
6503
  export declare type EnginePluginContext = {
6222
6504
  engine: {
6223
6505
  asset: AssetAPI;
@@ -6254,13 +6536,41 @@ export declare class EventAPI {
6254
6536
  subscribe: (blocks: DesignBlockId[], callback: (events: BlockEvent[]) => void) => (() => void);
6255
6537
  }
6256
6538
 
6257
- /** @public */
6539
+ /**
6540
+ * Specifies options for exporting audio design blocks to various formats.
6541
+ *
6542
+ * The `ExportAudioOptions` interface provides a set of properties that control the
6543
+ * behavior and quality of the exported audio content. These options include settings
6544
+ * for sample rate and number of channels.
6545
+ *
6546
+ * @categoryDescription Export Audio Options
6547
+ * Methods for configuring export settings for audio design blocks.
6548
+ *
6549
+ * @public
6550
+ */
6258
6551
  declare interface ExportAudioOptions {
6259
6552
  sampleRate: number;
6260
6553
  numberOfChannels: number;
6261
6554
  }
6262
6555
 
6263
6556
  /**
6557
+ * Represents the options for exporting a design block.
6558
+ *
6559
+ * @categoryDescription Export Options
6560
+ * Defines the possible options for exporting a design block.
6561
+ * - 'mimeType': The MIME type of the output file.
6562
+ * - 'pngCompressionLevel': The PNG compression level to use, when exporting to PNG.
6563
+ * - 'jpegQuality': The JPEG quality to use when encoding to JPEG.
6564
+ * - 'webpQuality': The WebP quality to use when encoding to WebP.
6565
+ * - 'targetWidth': An optional target width used in conjunction with target height.
6566
+ * - 'targetHeight': An optional target height used in conjunction with target width.
6567
+ * - 'exportPdfWithHighCompatibility': Export the PDF document with a higher compatibility to different PDF
6568
+ viewers.
6569
+ * - 'exportPdfWithUnderlayer': Export the PDF document with an underlayer.
6570
+ * - 'underlayerSpotColorName': The name of the spot color to be used for the underlayer's fill.
6571
+ * - 'underlayerOffset': The adjustment in size of the shape of the underlayer.
6572
+ * - 'abortSignal': An abort signal that can be used to cancel the export.
6573
+ *
6264
6574
  * @public
6265
6575
  */
6266
6576
  export declare type ExportOptions = {
@@ -6332,7 +6642,19 @@ export declare type ExportOptions = {
6332
6642
  abortSignal?: AbortSignal;
6333
6643
  };
6334
6644
 
6335
- /** @public */
6645
+ /**
6646
+ * Specifies options for exporting design blocks to various formats.
6647
+ *
6648
+ * The `ExportOptions` interface provides a set of properties that control the
6649
+ * behavior and quality of the exported content. These options include settings
6650
+ * for JPEG, WebP, PNG, and PDF exports, as well as options for resizing and
6651
+ * adding underlayers.
6652
+ *
6653
+ * @categoryDescription Export Options
6654
+ * Methods for configuring export settings for design blocks.
6655
+ *
6656
+ * @public
6657
+ */
6336
6658
  declare interface ExportOptions_2 {
6337
6659
  jpegQuality: number;
6338
6660
  webpQuality: number;
@@ -6346,7 +6668,18 @@ declare interface ExportOptions_2 {
6346
6668
  underlayerOffset: number;
6347
6669
  }
6348
6670
 
6349
- /** @public */
6671
+ /**
6672
+ * Specifies options for exporting video design blocks to various formats.
6673
+ *
6674
+ * The `ExportVideoOptions` interface provides a set of properties that control the
6675
+ * behavior and quality of the exported video content. These options include settings
6676
+ * for H.264 profile, level, framerate, video bitrate, audio bitrate, and resizing.
6677
+ *
6678
+ * @categoryDescription Export Video Options
6679
+ * Methods for configuring export settings for video design blocks.
6680
+ *
6681
+ * @public
6682
+ */
6350
6683
  declare interface ExportVideoOptions {
6351
6684
  h264Profile: number;
6352
6685
  h264Level: number;
@@ -6380,7 +6713,19 @@ export declare type FillTypeLonghand = `//ly.img.ubq/fill/${FillTypeShorthand}`;
6380
6713
  */
6381
6714
  export declare type FillTypeShorthand = 'color' | 'gradient/linear' | 'gradient/radial' | 'gradient/conical' | 'image' | 'video' | 'pixelStream';
6382
6715
 
6383
- /** @public */
6716
+ /**
6717
+ * Represents a query for finding assets.
6718
+ *
6719
+ * The `FindAssetsQuery` interface provides a set of properties that describe a query for finding
6720
+ * assets, including the number of assets per page, the page number, the query string, the tags,
6721
+ * the groups, the excluded groups, the locale, the sorting order, the sort key, and whether to
6722
+ * sort active assets first.
6723
+ *
6724
+ * @categoryDescription FindAssetsQuery
6725
+ * Methods for working with queries for finding assets.
6726
+ *
6727
+ * @public
6728
+ */
6384
6729
  declare interface FindAssetsQuery {
6385
6730
  perPage: number;
6386
6731
  page: number;
@@ -6394,13 +6739,33 @@ declare interface FindAssetsQuery {
6394
6739
  sortActiveFirst: boolean;
6395
6740
  }
6396
6741
 
6397
- /** @public */
6742
+ /**
6743
+ * Specifies the horizontal and vertical flip states of a design block.
6744
+ *
6745
+ * The `Flip` interface provides a set of properties that indicate whether the design block
6746
+ * is flipped horizontally or vertically.
6747
+ *
6748
+ * @categoryDescription Flip
6749
+ * Methods for configuring the flip states of a design block.
6750
+ *
6751
+ * @public
6752
+ */
6398
6753
  declare interface Flip {
6399
6754
  horizontal: boolean;
6400
6755
  vertical: boolean;
6401
6756
  }
6402
6757
 
6403
- /** @public */
6758
+ /**
6759
+ * Represents a font.
6760
+ *
6761
+ * The Font interface defines the structure of a font within the Creative Editor SDK.
6762
+ * It includes properties for the uri, subFamily, weight, and style.
6763
+ *
6764
+ * @categoryDescription Fonts
6765
+ * Methods for managing fonts within the editor.
6766
+ *
6767
+ * @public
6768
+ */
6404
6769
  export declare interface Font {
6405
6770
  uri: string;
6406
6771
  subFamily: string;
@@ -6408,13 +6773,42 @@ export declare interface Font {
6408
6773
  style?: FontStyle;
6409
6774
  }
6410
6775
 
6411
- /** @public */
6776
+ /**
6777
+ * Represents the style of a font.
6778
+ *
6779
+ * The FontStyle type defines the possible styles of a font within the Creative Editor SDK.
6780
+ * Each style corresponds to a different appearance, allowing for flexibility in how fonts are styled.
6781
+ *
6782
+ * @categoryDescription Fonts
6783
+ * Methods for managing font styles within the editor.
6784
+ *
6785
+ * @public
6786
+ */
6412
6787
  export declare type FontStyle = 'normal' | 'italic';
6413
6788
 
6414
- /** @public */
6789
+ /**
6790
+ * Represents the weight of a font.
6791
+ *
6792
+ * The FontWeight type defines the possible weights of a font within the Creative Editor SDK.
6793
+ * Each weight corresponds to a different thickness, allowing for flexibility in how fonts are styled.
6794
+ *
6795
+ * @categoryDescription Fonts
6796
+ * Methods for managing font weights within the editor.
6797
+ *
6798
+ * @public
6799
+ */
6415
6800
  export declare type FontWeight = 'thin' | 'extraLight' | 'light' | 'normal' | 'medium' | 'semiBold' | 'bold' | 'extraBold' | 'heavy';
6416
6801
 
6417
- /** @public */
6802
+ /**
6803
+ * Represents a gradient color stop.
6804
+ *
6805
+ * @categoryDescription Gradient Color Stop
6806
+ * Defines a gradient color stop with a color and a stop position.
6807
+ * - 'color': The color value.
6808
+ * - 'stop': The relative position of the color within the gradient in the range [0, 1].
6809
+ *
6810
+ * @public
6811
+ */
6418
6812
  export declare interface GradientColorStop {
6419
6813
  /** A color value within a gradient. */
6420
6814
  color: Color;
@@ -6423,6 +6817,14 @@ export declare interface GradientColorStop {
6423
6817
  }
6424
6818
 
6425
6819
  /**
6820
+ * Represents a gradient stop in the RGBA color space.
6821
+ *
6822
+ * The `GradientstopRGBA` type is a tuple that contains five numbers representing the stop
6823
+ * position and the red, green, blue, and alpha components of the color.
6824
+ *
6825
+ * @categoryDescription GradientstopRGBA
6826
+ * Methods for working with gradient stops in the RGBA color space.
6827
+ *
6426
6828
  * @public
6427
6829
  */
6428
6830
  export declare type GradientstopRGBA = [
@@ -6434,8 +6836,13 @@ a: number
6434
6836
  ];
6435
6837
 
6436
6838
  /**
6437
- * A hexadecimal color value (RGB or RGBA) that starts with a '#'
6438
- * @example #6686FF or #6686FFFF
6839
+ * Represents a hexadecimal color value (RGB or RGBA) that starts with a '#'.
6840
+ *
6841
+ * @categoryDescription Hex Color String
6842
+ * Defines a hexadecimal color value that starts with a '#'.
6843
+ * - '#6686FF': A hexadecimal color value for RGB.
6844
+ * - '#6686FFFF': A hexadecimal color value for RGBA.
6845
+ *
6439
6846
  * @public
6440
6847
  */
6441
6848
  export declare type HexColorString = string;
@@ -6447,9 +6854,14 @@ export declare type HexColorString = string;
6447
6854
  export declare type HistoryId = number;
6448
6855
 
6449
6856
  /**
6450
- * - Left: The blocks get left aligned.
6451
- * - Right: The blocks get right aligned.
6452
- * - Center: The blocks get center aligned.
6857
+ * Represents the horizontal alignment of blocks.
6858
+ *
6859
+ * The `HorizontalBlockAlignment` type provides a set of values that control the
6860
+ * horizontal alignment of blocks. These options include settings for aligning
6861
+ * blocks to the left, right, or center.
6862
+ *
6863
+ * @categoryDescription HorizontalBlockAlignment
6864
+ * Methods for configuring the horizontal alignment of blocks.
6453
6865
  *
6454
6866
  * @public
6455
6867
  */
@@ -6488,23 +6900,46 @@ export declare interface HTMLCreativeEngineCanvasElement extends HTMLElement {
6488
6900
  clear(): void;
6489
6901
  }
6490
6902
 
6491
- /** @public */
6903
+ /**
6904
+ * Represents the image MIME types used in the editor.
6905
+ *
6906
+ * @categoryDescription Image MIME Type
6907
+ * Defines the possible image MIME types used in the editor.
6908
+ * - 'image/png': PNG image format.
6909
+ * - 'image/jpeg': JPEG image format.
6910
+ * - 'image/webp': WebP image format.
6911
+ * - 'image/x-tga': TGA image format.
6912
+ *
6913
+ * @public
6914
+ */
6492
6915
  export declare type ImageMimeType = Extract<MimeType_2, 'image/png' | 'image/jpeg' | 'image/webp' | 'image/x-tga'>;
6493
6916
 
6494
6917
  /**
6495
- * Type guard for {@link CMYKColor}
6918
+ * Type guard for {@link CMYKColor}.
6919
+ *
6920
+ * @categoryDescription Type Guard
6921
+ * Defines a type guard for CMYKColor.
6922
+ *
6496
6923
  * @public
6497
6924
  */
6498
6925
  export declare function isCMYKColor(color: Color): color is CMYKColor;
6499
6926
 
6500
6927
  /**
6501
- * Type guard for {@link RGBAColor}
6928
+ * Type guard for {@link RGBAColor}.
6929
+ *
6930
+ * @categoryDescription Type Guard
6931
+ * Defines a type guard for RGBAColor.
6932
+ *
6502
6933
  * @public
6503
6934
  */
6504
6935
  export declare function isRGBAColor(color: Color): color is RGBAColor;
6505
6936
 
6506
6937
  /**
6507
- * Type guard for {@link SpotColor}
6938
+ * Type guard for {@link SpotColor}.
6939
+ *
6940
+ * @categoryDescription Type Guard
6941
+ * Defines a type guard for SpotColor.
6942
+ *
6508
6943
  * @public
6509
6944
  */
6510
6945
  export declare function isSpotColor(color: Color): color is SpotColor;
@@ -6515,15 +6950,45 @@ export declare function isSpotColor(color: Color): color is SpotColor;
6515
6950
  */
6516
6951
  declare type Locale = string;
6517
6952
 
6518
- /** @public */
6953
+ /**
6954
+ * Represents a logger function.
6955
+ *
6956
+ * The Logger interface defines the structure of a logger function within the Creative Editor SDK.
6957
+ * It includes a method for logging messages with an optional log level.
6958
+ *
6959
+ * @categoryDescription Logging
6960
+ * Methods for managing logging within the editor.
6961
+ *
6962
+ * @public
6963
+ */
6519
6964
  export declare interface Logger {
6520
6965
  (message: string, level?: LogLevel): void;
6521
6966
  }
6522
6967
 
6523
- /** @public */
6968
+ /**
6969
+ * Provides logging functionality for the Creative Editor SDK.
6970
+ *
6971
+ * The `Logger` interface and associated types define a standardized way to log messages
6972
+ * at different severity levels within the SDK. This allows developers to track the
6973
+ * behavior of the editor, diagnose issues, and understand the flow of operations.
6974
+ *
6975
+ * @categoryDescription Logging
6976
+ * Methods for managing logging within the editor.
6977
+ *
6978
+ * @public
6979
+ */
6524
6980
  export declare type LogLevel = 'Info' | 'Warning' | 'Error';
6525
6981
 
6526
6982
  /**
6983
+ * Provides a set of predefined log levels for the Creative Editor SDK.
6984
+ *
6985
+ * The `LogLevel` object contains constants representing different severity levels
6986
+ * for logging messages. These levels can be used to categorize log messages based
6987
+ * on their importance and urgency.
6988
+ *
6989
+ * @categoryDescription Logging
6990
+ * Methods for managing logging within the editor.
6991
+ *
6527
6992
  * @public
6528
6993
  * @deprecated Specifying log levels via `LogLevel.Info` has been deprecated.
6529
6994
  * Please use the desired LogLevel string directly.
@@ -6535,9 +7000,24 @@ export declare const LogLevel: {
6535
7000
  };
6536
7001
 
6537
7002
  /**
7003
+ * Represents the MIME types used in the editor.
7004
+ *
7005
+ * @categoryDescription MIME Type
7006
+ * Defines the possible MIME types used in the editor.
7007
+ * - 'image/png': PNG image format.
7008
+ * - 'image/jpeg': JPEG image format.
7009
+ * - 'image/webp': WebP image format.
7010
+ * - 'image/x-tga': TGA image format.
7011
+ * - 'audio/wav': WAV audio format.
7012
+ * - 'video/mp4': MP4 video format.
7013
+ * - 'video/quicktime': QuickTime video format.
7014
+ * - 'application/octet-stream': Binary data format.
7015
+ * - 'application/pdf': PDF document format.
7016
+ * - 'application/zip': ZIP archive format.
7017
+ *
6538
7018
  * @public
6539
- * @deprecated Use The `MimeType` string literal types instead.
6540
- * */
7019
+ * @deprecated Use the `MimeType` string literal types instead.
7020
+ */
6541
7021
  declare const MimeType_2: {
6542
7022
  readonly Png: "image/png";
6543
7023
  readonly Jpeg: "image/jpeg";
@@ -6551,7 +7031,24 @@ declare const MimeType_2: {
6551
7031
  readonly Zip: "application/zip";
6552
7032
  };
6553
7033
 
6554
- /** @public */
7034
+ /**
7035
+ * Represents the MIME types used in the editor.
7036
+ *
7037
+ * @categoryDescription MIME Type
7038
+ * Defines the possible MIME types used in the editor.
7039
+ * - 'image/png': PNG image format.
7040
+ * - 'image/jpeg': JPEG image format.
7041
+ * - 'image/webp': WebP image format.
7042
+ * - 'image/x-tga': TGA image format.
7043
+ * - 'audio/wav': WAV audio format.
7044
+ * - 'video/mp4': MP4 video format.
7045
+ * - 'video/quicktime': QuickTime video format.
7046
+ * - 'application/octet-stream': Binary data format.
7047
+ * - 'application/pdf': PDF document format.
7048
+ * - 'application/zip': ZIP archive format.
7049
+ *
7050
+ * @public
7051
+ */
6555
7052
  declare type MimeType_2 = (typeof MimeType_2)[keyof typeof MimeType_2];
6556
7053
  export { MimeType_2 as MimeType }
6557
7054
 
@@ -6596,22 +7093,43 @@ export declare interface PageDuration {
6596
7093
  }
6597
7094
 
6598
7095
  /**
6599
- * A color definition for the custom color palette.
6600
- * The RGB and CMYK components must all be specified in the range [0-1].
7096
+ * Represents a color definition for the custom color palette.
7097
+ *
7098
+ * @categoryDescription Palette Color
7099
+ * Defines a color definition for the custom color palette.
7100
+ * - 'HexColorString': A hexadecimal color value.
7101
+ * - 'RGBColor': An RGB color value.
7102
+ * - 'RGBAColor': An RGBA color value.
7103
+ * - 'SpotColor': A spot color value.
7104
+ *
6601
7105
  * @public
6602
7106
  */
6603
7107
  export declare type PaletteColor = HexColorString | RGBColor | RGBAColor | SpotColor;
6604
7108
 
6605
7109
  /**
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
7110
+ * Represents the mode for positioning blocks.
7111
+ *
7112
+ * The `PositionMode` type provides a set of values that control the mode for
7113
+ * positioning blocks. These options include settings for absolute positioning,
7114
+ * percentage-based positioning, and automatic positioning.
7115
+ *
7116
+ * @categoryDescription PositionMode
7117
+ * Methods for configuring the mode for positioning blocks.
6609
7118
  *
6610
7119
  * @public
6611
7120
  */
6612
7121
  export declare type PositionMode = 'Absolute' | 'Percent' | 'Auto';
6613
7122
 
6614
- /** @public */
7123
+ /**
7124
+ * Represents the various types of properties that can be associated with design blocks.
7125
+ * Each type corresponds to a different kind of data that can be used to define the properties
7126
+ * of a design block within the system.
7127
+ *
7128
+ * @categoryDescription Property Types
7129
+ * Defines the different types of properties that can be used to describe design blocks.
7130
+ *
7131
+ * @public
7132
+ */
6615
7133
  export declare type PropertyType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum' | 'Struct' | 'Double' | 'SourceSet';
6616
7134
 
6617
7135
  /**
@@ -6710,12 +7228,28 @@ export declare interface RefocusEvent extends CustomEvent<EventTarget | null> {
6710
7228
  }
6711
7229
 
6712
7230
  /**
7231
+ * Represents a color in the RGBA color space.
7232
+ *
7233
+ * The `RGBA` type is a tuple that contains four numbers representing the red, green,
7234
+ * blue, and alpha components of the color.
7235
+ *
7236
+ * @categoryDescription RGBA
7237
+ * Methods for working with colors in the RGBA color space.
7238
+ *
6713
7239
  * @public
6714
7240
  */
6715
7241
  export declare type RGBA = [r: number, g: number, b: number, a: number];
6716
7242
 
6717
7243
  /**
6718
- * All components between 0 and 1
7244
+ * Represents an RGBA color value.
7245
+ *
7246
+ * @categoryDescription RGBA Color
7247
+ * Defines an RGBA color value with components between 0 and 1.
7248
+ * - 'r': The red component.
7249
+ * - 'g': The green component.
7250
+ * - 'b': The blue component.
7251
+ * - 'a': The alpha component.
7252
+ *
6719
7253
  * @public
6720
7254
  */
6721
7255
  export declare interface RGBAColor {
@@ -6730,7 +7264,14 @@ export declare interface RGBAColor {
6730
7264
  }
6731
7265
 
6732
7266
  /**
6733
- * All components between 0 and 1
7267
+ * Represents an RGB color value.
7268
+ *
7269
+ * @categoryDescription RGB Color
7270
+ * Defines an RGB color value with components between 0 and 1.
7271
+ * - 'r': The red component.
7272
+ * - 'g': The green component.
7273
+ * - 'b': The blue component.
7274
+ *
6734
7275
  * @public
6735
7276
  */
6736
7277
  export declare interface RGBColor {
@@ -6742,7 +7283,17 @@ export declare interface RGBColor {
6742
7283
  b: number;
6743
7284
  }
6744
7285
 
6745
- /** @public */
7286
+ /**
7287
+ * Represents a role string.
7288
+ *
7289
+ * The RoleString type defines the possible roles within the Creative Editor SDK.
7290
+ * Each role corresponds to a different level of access and permissions, allowing for flexibility in how users are managed.
7291
+ *
7292
+ * @categoryDescription Roles
7293
+ * Methods for managing roles within the editor.
7294
+ *
7295
+ * @public
7296
+ */
6746
7297
  export declare type RoleString = 'Creator' | 'Adopter' | 'Viewer' | 'Presenter';
6747
7298
 
6748
7299
  /**
@@ -7302,23 +7853,130 @@ export declare type SceneLayout = 'Free' | 'VerticalStack' | 'HorizontalStack' |
7302
7853
  export declare type SceneMode = 'Design' | 'Video';
7303
7854
 
7304
7855
  /**
7856
+ * @public
7857
+ * Represents the various scopes that define the capabilities and permissions
7858
+ * within the Creative Editor SDK. Each scope corresponds to a specific
7859
+ * functionality or action that can be performed within the editor.
7860
+ *
7861
+ * The `Scope` type is used to control access to different features and operations,
7862
+ * allowing for fine-grained control over what actions are permitted.
7863
+ *
7864
+ * @categoryDescription Scopes
7865
+ * Defines the various scopes that control the capabilities and permissions
7866
+ * within the Creative Editor SDK.
7867
+ *
7305
7868
  * @public
7306
7869
  */
7307
7870
  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
7871
 
7309
- /** @public */
7872
+ /**
7873
+ * Represents the boolean settings available in the editor.
7874
+ *
7875
+ * @categoryDescription Boolean Settings
7876
+ * Defines the possible boolean settings in the editor.
7877
+ * - 'controlGizmo/showCropHandles': Show crop handles in the control gizmo.
7878
+ * - 'controlGizmo/showCropScaleHandles': Show crop scale handles in the control gizmo.
7879
+ * - 'controlGizmo/showMoveHandles': Show move handles in the control gizmo.
7880
+ * - 'controlGizmo/showResizeHandles': Show resize handles in the control gizmo.
7881
+ * - 'controlGizmo/showRotateHandles': Show rotate handles in the control gizmo.
7882
+ * - 'controlGizmo/showScaleHandles': Show scale handles in the control gizmo.
7883
+ * - 'doubleClickToCropEnabled': Enable double-click to crop.
7884
+ * - 'features/singlePageModeEnabled': Enable single page mode.
7885
+ * - 'features/pageCarouselEnabled': Enable page carousel.
7886
+ * - 'features/transformEditsRetainCoverMode': Retain cover mode during transform edits.
7887
+ * - 'mouse/enableScroll': Enable mouse scroll.
7888
+ * - 'mouse/enableZoom': Enable mouse zoom.
7889
+ * - 'page/allowCropInteraction': Allow crop interaction on pages.
7890
+ * - 'page/allowMoveInteraction': Allow move interaction on pages.
7891
+ * - 'page/allowResizeInteraction': Allow resize interaction on pages.
7892
+ * - 'page/allowRotateInteraction': Allow rotate interaction on pages.
7893
+ * - 'page/dimOutOfPageAreas': Dim out-of-page areas.
7894
+ * - 'page/restrictResizeInteractionToFixedAspectRatio': Restrict resize interaction to fixed aspect ratio.
7895
+ * - 'page/moveChildrenWhenCroppingFill': Move children when cropping fill.
7896
+ * - 'page/title/appendPageName': Append page name to the title.
7897
+ * - 'page/title/show': Show page title.
7898
+ * - 'page/title/showOnSinglePage': Show page title on single page.
7899
+ * - 'page/title/showPageTitleTemplate': Show page title template.
7900
+ * - 'placeholderControls/showButton': Show button in placeholder controls.
7901
+ * - 'placeholderControls/showOverlay': Show overlay in placeholder controls.
7902
+ * - 'blockAnimations/enabled': Enable block animations.
7903
+ * - 'showBuildVersion': Show build version.
7904
+ * - 'touch/dragStartCanSelect': Allow drag start to select.
7905
+ * - 'touch/singlePointPanning': Enable single-point panning.
7906
+ * - 'useSystemFontFallback': Use system font fallback.
7907
+ * - 'forceSystemEmojis': Force system emojis.
7908
+ *
7909
+ * @public
7910
+ */
7310
7911
  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';
7311
7912
 
7312
- /** @public
7913
+ /**
7914
+ * Represents the color settings available in the editor.
7915
+ *
7916
+ * @categoryDescription Color Settings
7917
+ * Defines the possible color settings in the editor.
7918
+ * - 'borderOutlineColor': The color of the border outline.
7919
+ * - 'clearColor': The clear color.
7920
+ * - 'colorMaskingSettings/maskColor': The color used for masking.
7921
+ * - 'cropOverlayColor': The color of the crop overlay.
7922
+ * - 'errorStateColor': The color indicating an error state.
7923
+ * - 'highlightColor': The highlight color.
7924
+ * - 'page/innerBorderColor': The color of the inner border of the page.
7925
+ * - 'page/marginFillColor': The color of the margin fill.
7926
+ * - 'page/marginFrameColor': The color of the margin frame.
7927
+ * - 'page/outerBorderColor': The color of the outer border of the page.
7928
+ * - 'page/title/color': The color of the page title.
7929
+ * - 'placeholderHighlightColor': The highlight color for placeholders.
7930
+ * - 'progressColor': The color indicating progress.
7931
+ * - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
7932
+ * - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
7933
+ * - 'snappingGuideColor': The color of the snapping guide.
7934
+ * - 'textVariableHighlightColor': The highlight color for text variables.
7935
+ *
7936
+ * @public
7313
7937
  */
7314
7938
  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
7939
 
7316
- /** @public
7940
+ /**
7941
+ * Represents the color settings available in the editor.
7942
+ *
7943
+ * @categoryDescription Color Settings
7944
+ * Defines the possible color settings in the editor.
7945
+ * - 'borderOutlineColor': The color of the border outline.
7946
+ * - 'clearColor': The clear color.
7947
+ * - 'colorMaskingSettings/maskColor': The color used for masking.
7948
+ * - 'cropOverlayColor': The color of the crop overlay.
7949
+ * - 'errorStateColor': The color indicating an error state.
7950
+ * - 'highlightColor': The highlight color.
7951
+ * - 'page/innerBorderColor': The color of the inner border of the page.
7952
+ * - 'page/marginFillColor': The color of the margin fill.
7953
+ * - 'page/marginFrameColor': The color of the margin frame.
7954
+ * - 'page/outerBorderColor': The color of the outer border of the page.
7955
+ * - 'page/title/color': The color of the page title.
7956
+ * - 'placeholderHighlightColor': The highlight color for placeholders.
7957
+ * - 'progressColor': The color indicating progress.
7958
+ * - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
7959
+ * - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
7960
+ * - 'snappingGuideColor': The color of the snapping guide.
7961
+ * - 'textVariableHighlightColor': The highlight color for text variables.
7962
+ *
7963
+ * @public
7317
7964
  * @deprecated Use SettingsColor instead.
7318
7965
  */
7319
7966
  export declare type SettingsColorRGBA = SettingsColor;
7320
7967
 
7321
- /** @public */
7968
+ /**
7969
+ * Represents the enum settings available in the editor.
7970
+ *
7971
+ * @categoryDescription Enum Settings
7972
+ * Defines the possible enum settings in the editor.
7973
+ * - 'doubleClickSelectionMode': The mode for double-click selection.
7974
+ * - 'touch/pinchAction': The action for pinch gestures.
7975
+ * - 'touch/rotateAction': The action for rotate gestures.
7976
+ * - 'camera/clamping/overshootMode': The mode for camera clamping overshoot.
7977
+ *
7978
+ * @public
7979
+ */
7322
7980
  export declare type SettingsEnum = {
7323
7981
  doubleClickSelectionMode: 'Direct' | 'Hierarchical';
7324
7982
  'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
@@ -7326,13 +7984,50 @@ export declare type SettingsEnum = {
7326
7984
  'camera/clamping/overshootMode': 'Center' | 'Reverse';
7327
7985
  };
7328
7986
 
7329
- /** @public */
7987
+ /**
7988
+ * Represents the float settings available in the editor.
7989
+ *
7990
+ * @categoryDescription Float Settings
7991
+ * Defines the possible float settings in the editor.
7992
+ * - 'controlGizmo/blockScaleDownLimit': The scale down limit for the control gizmo block.
7993
+ * - 'positionSnappingThreshold': The threshold for position snapping.
7994
+ * - 'rotationSnappingThreshold': The threshold for rotation snapping.
7995
+ *
7996
+ * @public
7997
+ */
7330
7998
  export declare type SettingsFloat = 'controlGizmo/blockScaleDownLimit' | 'positionSnappingThreshold' | 'rotationSnappingThreshold';
7331
7999
 
7332
- /** @public */
8000
+ /**
8001
+ * Represents the string settings available in the editor.
8002
+ *
8003
+ * @categoryDescription String Settings
8004
+ * Defines the possible string settings in the editor.
8005
+ * - 'basePath': The base path for resources.
8006
+ * - 'defaultEmojiFontFileUri': The default URI for the emoji font file.
8007
+ * - 'defaultFontFileUri': The default URI for the font file.
8008
+ * - 'license': The license key.
8009
+ * - 'page/title/fontFileUri': The URI for the page title font file.
8010
+ * - 'page/title/separator': The separator for the page title.
8011
+ * - 'fallbackFontUri': The URI for the fallback font.
8012
+ *
8013
+ * @public
8014
+ */
7333
8015
  export declare type SettingsString = 'basePath' | 'defaultEmojiFontFileUri' | 'defaultFontFileUri' | 'license' | 'page/title/fontFileUri' | 'page/title/separator' | 'fallbackFontUri';
7334
8016
 
7335
- /** @public */
8017
+ /**
8018
+ * Represents the type of a setting.
8019
+ *
8020
+ * @categoryDescription Setting Type
8021
+ * Defines the possible types for a setting.
8022
+ * - 'Bool': A boolean setting.
8023
+ * - 'Int': An integer setting.
8024
+ * - 'Float': A float setting.
8025
+ * - 'String': A string setting.
8026
+ * - 'Color': A color setting.
8027
+ * - 'Enum': An enum setting.
8028
+ *
8029
+ * @public
8030
+ */
7336
8031
  export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
7337
8032
 
7338
8033
  /**
@@ -7364,9 +8059,14 @@ export declare interface Size2 {
7364
8059
  }
7365
8060
 
7366
8061
  /**
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
8062
+ * Represents the mode for sizing blocks.
8063
+ *
8064
+ * The `SizeMode` type provides a set of values that control the mode for sizing
8065
+ * blocks. These options include settings for absolute sizing, percentage-based
8066
+ * sizing, and automatic sizing.
8067
+ *
8068
+ * @categoryDescription SizeMode
8069
+ * Methods for configuring the mode for sizing blocks.
7370
8070
  *
7371
8071
  * @public
7372
8072
  */
@@ -7389,23 +8089,75 @@ export declare interface Source {
7389
8089
  height: number;
7390
8090
  }
7391
8091
 
7392
- /** @public */
8092
+ /**
8093
+ * Represents a spot color value.
8094
+ *
8095
+ * @categoryDescription Spot Color
8096
+ * Defines a spot color value with a name, tint, and external reference.
8097
+ * - 'name': The name of the spot color.
8098
+ * - 'tint': The tint factor.
8099
+ * - 'externalReference': The external reference of the spot color.
8100
+ *
8101
+ * @public
8102
+ */
7393
8103
  export declare interface SpotColor {
7394
8104
  name: string;
7395
8105
  tint: number;
7396
8106
  externalReference: string;
7397
8107
  }
7398
8108
 
7399
- /** @public */
8109
+ /**
8110
+ * Represents the corner geometry of a stroke.
8111
+ *
8112
+ * @categoryDescription Stroke Corner Geometry
8113
+ * Defines the possible corner geometries for a stroke.
8114
+ * - 'Bevel': A beveled corner.
8115
+ * - 'Miter': A mitered corner.
8116
+ * - 'Round': A rounded corner.
8117
+ *
8118
+ * @public
8119
+ */
7400
8120
  export declare type StrokeCornerGeometry = 'Bevel' | 'Miter' | 'Round';
7401
8121
 
7402
- /** @public */
8122
+ /**
8123
+ * Represents the position of a stroke relative to the shape's boundary.
8124
+ *
8125
+ * @categoryDescription Stroke Position
8126
+ * Defines the possible positions for a stroke relative to the shape's boundary.
8127
+ * - 'Center': The stroke is centered on the shape's boundary.
8128
+ * - 'Inner': The stroke is inside the shape's boundary.
8129
+ * - 'Outer': The stroke is outside the shape's boundary.
8130
+ *
8131
+ * @public
8132
+ */
7403
8133
  export declare type StrokePosition = 'Center' | 'Inner' | 'Outer';
7404
8134
 
7405
- /** @public */
8135
+ /**
8136
+ * Represents the style of a stroke.
8137
+ *
8138
+ * @categoryDescription Stroke Style
8139
+ * Defines the possible styles for a stroke.
8140
+ * - 'Dashed': A dashed line stroke.
8141
+ * - 'DashedRound': A dashed line stroke with rounded ends.
8142
+ * - 'Dotted': A dotted line stroke.
8143
+ * - 'LongDashed': A long dashed line stroke.
8144
+ * - 'LongDashedRound': A long dashed line stroke with rounded ends.
8145
+ * - 'Solid': A solid line stroke.
8146
+ *
8147
+ * @public
8148
+ */
7406
8149
  export declare type StrokeStyle = 'Dashed' | 'DashedRound' | 'Dotted' | 'LongDashed' | 'LongDashedRound' | 'Solid';
7407
8150
 
7408
- /** @public */
8151
+ /**
8152
+ * Represents a subscription to an event.
8153
+ *
8154
+ * The `Subscription` type is a number that uniquely identifies a subscription to an event.
8155
+ *
8156
+ * @categoryDescription Subscription
8157
+ * Methods for working with subscriptions to events.
8158
+ *
8159
+ * @public
8160
+ */
7409
8161
  declare type Subscription = number;
7410
8162
 
7411
8163
  /**
@@ -7436,17 +8188,46 @@ export declare function supportsVideoExport(): Promise<boolean>;
7436
8188
  export declare function supportsWasm(): boolean;
7437
8189
 
7438
8190
  /**
8191
+ * Represents the text case of a text block.
8192
+ *
8193
+ * @categoryDescription Text Case
8194
+ * Defines the possible text cases for a text block.
8195
+ * - 'Normal': The text is in its normal case.
8196
+ * - 'Uppercase': The text is in uppercase.
8197
+ * - 'Lowercase': The text is in lowercase.
8198
+ * - 'Titlecase': The text is in title case.
8199
+ *
7439
8200
  * @public
7440
8201
  */
7441
8202
  export declare type TextCase = 'Normal' | 'Uppercase' | 'Lowercase' | 'Titlecase';
7442
8203
 
7443
- /** @public */
8204
+ /**
8205
+ * Represents a transient resource.
8206
+ *
8207
+ * The `TransientResource` interface provides a set of properties that describe a transient
8208
+ * resource, including a URI and the size of the resource.
8209
+ *
8210
+ * @categoryDescription TransientResource
8211
+ * Methods for working with transient resources.
8212
+ *
8213
+ * @public
8214
+ */
7444
8215
  export declare interface TransientResource {
7445
8216
  uri: string;
7446
8217
  size: number;
7447
8218
  }
7448
8219
 
7449
- /** @public */
8220
+ /**
8221
+ * Represents a typeface.
8222
+ *
8223
+ * The Typeface interface defines the structure of a typeface within the Creative Editor SDK.
8224
+ * It includes properties for the name and fonts.
8225
+ *
8226
+ * @categoryDescription Fonts
8227
+ * Methods for managing typefaces within the editor.
8228
+ *
8229
+ * @public
8230
+ */
7450
8231
  export declare interface Typeface {
7451
8232
  /** The unique name of this typeface */
7452
8233
  name: string;
@@ -7455,7 +8236,16 @@ export declare interface Typeface {
7455
8236
  }
7456
8237
 
7457
8238
  /**
8239
+ * Represents a typeface definition used in the editor.
8240
+ *
7458
8241
  * @deprecated This type definition is not used anymore and will be removed.
8242
+ *
8243
+ * @categoryDescription Typeface Definition
8244
+ * Defines the structure of a typeface definition, including metadata, family name, and font details.
8245
+ * - 'meta': Optional metadata for the typeface, including default status, library, and categories.
8246
+ * - 'family': The name of the typeface family.
8247
+ * - 'fonts': An array of font definitions, each containing a font URL, weight, and style.
8248
+ *
7459
8249
  * @public
7460
8250
  */
7461
8251
  export declare type TypefaceDefinition = {
@@ -7540,9 +8330,14 @@ export declare interface Vec3 {
7540
8330
  }
7541
8331
 
7542
8332
  /**
7543
- * - Top: The blocks get top aligned.
7544
- * - Bottom: The blocks get bottom aligned.
7545
- * - Center: The blocks get center aligned.
8333
+ * Represents the vertical alignment of blocks.
8334
+ *
8335
+ * The `VerticalBlockAlignment` type provides a set of values that control the
8336
+ * vertical alignment of blocks. These options include settings for aligning
8337
+ * blocks to the top, bottom, or center.
8338
+ *
8339
+ * @categoryDescription VerticalBlockAlignment
8340
+ * Methods for configuring the vertical alignment of blocks.
7546
8341
  *
7547
8342
  * @public
7548
8343
  */
@@ -7555,6 +8350,24 @@ export declare type VerticalBlockAlignment = 'Top' | 'Bottom' | 'Center';
7555
8350
  export declare type VerticalTextAlignment = 'Top' | 'Bottom' | 'Center';
7556
8351
 
7557
8352
  /**
8353
+ * Represents the options for exporting a video.
8354
+ *
8355
+ * @categoryDescription Video Export Options
8356
+ * Defines the possible options for exporting a video.
8357
+ * - 'mimeType': The MIME type of the output video file.
8358
+ * - 'onProgress': A callback which reports on the progress of the export.
8359
+ * - 'h264Profile': Determines the encoder feature set and in turn the quality, size and speed of the
8360
+ encoding process.
8361
+ * - 'h264Level': Controls the H.264 encoding level.
8362
+ * - 'videoBitrate': The video bitrate in bits per second.
8363
+ * - 'audioBitrate': The audio bitrate in bits per second.
8364
+ * - 'timeOffset': The time offset in seconds of the scene's timeline from which the video will start.
8365
+ * - 'duration': The duration in seconds of the final video.
8366
+ * - 'framerate': The target framerate of the exported video in Hz.
8367
+ * - 'targetWidth': An optional target width used in conjunction with target height.
8368
+ * - 'targetHeight': An optional target height used in conjunction with target width.
8369
+ * - 'abortSignal': An abort signal that can be used to cancel the export.
8370
+ *
7558
8371
  * @public
7559
8372
  */
7560
8373
  export declare type VideoExportOptions = {
@@ -7628,13 +8441,27 @@ export declare type VideoExportOptions = {
7628
8441
  abortSignal?: AbortSignal;
7629
8442
  };
7630
8443
 
7631
- /** @public */
8444
+ /**
8445
+ * Represents the video MIME types used in the editor.
8446
+ *
8447
+ * @categoryDescription Video MIME Type
8448
+ * Defines the possible video MIME types used in the editor.
8449
+ * - 'video/mp4': MP4 video format.
8450
+ * - 'video/quicktime': QuickTime video format.
8451
+ *
8452
+ * @public
8453
+ */
7632
8454
  export declare type VideoMimeType = Extract<MimeType_2, 'video/mp4' | 'video/quicktime'>;
7633
8455
 
7634
8456
  /**
7635
- * Describes a rectangle on the screen
7636
- * - `x` and `y` indicate the position
7637
- * - `w` and `h` indicate the width and height
8457
+ * Describes a rectangle on the screen.
8458
+ *
8459
+ * The `XYWH` type is a tuple that contains four numbers representing the x and y coordinates
8460
+ * of the top-left corner of the rectangle, as well as the width and height of the rectangle.
8461
+ *
8462
+ * @categoryDescription XYWH
8463
+ * Methods for working with rectangles on the screen.
8464
+ *
7638
8465
  * @public
7639
8466
  */
7640
8467
  export declare type XYWH = [x: number, y: number, w: number, h: number];