@cocos/cocos-cli-types 0.0.1-alpha.23.1 → 0.0.1-alpha.23.2

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
@@ -13,12 +13,12 @@ import type { Scene as Scene_2 } from 'cc';
13
13
  import type { Vec3 as Vec3_2 } from 'cc';
14
14
 
15
15
  /** 动画剪辑资源的 userData */
16
- declare interface AnimationClipAssetUserData {
16
+ export declare interface AnimationClipAssetUserData {
17
17
  /** 动画名称 */
18
18
  name: string;
19
19
  }
20
20
 
21
- declare interface AnimationImportSetting {
21
+ export declare interface AnimationImportSetting {
22
22
  /**
23
23
  * glTf 中原始动画资源的名称。
24
24
  */
@@ -108,16 +108,16 @@ declare interface AnimationImportSetting {
108
108
  }
109
109
 
110
110
  /** 所有资源处理器类型的常量数组(用于 Zod enum 和 TypeScript type) */
111
- declare const ASSET_HANDLER_TYPES: string[];
111
+ export declare const ASSET_HANDLER_TYPES: string[];
112
112
 
113
- declare enum AssetActionEnum {
113
+ export declare enum AssetActionEnum {
114
114
  'add' = 0,
115
115
  'change' = 1,
116
116
  'delete' = 2,
117
117
  'none' = 3
118
118
  }
119
119
 
120
- declare interface AssetChangeInfo {
120
+ export declare interface AssetChangeInfo {
121
121
  type: AssetChangeType;
122
122
  uuid: string;
123
123
  filePath: string;
@@ -125,12 +125,12 @@ declare interface AssetChangeInfo {
125
125
  userData: object;
126
126
  }
127
127
 
128
- declare type AssetChangeType = AssetActionEnum;
128
+ export declare type AssetChangeType = AssetActionEnum;
129
129
 
130
130
  /**
131
131
  * 资源数据库启动参数
132
132
  */
133
- declare interface AssetDBOptions {
133
+ export declare interface AssetDBOptions {
134
134
  name: string;
135
135
  target: string;
136
136
  library: string;
@@ -152,7 +152,7 @@ declare interface AssetDBOptions {
152
152
  importConcurrency?: number;
153
153
  }
154
154
 
155
- declare interface AssetDBOptions_2 {
155
+ export declare interface AssetDBOptions_2 {
156
156
  name: string;
157
157
  target: string;
158
158
  library: string;
@@ -174,9 +174,9 @@ declare interface AssetDBOptions_2 {
174
174
  }
175
175
 
176
176
  /** 资源处理器类型(从常量数组派生) */
177
- declare type AssetHandlerType = typeof ASSET_HANDLER_TYPES[number] | 'database';
177
+ export declare type AssetHandlerType = typeof ASSET_HANDLER_TYPES[number] | 'database';
178
178
 
179
- declare interface AssetInfo extends IAssetInfo {
179
+ export declare interface AssetInfo extends IAssetInfo {
180
180
  // Asset name
181
181
  // 资源名字
182
182
  name: string;
@@ -220,14 +220,14 @@ declare interface AssetInfo extends IAssetInfo {
220
220
  invalid: boolean;
221
221
  }
222
222
 
223
- declare interface AssetOperationOption {
223
+ export declare interface AssetOperationOption {
224
224
  // 是否强制覆盖已经存在的文件,默认 false,传递后会直接覆盖文件,未传递时有冲突会直接抛异常
225
225
  overwrite?: boolean;
226
226
  // 是否自动重命名冲突文件,默认 false ,传递后会以内部规则自动重命名冲突文件,新的文件名可以在返回值中获取
227
227
  rename?: boolean;
228
228
  }
229
229
 
230
- declare interface AssetOperationOption {
230
+ export declare interface AssetOperationOption {
231
231
  // 是否强制覆盖已经存在的文件,默认 false
232
232
  overwrite?: boolean;
233
233
  // 是否自动重命名冲突文件,默认 false
@@ -295,7 +295,7 @@ export declare namespace Assets {
295
295
  };
296
296
  }
297
297
 
298
- declare interface AssetUserDataMap {
298
+ export declare interface AssetUserDataMap {
299
299
  'animation-clip': AnimationClipAssetUserData;
300
300
  'auto-atlas': AutoAtlasAssetUserData;
301
301
  'label-atlas': LabelAtlasAssetUserData;
@@ -333,13 +333,13 @@ declare interface AssetUserDataMap {
333
333
  }
334
334
 
335
335
  /** 音频资源的 userData */
336
- declare interface AudioClipAssetUserData {
336
+ export declare interface AudioClipAssetUserData {
337
337
  /** 下载模式:0-Web Audio, 1-DOM Audio */
338
338
  downloadMode: number;
339
339
  }
340
340
 
341
341
  /** 自动图集资源的 userData */
342
- declare interface AutoAtlasAssetUserData {
342
+ export declare interface AutoAtlasAssetUserData {
343
343
  compressed: boolean;
344
344
  dest: any;
345
345
  /** 打包图像的尺寸 */
@@ -369,7 +369,7 @@ export declare namespace Base {
369
369
  };
370
370
  }
371
371
 
372
- declare interface BaseItem {
372
+ export declare interface BaseItem {
373
373
  /**
374
374
  * @zh 在项目设置上显示的模块名称,支持 i18n 格式
375
375
  * @en the module name displayed on the project settings, can be configured in i18n format.
@@ -420,7 +420,7 @@ declare interface BaseItem {
420
420
  }
421
421
 
422
422
  /** 位图字体资源的 userData */
423
- declare interface BitmapFontAssetUserData {
423
+ export declare interface BitmapFontAssetUserData {
424
424
  /** 字体配置 */
425
425
  _fntConfig: any;
426
426
  /** 字体大小 */
@@ -429,30 +429,30 @@ declare interface BitmapFontAssetUserData {
429
429
  textureUuid: string;
430
430
  }
431
431
 
432
- declare interface CategoryDetail extends CategoryInfo {
432
+ export declare interface CategoryDetail extends CategoryInfo {
433
433
  modules: IModules;
434
434
  }
435
435
 
436
- declare interface CategoryInfo {
436
+ export declare interface CategoryInfo {
437
437
  label?: string;
438
438
  description?: string;
439
439
  checkable?: boolean;
440
440
  required?: boolean;
441
441
  }
442
442
 
443
- declare interface CCEModuleConfig {
443
+ export declare interface CCEModuleConfig {
444
444
  description: string;
445
445
  main: string;
446
446
  types: string;
447
447
  }
448
448
 
449
- declare type CCEModuleMap = {
449
+ export declare type CCEModuleMap = {
450
450
  [moduleName: string]: CCEModuleConfig;
451
451
  } & {
452
452
  mapLocation: string;
453
453
  };
454
454
 
455
- declare function close_2(): Promise<void>;
455
+ export declare function close_2(): Promise<void>;
456
456
 
457
457
  export declare namespace Configuration {
458
458
  export {
@@ -478,24 +478,24 @@ export declare namespace Configuration {
478
478
  /**
479
479
  * 配置范围
480
480
  */
481
- declare type ConfigurationScope = 'default' | 'project';
481
+ export declare type ConfigurationScope = 'default' | 'project';
482
482
 
483
483
  /**
484
484
  * 创建类型
485
485
  */
486
- declare const CREATE_TYPES: readonly ['scene', 'prefab'];
486
+ export declare const CREATE_TYPES: readonly ['scene', 'prefab'];
487
487
 
488
488
  /**
489
489
  * Create Asset // 创建资源
490
490
  */
491
- declare function createAsset(options: CreateAssetOptions): Promise<IAssetInfo>;
491
+ export declare function createAsset(options: CreateAssetOptions): Promise<IAssetInfo>;
492
492
 
493
493
  /**
494
494
  * Create Asset By Type // 按类型创建资源
495
495
  */
496
- declare function createAssetByType(ccType: ISupportCreateType, dirOrUrl: string, baseName: string, options?: CreateAssetByTypeOptions): Promise<IAssetInfo>;
496
+ export declare function createAssetByType(ccType: ISupportCreateType, dirOrUrl: string, baseName: string, options?: CreateAssetByTypeOptions): Promise<IAssetInfo>;
497
497
 
498
- declare interface CreateAssetByTypeOptions extends AssetOperationOption {
498
+ export declare interface CreateAssetByTypeOptions extends AssetOperationOption {
499
499
  /**
500
500
  * 指定的模板名称,默认为 default
501
501
  */
@@ -507,7 +507,7 @@ declare interface CreateAssetByTypeOptions extends AssetOperationOption {
507
507
  content?: string | Buffer | JSON;
508
508
  }
509
509
 
510
- declare interface CreateAssetOptions {
510
+ export declare interface CreateAssetOptions {
511
511
  // 资源创建的输出地址,支持绝对路径和 url
512
512
  target: string;
513
513
 
@@ -535,10 +535,10 @@ declare interface CreateAssetOptions {
535
535
  /**
536
536
  * Delete Asset // 删除资源
537
537
  */
538
- declare function deleteAsset(dbPath: string): Promise<IAssetInfo | null>;
538
+ export declare function deleteAsset(dbPath: string): Promise<IAssetInfo | null>;
539
539
 
540
540
  /** 文件夹资源的 userData */
541
- declare interface DirectoryAssetUserData {
541
+ export declare interface DirectoryAssetUserData {
542
542
  /** 是否是资源包 */
543
543
  isBundle?: boolean;
544
544
  /** 资源包配置 ID */
@@ -550,7 +550,7 @@ declare interface DirectoryAssetUserData {
550
550
  }
551
551
 
552
552
  /** Effect 着色器资源的 userData */
553
- declare interface EffectAssetUserData {
553
+ export declare interface EffectAssetUserData {
554
554
  /** 预编译组合 */
555
555
  combinations?: any;
556
556
  /** 编辑器相关数据 */
@@ -605,7 +605,7 @@ export declare namespace Engine {
605
605
  };
606
606
  }
607
607
 
608
- declare interface EngineInfo {
608
+ export declare interface EngineInfo {
609
609
  typescript: {
610
610
  type: 'builtin' | 'custom'; // 当前使用的引擎类型(内置或自定义)
611
611
  builtin: string, // 内置引擎地址
@@ -620,19 +620,19 @@ declare interface EngineInfo {
620
620
  version: string;
621
621
  }
622
622
 
623
- declare type EventEmitterMethods = Pick<EventEmitter, 'on' | 'off' | 'once' | 'emit'>;
623
+ export declare type EventEmitterMethods = Pick<EventEmitter, 'on' | 'off' | 'once' | 'emit'>;
624
624
 
625
- declare interface ExecuteAssetDBScriptMethodOptions {
625
+ export declare interface ExecuteAssetDBScriptMethodOptions {
626
626
  name: string;
627
627
  method: string;
628
628
  args?: any[];
629
629
  }
630
630
 
631
- declare interface Features {
631
+ export declare interface Features {
632
632
  [feature: string]: IModuleItem;
633
633
  }
634
634
 
635
- declare interface FileNameCheckConfig {
635
+ export declare interface FileNameCheckConfig {
636
636
  // 匹配规则
637
637
  regStr: string;
638
638
  // 匹配失败时的提示类型
@@ -641,16 +641,16 @@ declare interface FileNameCheckConfig {
641
641
  failedInfo: string;
642
642
  }
643
643
 
644
- declare type Filter = 'none' | 'nearest' | 'linear';
644
+ export declare type Filter = 'none' | 'nearest' | 'linear';
645
645
 
646
- declare interface FilterPluginOptions {
646
+ export declare interface FilterPluginOptions {
647
647
  loadPluginInEditor?: boolean;
648
648
  loadPluginInWeb?: boolean;
649
649
  loadPluginInNative?: boolean;
650
650
  loadPluginInMiniGame?: boolean;
651
651
  }
652
652
 
653
- declare interface FntData {
653
+ export declare interface FntData {
654
654
  commonHeight?: number;
655
655
  fontSize?: number;
656
656
  atlasName?: string;
@@ -658,7 +658,7 @@ declare interface FntData {
658
658
  kerningDict?: KerningDict;
659
659
  }
660
660
 
661
- declare interface FontDef {
661
+ export declare interface FontDef {
662
662
  rect: {
663
663
  x: number;
664
664
  y: number;
@@ -670,35 +670,35 @@ declare interface FontDef {
670
670
  xAdvance: number;
671
671
  }
672
672
 
673
- declare interface FontDefDictionary {
673
+ export declare interface FontDefDictionary {
674
674
  [charId: number]: FontDef;
675
675
  }
676
676
 
677
677
  /**
678
678
  * Generate Thumbnail // 生成资源缩略图
679
679
  */
680
- declare function generateThumbnail(urlOrUUIDOrPath: string, size?: ThumbnailSize): Promise<ThumbnailInfo | null>;
680
+ export declare function generateThumbnail(urlOrUUIDOrPath: string, size?: ThumbnailSize): Promise<ThumbnailInfo | null>;
681
681
 
682
- declare function get<T>(key: string, scope?: ConfigurationScope): Promise<T>;
682
+ export declare function get<T>(key: string, scope?: ConfigurationScope): Promise<T>;
683
683
 
684
- declare function get_2(): Promise<Project_2>;
684
+ export declare function get_2(): Promise<Project_2>;
685
685
 
686
- declare function getConfig(useDefault?: boolean): Promise<IEngineConfig>;
686
+ export declare function getConfig(useDefault?: boolean): Promise<IEngineConfig>;
687
687
 
688
- declare function getConfigPath(): Promise<string>;
688
+ export declare function getConfigPath(): Promise<string>;
689
689
 
690
- declare function getInfo(): Promise<EngineInfo>;
690
+ export declare function getInfo(): Promise<EngineInfo>;
691
691
 
692
- declare function getInfo_2(): Promise<ProjectInfo>;
692
+ export declare function getInfo_2(): Promise<ProjectInfo>;
693
693
 
694
- declare function getMetadata(): Promise<ICocosConfigurationNode[]>;
694
+ export declare function getMetadata(): Promise<ICocosConfigurationNode[]>;
695
695
 
696
- declare function getProgrammingFacet(): Promise<ProgrammingFacet>;
696
+ export declare function getProgrammingFacet(): Promise<ProgrammingFacet>;
697
697
 
698
698
  /**
699
699
  * Get the MCP registration status.
700
700
  */
701
- declare function getStatus(): {
701
+ export declare function getStatus(): {
702
702
  registered: boolean;
703
703
  url?: string;
704
704
  };
@@ -706,7 +706,7 @@ declare function getStatus(): {
706
706
  /**
707
707
  * Get the server running status.
708
708
  */
709
- declare function getStatus_2(): {
709
+ export declare function getStatus_2(): {
710
710
  running: boolean;
711
711
  url?: string;
712
712
  };
@@ -715,7 +715,7 @@ declare function getStatus_2(): {
715
715
  * Get the current server base URL.
716
716
  * Returns undefined if the server is not running.
717
717
  */
718
- declare function getUrl(): string | undefined;
718
+ export declare function getUrl(): string | undefined;
719
719
 
720
720
  /**
721
721
  * 全局事件管理器
@@ -785,7 +785,7 @@ export declare class GlobalEventManager {
785
785
  }
786
786
 
787
787
  /** glTF 动画资源的 userData */
788
- declare interface GltfAnimationAssetUserData {
788
+ export declare interface GltfAnimationAssetUserData {
789
789
  gltfIndex: number;
790
790
  events: Array<{
791
791
  frame: number;
@@ -821,20 +821,20 @@ declare interface GltfAnimationAssetUserData {
821
821
  }
822
822
 
823
823
  /** glTF 嵌入图片子资源的 userData */
824
- declare interface GltfEmbededImageAssetUserData extends IVirtualAssetUserData {
824
+ export declare interface GltfEmbededImageAssetUserData extends IVirtualAssetUserData {
825
825
  /** 是否修复 Alpha 透明度瑕疵 */
826
826
  fixAlphaTransparencyArtifacts?: boolean;
827
827
  }
828
828
 
829
- declare type GltfpackOptions = Record<string, any>;
829
+ export declare type GltfpackOptions = Record<string, any>;
830
830
 
831
831
  /** glTF Skeleton 子资源的 userData */
832
- declare interface GltfSkeletonAssetUserData extends IVirtualAssetUserData {
832
+ export declare interface GltfSkeletonAssetUserData extends IVirtualAssetUserData {
833
833
  /** 骨骼数量 */
834
834
  jointsLength?: number;
835
835
  }
836
836
 
837
- declare interface GlTFUserData {
837
+ export declare interface GlTFUserData {
838
838
  assetFinder?: SerializedAssetFinder;
839
839
 
840
840
  imageMetas: ImageMeta[];
@@ -974,23 +974,23 @@ export declare namespace i18n {
974
974
  /**
975
975
  * 添加/创建组件的选项
976
976
  */
977
- declare interface IAddComponentOptions {
977
+ export declare interface IAddComponentOptions {
978
978
  nodePathOrUuid: string;
979
979
  component: string;
980
980
  }
981
981
 
982
- declare interface IApplyPrefabChangesParams {
982
+ export declare interface IApplyPrefabChangesParams {
983
983
  nodePath: string;
984
984
  }
985
985
 
986
- declare interface IAssetConfig {
986
+ export declare interface IAssetConfig {
987
987
  displayName?: string;
988
988
  description?: string;
989
989
  docURL?: string;
990
990
  userDataConfig?: Record<string, IUerDataConfigItem>;
991
991
  }
992
992
 
993
- declare interface IAssetDBInfo extends AssetDBOptions {
993
+ export declare interface IAssetDBInfo extends AssetDBOptions {
994
994
  // 当前数据库的启动状态
995
995
  state: 'none' | 'start' | 'startup' | 'refresh'; // 是否已启动
996
996
 
@@ -1001,7 +1001,7 @@ declare interface IAssetDBInfo extends AssetDBOptions {
1001
1001
  preImportExtList: string[];
1002
1002
  }
1003
1003
 
1004
- declare interface IAssetInfo {
1004
+ export declare interface IAssetInfo {
1005
1005
  name: string; // 资源名字
1006
1006
  source: string; // url 地址
1007
1007
  loadUrl: string; // loader 加载的层级地址
@@ -1037,7 +1037,7 @@ declare interface IAssetInfo {
1037
1037
  temp?: string; // 资源临时文件目录
1038
1038
  }
1039
1039
 
1040
- declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown'> {
1040
+ export declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown'> {
1041
1041
  ver: string;
1042
1042
  importer: AssetHandlerType;
1043
1043
  imported: boolean;
@@ -1055,7 +1055,7 @@ declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown
1055
1055
  /**
1056
1056
  * 场景相关处理接口
1057
1057
  */
1058
- declare interface IAssetService extends IServiceEvents {
1058
+ export declare interface IAssetService extends IServiceEvents {
1059
1059
  /**
1060
1060
  * 资源发生变化时,进行处理
1061
1061
  * @param uuid
@@ -1068,7 +1068,7 @@ declare interface IAssetService extends IServiceEvents {
1068
1068
  assetDeleted(uuid: string): Promise<void>;
1069
1069
  }
1070
1070
 
1071
- declare type IAssetType =
1071
+ export declare type IAssetType =
1072
1072
  | ISupportCreateCCType
1073
1073
  | 'cc.Asset' // 基础资源类型(instantiation-asset)
1074
1074
  | 'cce.Database' // 数据库资源
@@ -1097,7 +1097,7 @@ declare type IAssetType =
1097
1097
  /**
1098
1098
  * 配置基类接口
1099
1099
  */
1100
- declare interface IBaseConfiguration extends EventEmitterMethods {
1100
+ export declare interface IBaseConfiguration extends EventEmitterMethods {
1101
1101
  /**
1102
1102
  * 模块名
1103
1103
  */
@@ -1137,7 +1137,7 @@ declare interface IBaseConfiguration extends EventEmitterMethods {
1137
1137
  save(): Promise<boolean>;
1138
1138
  }
1139
1139
 
1140
- declare interface IBaseCreateNodeParams {
1140
+ export declare interface IBaseCreateNodeParams {
1141
1141
  path: string;
1142
1142
  name?: string;
1143
1143
  workMode?: '2d' | '3d';
@@ -1149,14 +1149,14 @@ declare interface IBaseCreateNodeParams {
1149
1149
  /**
1150
1150
  * 基础标识
1151
1151
  */
1152
- declare interface IBaseIdentifier {
1152
+ export declare interface IBaseIdentifier {
1153
1153
  assetName: string;
1154
1154
  assetUuid: string;
1155
1155
  assetUrl: string;
1156
1156
  assetType: string;
1157
1157
  }
1158
1158
 
1159
- declare interface ICameraService {
1159
+ export declare interface ICameraService {
1160
1160
  init(): void;
1161
1161
  initFromConfig(): Promise<void>;
1162
1162
  is2D: boolean;
@@ -1177,7 +1177,7 @@ declare interface ICameraService {
1177
1177
  onUpdate(deltaTime: number): void;
1178
1178
  }
1179
1179
 
1180
- declare interface IChangeNodeOptions {
1180
+ export declare interface IChangeNodeOptions {
1181
1181
  source?: 'editor' | 'undo' | 'engine';
1182
1182
  type?: NodeEventType;
1183
1183
  propPath?: string;
@@ -1186,7 +1186,7 @@ declare interface IChangeNodeOptions {
1186
1186
  dumpImmediately?: boolean;
1187
1187
  }
1188
1188
 
1189
- declare interface IChunkContent {
1189
+ export declare interface IChunkContent {
1190
1190
  skeleton: null | string;
1191
1191
  clips: string[];
1192
1192
  }
@@ -1199,11 +1199,11 @@ export declare interface ICLI {
1199
1199
  /**
1200
1200
  * 关闭场景/预制体选项
1201
1201
  */
1202
- declare interface ICloseOptions {
1202
+ export declare interface ICloseOptions {
1203
1203
  urlOrUUID?: string;
1204
1204
  }
1205
1205
 
1206
- declare interface ICocosConfigurationNode {
1206
+ export declare interface ICocosConfigurationNode {
1207
1207
  id: string;
1208
1208
  title: string;
1209
1209
  group: string;
@@ -1211,7 +1211,7 @@ declare interface ICocosConfigurationNode {
1211
1211
  properties: Record<string, ICocosConfigurationPropertySchema>;
1212
1212
  }
1213
1213
 
1214
- declare interface ICocosConfigurationPropertySchema {
1214
+ export declare interface ICocosConfigurationPropertySchema {
1215
1215
  type: 'string' | 'number' | 'boolean' | 'object' | 'array';
1216
1216
  default?: unknown;
1217
1217
  title?: string;
@@ -1228,14 +1228,14 @@ declare interface ICocosConfigurationPropertySchema {
1228
1228
  required?: string[];
1229
1229
  }
1230
1230
 
1231
- declare interface ICollisionMatrix {
1231
+ export declare interface ICollisionMatrix {
1232
1232
  [x: string]: number;
1233
1233
  }
1234
1234
 
1235
1235
  /**
1236
1236
  * CLI 使用的组件信息,属性值以扁平的 key-value 形式呈现
1237
1237
  */
1238
- declare interface IComponent extends IComponentIdentifier {
1238
+ export declare interface IComponent extends IComponentIdentifier {
1239
1239
  properties: {
1240
1240
  [key: string]: IPropertyValueType;
1241
1241
  };
@@ -1246,7 +1246,7 @@ declare interface IComponent extends IComponentIdentifier {
1246
1246
  * 编辑器使用的组件详细信息,属性值以 IProperty 编码形式呈现,
1247
1247
  * 包含 type、readonly、default 等元信息,用于编辑器 Inspector 面板渲染
1248
1248
  */
1249
- declare interface IComponentForEditor extends IProperty {
1249
+ export declare interface IComponentForEditor extends IProperty {
1250
1250
  value: {
1251
1251
  enabled: IPropertyValueType;
1252
1252
  uuid: IPropertyValueType;
@@ -1258,7 +1258,7 @@ declare interface IComponentForEditor extends IProperty {
1258
1258
  /**
1259
1259
  * 组件标识信息,包含组件的基本标识字段
1260
1260
  */
1261
- declare interface IComponentIdentifier {
1261
+ export declare interface IComponentIdentifier {
1262
1262
  cid: string;
1263
1263
  path: string;
1264
1264
  uuid: string;
@@ -1270,7 +1270,7 @@ declare interface IComponentIdentifier {
1270
1270
  /**
1271
1271
  * 组件服务接口,定义了所有组件相关的操作方法
1272
1272
  */
1273
- declare interface IComponentService extends IServiceEvents {
1273
+ export declare interface IComponentService extends IServiceEvents {
1274
1274
  /**
1275
1275
  * 添加组件到指定节点,返回添加后的组件信息
1276
1276
  * @param params - 添加组件选项
@@ -1405,29 +1405,29 @@ declare interface IComponentService extends IServiceEvents {
1405
1405
  unregisterCompMgrEvents(): void;
1406
1406
  }
1407
1407
 
1408
- declare interface ICompPrefabInfo {
1408
+ export declare interface ICompPrefabInfo {
1409
1409
  fileId: string;
1410
1410
  }
1411
1411
 
1412
1412
  /**
1413
1413
  * 配置的格式
1414
1414
  */
1415
- declare interface IConfiguration {
1415
+ export declare interface IConfiguration {
1416
1416
  /**
1417
1417
  * 其他配置
1418
1418
  */
1419
1419
  [key: string]: any;
1420
1420
  }
1421
1421
 
1422
- declare interface ICreateByAssetParams extends IBaseCreateNodeParams {
1422
+ export declare interface ICreateByAssetParams extends IBaseCreateNodeParams {
1423
1423
  dbURL: string;
1424
1424
  }
1425
1425
 
1426
- declare interface ICreateByNodeTypeParams extends IBaseCreateNodeParams {
1426
+ export declare interface ICreateByNodeTypeParams extends IBaseCreateNodeParams {
1427
1427
  nodeType: NodeType;
1428
1428
  }
1429
1429
 
1430
- declare interface ICreateMenuInfo {
1430
+ export declare interface ICreateMenuInfo {
1431
1431
  // 新建菜单名称,支持 i18n:xxx
1432
1432
  label: string;
1433
1433
  // 模板名称,默认为 default ,作为模板选择的唯一标识符
@@ -1453,14 +1453,14 @@ declare interface ICreateMenuInfo {
1453
1453
  /**
1454
1454
  * 创建场景/预制体选项
1455
1455
  */
1456
- declare interface ICreateOptions {
1456
+ export declare interface ICreateOptions {
1457
1457
  type: ICreateType;
1458
1458
  baseName: string;
1459
1459
  targetDirectory: string;
1460
1460
  templateType?: TSceneTemplateType;
1461
1461
  }
1462
1462
 
1463
- declare interface ICreatePrefabFromNodeParams {
1463
+ export declare interface ICreatePrefabFromNodeParams {
1464
1464
  /** 要转换为预制体的源节点路径 */
1465
1465
  nodePath: string;
1466
1466
  /** 预制体资源保存 URL */
@@ -1469,9 +1469,9 @@ declare interface ICreatePrefabFromNodeParams {
1469
1469
  overwrite?: boolean;
1470
1470
  }
1471
1471
 
1472
- declare type ICreateType = typeof CREATE_TYPES[number];
1472
+ export declare type ICreateType = typeof CREATE_TYPES[number];
1473
1473
 
1474
- declare type ICroppingConfig = {
1474
+ export declare type ICroppingConfig = {
1475
1475
  name: string;
1476
1476
  cache: Record<string, IDisplayModuleCache>,
1477
1477
  flags: IFlags_2,
@@ -1480,37 +1480,37 @@ declare type ICroppingConfig = {
1480
1480
  moduleToFallBack?: Record<string, string>;
1481
1481
  }
1482
1482
 
1483
- declare type ICroppingConfigDeprecatedFeature = {
1483
+ export declare type ICroppingConfigDeprecatedFeature = {
1484
1484
  value: boolean,
1485
1485
  version: string
1486
1486
  };
1487
1487
 
1488
- declare interface ICustomJointTextureLayout {
1488
+ export declare interface ICustomJointTextureLayout {
1489
1489
  textureLength: number;
1490
1490
  contents: IChunkContent[];
1491
1491
  }
1492
1492
 
1493
- declare type IDefaultConfig = {
1493
+ export declare type IDefaultConfig = {
1494
1494
  key: IDefaultConfigKeys;
1495
1495
  name: string;
1496
1496
  diyConfig: (cache: Record<string, IDisplayModuleCache>, flags: IFlags_2, includeModules: string[]) => void;
1497
1497
  }
1498
1498
 
1499
- declare type IDefaultConfigKeys = 'defaultConfig' | 'default2d' | 'default3d' | 'defaultNative' | 'defaultSmallGames'
1499
+ export declare type IDefaultConfigKeys = 'defaultConfig' | 'default2d' | 'default3d' | 'defaultNative' | 'defaultSmallGames'
1500
1500
 
1501
- declare interface IDeleteNodeParams {
1501
+ export declare interface IDeleteNodeParams {
1502
1502
  path: string;
1503
1503
  keepWorldTransform?: boolean;
1504
1504
  }
1505
1505
 
1506
- declare interface IDeleteNodeResult {
1506
+ export declare interface IDeleteNodeResult {
1507
1507
  path: string;
1508
1508
  }
1509
1509
 
1510
1510
  /**
1511
1511
  * 构建使用的设计分辨率数据
1512
1512
  */
1513
- declare interface IDesignResolution {
1513
+ export declare interface IDesignResolution {
1514
1514
  height: number;
1515
1515
  width: number;
1516
1516
  fitWidth?: boolean;
@@ -1518,19 +1518,19 @@ declare interface IDesignResolution {
1518
1518
  policy?: number;
1519
1519
  }
1520
1520
 
1521
- declare interface IDisplayModuleCache {
1521
+ export declare interface IDisplayModuleCache {
1522
1522
  _value: boolean;
1523
1523
  _option?: string; // 保存下拉选项的值
1524
1524
  _flags?: IFlags_2; // 保存下拉选项的值的联动开关
1525
1525
  }
1526
1526
 
1527
- declare interface IDisplayModuleItem extends IFeatureItem {
1527
+ export declare interface IDisplayModuleItem extends IFeatureItem {
1528
1528
  _value: boolean;
1529
1529
  _option?: string;
1530
1530
  options?: Record<string, IDisplayModuleItem>;
1531
1531
  }
1532
1532
 
1533
- declare interface IEditorService extends IServiceEvents {
1533
+ export declare interface IEditorService extends IServiceEvents {
1534
1534
  /**
1535
1535
  * 当前编辑器类型
1536
1536
  */
@@ -1574,7 +1574,7 @@ declare interface IEditorService extends IServiceEvents {
1574
1574
  unlock(): void;
1575
1575
  }
1576
1576
 
1577
- declare interface IEngineConfig extends IEngineModuleConfig {
1577
+ export declare interface IEngineConfig extends IEngineModuleConfig {
1578
1578
  physicsConfig: IPhysicsConfig;
1579
1579
  macroConfig?: Record<string, string | number | boolean>;
1580
1580
  sortingLayers: { id: number, name: string, value: number }[];
@@ -1592,14 +1592,14 @@ declare interface IEngineConfig extends IEngineModuleConfig {
1592
1592
  downloadMaxConcurrency: number;
1593
1593
  }
1594
1594
 
1595
- declare interface IEngineModuleConfig {
1595
+ export declare interface IEngineModuleConfig {
1596
1596
  // ---- 模块配置相关 ----
1597
1597
  includeModules: string[];
1598
1598
  flags?: IFlags;
1599
1599
  noDeprecatedFeatures?: { value: boolean, version: string };
1600
1600
  }
1601
1601
 
1602
- declare interface IEngineOptions {
1602
+ export declare interface IEngineOptions {
1603
1603
  /**
1604
1604
  * 引擎仓库根目录。
1605
1605
  */
@@ -1618,12 +1618,12 @@ declare interface IEngineOptions {
1618
1618
  features: string[];
1619
1619
  }
1620
1620
 
1621
- declare interface IEngineProjectConfig extends Exclude<IEngineConfig, 'includeModules' | 'flags' | 'noDeprecatedFeatures'> {
1621
+ export declare interface IEngineProjectConfig extends Exclude<IEngineConfig, 'includeModules' | 'flags' | 'noDeprecatedFeatures'> {
1622
1622
  configs?: Record<string, IEngineModuleConfig>;
1623
1623
  globalConfigKey?: string;
1624
1624
  }
1625
1625
 
1626
- declare interface IEngineService extends IServiceEvents {
1626
+ export declare interface IEngineService extends IServiceEvents {
1627
1627
  /**
1628
1628
  * 初始化引擎服务,目前是暂时引擎 mainLoop
1629
1629
  */
@@ -1637,13 +1637,13 @@ declare interface IEngineService extends IServiceEvents {
1637
1637
  /**
1638
1638
  * 执行组件方法的选项
1639
1639
  */
1640
- declare interface IExecuteComponentMethodOptions {
1640
+ export declare interface IExecuteComponentMethodOptions {
1641
1641
  uuid: string;
1642
1642
  name: string;
1643
1643
  args: any[];
1644
1644
  }
1645
1645
 
1646
- declare interface IFbxSetting {
1646
+ export declare interface IFbxSetting {
1647
1647
  /**
1648
1648
  * https://github.com/cocos-creator/FBX-glTF-conv/pull/26
1649
1649
  */
@@ -1679,11 +1679,11 @@ declare interface IFbxSetting {
1679
1679
  matchMeshNames?: boolean;
1680
1680
  }
1681
1681
 
1682
- declare interface IFeatureGroup extends BaseItem {
1682
+ export declare interface IFeatureGroup extends BaseItem {
1683
1683
  options: { [feature: string]: IFeatureItem };
1684
1684
  }
1685
1685
 
1686
- declare interface IFeatureItem extends BaseItem {
1686
+ export declare interface IFeatureItem extends BaseItem {
1687
1687
  /**
1688
1688
  * @zh 是否默认以及允许包含在上传的各个小游戏引擎插件内,目前由于部分引擎模块包体较大,默认不会打包在官方的微信引擎分离插件内。(临时方案)
1689
1689
  * @en Whether it is included in the upload of the various engine plugins by default. Currently, because some engine modules are packaged in a large package, the official WeChat engine separation plugin does not package them by default. (Temporary solution)
@@ -1721,20 +1721,20 @@ declare interface IFeatureItem extends BaseItem {
1721
1721
  cmakeConfig?: string;
1722
1722
  }
1723
1723
 
1724
- declare type IFlags = Record<string, boolean | number>;
1724
+ export declare type IFlags = Record<string, boolean | number>;
1725
1725
 
1726
- declare type IFlags_2 = Record<string, boolean | number>;
1726
+ export declare type IFlags_2 = Record<string, boolean | number>;
1727
1727
 
1728
- declare interface IGetPostConfig {
1728
+ export declare interface IGetPostConfig {
1729
1729
  url: string | RegExp;
1730
1730
  handler: (req: Request_2, res: Response_2, next?: NextFunction) => Promise<void>;
1731
1731
  }
1732
1732
 
1733
- declare interface IGetPrefabInfoParams {
1733
+ export declare interface IGetPrefabInfoParams {
1734
1734
  nodePath: string;
1735
1735
  }
1736
1736
 
1737
- declare interface IGizmoService {
1737
+ export declare interface IGizmoService {
1738
1738
  gizmoRootNode: any;
1739
1739
  foregroundNode: any;
1740
1740
  backgroundNode: any;
@@ -1756,19 +1756,19 @@ declare interface IGizmoService {
1756
1756
  onUpdate(deltaTime: number): void;
1757
1757
  }
1758
1758
 
1759
- declare interface IInitEngineInfo {
1759
+ export declare interface IInitEngineInfo {
1760
1760
  importBase: string;
1761
1761
  nativeBase: string;
1762
1762
  writablePath: string;
1763
1763
  serverURL?: string;
1764
1764
  }
1765
1765
 
1766
- declare interface IIsPrefabInstanceParams {
1766
+ export declare interface IIsPrefabInstanceParams {
1767
1767
  nodePath: string;
1768
1768
  }
1769
1769
 
1770
1770
  /** 图片资源的 userData */
1771
- declare interface ImageAssetUserData {
1771
+ export declare interface ImageAssetUserData {
1772
1772
  /** 图片类型 */
1773
1773
  type: ImageImportType;
1774
1774
  /** 垂直翻转 */
@@ -1792,9 +1792,9 @@ declare interface ImageAssetUserData {
1792
1792
  alpha?: string;
1793
1793
  }
1794
1794
 
1795
- declare type ImageImportType = 'raw' | 'texture' | 'normal map' | 'sprite-frame' | 'texture cube';
1795
+ export declare type ImageImportType = 'raw' | 'texture' | 'normal map' | 'sprite-frame' | 'texture cube';
1796
1796
 
1797
- declare interface ImageMeta {
1797
+ export declare interface ImageMeta {
1798
1798
  /**
1799
1799
  * 图片名字。
1800
1800
  */
@@ -1815,14 +1815,14 @@ declare interface ImageMeta {
1815
1815
  remap?: string;
1816
1816
  }
1817
1817
 
1818
- declare interface IMiddlewareContribution {
1818
+ export declare interface IMiddlewareContribution {
1819
1819
  get?: IGetPostConfig[];
1820
1820
  post?: IGetPostConfig[];
1821
1821
  staticFiles?: IStaticFileConfig[];
1822
1822
  socket?: ISocketConfig;
1823
1823
  }
1824
1824
 
1825
- declare interface IModuleConfig {
1825
+ export declare interface IModuleConfig {
1826
1826
  moduleTreeDump: {
1827
1827
  default: IModules;
1828
1828
  categories: Record<string, CategoryDetail>;
@@ -1839,16 +1839,16 @@ declare interface IModuleConfig {
1839
1839
  }>;
1840
1840
  }
1841
1841
 
1842
- declare type IModuleItem = IFeatureItem | IFeatureGroup;
1842
+ export declare type IModuleItem = IFeatureItem | IFeatureGroup;
1843
1843
 
1844
- declare type IModules = Record<string, IModuleItem>;
1844
+ export declare type IModules = Record<string, IModuleItem>;
1845
1845
 
1846
- declare interface IMountedChildrenInfo {
1846
+ export declare interface IMountedChildrenInfo {
1847
1847
  targetInfo: ITargetInfo | null;
1848
1848
  nodes: INodeIdentifier[];
1849
1849
  }
1850
1850
 
1851
- declare interface IMountedComponentsInfo {
1851
+ export declare interface IMountedComponentsInfo {
1852
1852
  targetInfo: ITargetInfo | null;
1853
1853
  components: IComponentIdentifier[];
1854
1854
  }
@@ -1856,49 +1856,49 @@ declare interface IMountedComponentsInfo {
1856
1856
  /**
1857
1857
  * Import Asset // 导入资源
1858
1858
  */
1859
- declare function importAsset(source: string, target: string, options?: AssetOperationOption): Promise<IAssetInfo[]>;
1859
+ export declare function importAsset(source: string, target: string, options?: AssetOperationOption): Promise<IAssetInfo[]>;
1860
1860
 
1861
- declare interface ImportMap {
1861
+ export declare interface ImportMap {
1862
1862
  imports?: Record<string, string>;
1863
1863
  scopes?: Record<string, Record<string, string>>;
1864
1864
  }
1865
1865
 
1866
- declare function init(): Promise<void>;
1866
+ export declare function init(): Promise<void>;
1867
1867
 
1868
- declare function init_2(projectPath: string): Promise<void>;
1868
+ export declare function init_2(projectPath: string): Promise<void>;
1869
1869
 
1870
- declare function init_3(projectPath: string): Promise<void>;
1870
+ export declare function init_3(projectPath: string): Promise<void>;
1871
1871
 
1872
- declare function init_4(projectPath: string): Promise<void>;
1872
+ export declare function init_4(projectPath: string): Promise<void>;
1873
1873
 
1874
- declare function init_5(projectPath: string): Promise<void>;
1874
+ export declare function init_5(projectPath: string): Promise<void>;
1875
1875
 
1876
1876
  /**
1877
1877
  * Initialize the scene module.
1878
1878
  * Registers the scene middleware and initializes scene config.
1879
1879
  */
1880
- declare function init_6(): Promise<void>;
1880
+ export declare function init_6(): Promise<void>;
1881
1881
 
1882
- declare function init_7(projectPath: string): Promise<void>;
1882
+ export declare function init_7(projectPath: string): Promise<void>;
1883
1883
 
1884
- declare function initEngine(enginePath: string, projectPath: string, serverURL?: string): Promise<void>;
1884
+ export declare function initEngine(enginePath: string, projectPath: string, serverURL?: string): Promise<void>;
1885
1885
 
1886
- declare function initProgrammingFacet(): Promise<ProgrammingFacet>;
1886
+ export declare function initProgrammingFacet(): Promise<ProgrammingFacet>;
1887
1887
 
1888
- declare interface INode extends INodeIdentifier {
1888
+ export declare interface INode extends INodeIdentifier {
1889
1889
  properties: INodeProperties;
1890
1890
  components?: IComponent[] | IComponentIdentifier[];
1891
1891
  children?: INode[];
1892
1892
  prefab: IPrefabInfo | null;
1893
1893
  }
1894
1894
 
1895
- declare interface INodeIdentifier {
1895
+ export declare interface INodeIdentifier {
1896
1896
  nodeId: string;
1897
1897
  path: string;
1898
1898
  name: string;
1899
1899
  }
1900
1900
 
1901
- declare interface INodeProperties {
1901
+ export declare interface INodeProperties {
1902
1902
  position: IVec3;
1903
1903
  rotation: IQuat;
1904
1904
  eulerAngles: IVec3;
@@ -1911,7 +1911,7 @@ declare interface INodeProperties {
1911
1911
  /**
1912
1912
  * 节点的相关处理接口
1913
1913
  */
1914
- declare interface INodeService extends IServiceEvents {
1914
+ export declare interface INodeService extends IServiceEvents {
1915
1915
  /**
1916
1916
  * 创建节点
1917
1917
  * @param params
@@ -1942,14 +1942,14 @@ declare interface INodeService extends IServiceEvents {
1942
1942
  queryNodeTree(params: IQueryNodeTreeParams): Promise<INodeTreeItem | null>;
1943
1943
  }
1944
1944
 
1945
- declare interface INodeTreeComponent {
1945
+ export declare interface INodeTreeComponent {
1946
1946
  isCustom: boolean;
1947
1947
  type: string;
1948
1948
  value: string;
1949
1949
  extends: string[];
1950
1950
  }
1951
1951
 
1952
- declare interface INodeTreeItem {
1952
+ export declare interface INodeTreeItem {
1953
1953
  name: string;
1954
1954
  active: boolean;
1955
1955
  locked: boolean;
@@ -1967,12 +1967,12 @@ declare interface INodeTreeItem {
1967
1967
  /**
1968
1968
  * 打开场景/预制体选项
1969
1969
  */
1970
- declare interface IOpenOptions {
1970
+ export declare interface IOpenOptions {
1971
1971
  urlOrUUID: string;
1972
1972
  simpleNode?: boolean;
1973
1973
  }
1974
1974
 
1975
- declare interface IOperationService {
1975
+ export declare interface IOperationService {
1976
1976
  addListener(type: OperationEvent, listener: Function, priority?: number): void;
1977
1977
  removeListener(type: OperationEvent, listener: Function): void;
1978
1978
  dispatch(type: OperationEvent, ...args: any[]): void;
@@ -1982,7 +1982,7 @@ declare interface IOperationService {
1982
1982
  changePointer(type: string): void;
1983
1983
  }
1984
1984
 
1985
- declare interface IPhysicsConfig {
1985
+ export declare interface IPhysicsConfig {
1986
1986
  gravity: IVec3Like; // (0,-10, 0)
1987
1987
  allowSleep: boolean; // true
1988
1988
  sleepThreshold: number; // 0.1,最小 0
@@ -2001,18 +2001,18 @@ declare interface IPhysicsConfig {
2001
2001
  };
2002
2002
  }
2003
2003
 
2004
- declare interface IPhysicsMaterial {
2004
+ export declare interface IPhysicsMaterial {
2005
2005
  friction: number; // 0.5
2006
2006
  rollingFriction: number; // 0.1
2007
2007
  spinningFriction: number; // 0.1
2008
2008
  restitution: number; // 0.1
2009
2009
  }
2010
2010
 
2011
- declare interface IPluginScriptInfo extends PluginScriptInfo {
2011
+ export declare interface IPluginScriptInfo extends PluginScriptInfo {
2012
2012
  url: string;
2013
2013
  }
2014
2014
 
2015
- declare interface IPrefab {
2015
+ export declare interface IPrefab {
2016
2016
  name: string;
2017
2017
  uuid: string;
2018
2018
  data: INodeIdentifier;
@@ -2020,7 +2020,7 @@ declare interface IPrefab {
2020
2020
  persistent: boolean;
2021
2021
  }
2022
2022
 
2023
- declare interface IPrefabInfo {
2023
+ export declare interface IPrefabInfo {
2024
2024
  /** 关联的预制体资源信息 */
2025
2025
  asset?: IPrefab;
2026
2026
  root?: INodeIdentifier;
@@ -2030,7 +2030,7 @@ declare interface IPrefabInfo {
2030
2030
  nestedPrefabInstanceRoots: INodeIdentifier[];
2031
2031
  }
2032
2032
 
2033
- declare interface IPrefabInstance {
2033
+ export declare interface IPrefabInstance {
2034
2034
  fileId: string;
2035
2035
  prefabRootNode?: INodeIdentifier;
2036
2036
  mountedChildren: IMountedChildrenInfo[];
@@ -2039,7 +2039,7 @@ declare interface IPrefabInstance {
2039
2039
  removedComponents: ITargetInfo[];
2040
2040
  }
2041
2041
 
2042
- declare interface IPrefabService extends IServiceEvents {
2042
+ export declare interface IPrefabService extends IServiceEvents {
2043
2043
  /**
2044
2044
  * 将节点转换为预制体资源
2045
2045
  */
@@ -2072,7 +2072,7 @@ declare interface IPrefabService extends IServiceEvents {
2072
2072
  removePrefabInfoFromNode(node: Node_2, removeNested?: boolean): void;
2073
2073
  }
2074
2074
 
2075
- declare interface IPrefabStateInfo {
2075
+ export declare interface IPrefabStateInfo {
2076
2076
  state: PrefabState;
2077
2077
  isUnwrappable: boolean;
2078
2078
  isRevertable: boolean;
@@ -2082,7 +2082,7 @@ declare interface IPrefabStateInfo {
2082
2082
  assetUuid: string;
2083
2083
  }
2084
2084
 
2085
- declare interface IProject {
2085
+ export declare interface IProject {
2086
2086
  /**
2087
2087
  * Gets the project directory path
2088
2088
  *
@@ -2159,7 +2159,7 @@ declare interface IProject {
2159
2159
  * 组件的 dump 数据,以 IProperty 格式编码组件信息
2160
2160
  * 与 IComponent 不同,所有属性(包括 uuid, name, enabled)都通过 encodeObject 编码为 IProperty
2161
2161
  */
2162
- declare interface IProperty {
2162
+ export declare interface IProperty {
2163
2163
  value: { [key: string]: IPropertyValueType } | IPropertyValueType;
2164
2164
  default?: any; // 默认值
2165
2165
 
@@ -2213,27 +2213,27 @@ declare interface IProperty {
2213
2213
  userData?: { [key: string]: any }; // 用户透传的数据
2214
2214
  }
2215
2215
 
2216
- declare interface IPropertyGroupOptions {
2216
+ export declare interface IPropertyGroupOptions {
2217
2217
  id: string // 默认 'default'
2218
2218
  name: string,
2219
2219
  displayOrder: number, // 默认 Infinity, 排在最后面
2220
2220
  style: string // 默认为 'tab'
2221
2221
  }
2222
2222
 
2223
- declare type IPropertyLock = {
2223
+ export declare type IPropertyLock = {
2224
2224
  default: number;
2225
2225
  message: string
2226
2226
  };
2227
2227
 
2228
- declare interface IPropertyOverrideInfo {
2228
+ export declare interface IPropertyOverrideInfo {
2229
2229
  targetInfo: ITargetInfo | null;
2230
2230
  propertyPath: string[];
2231
2231
  value?: any;
2232
2232
  }
2233
2233
 
2234
- declare type IPropertyValueType = IProperty | IProperty[] | null | undefined | number | boolean | string | Vec4 | Vec3 | Vec2 | Mat4 | any | Array<unknown>
2234
+ export declare type IPropertyValueType = IProperty | IProperty[] | null | undefined | number | boolean | string | Vec4 | Vec3 | Vec2 | Mat4 | any | Array<unknown>
2235
2235
 
2236
- declare interface IQuat {
2236
+ export declare interface IQuat {
2237
2237
  x: number;
2238
2238
  y: number;
2239
2239
  z: number;
@@ -2243,7 +2243,7 @@ declare interface IQuat {
2243
2243
  /**
2244
2244
  * 查询注册类的过滤选项
2245
2245
  */
2246
- declare interface IQueryClassesOptions {
2246
+ export declare interface IQueryClassesOptions {
2247
2247
  extends?: string | string[];
2248
2248
  excludeSelf?: boolean;
2249
2249
  }
@@ -2251,21 +2251,21 @@ declare interface IQueryClassesOptions {
2251
2251
  /**
2252
2252
  * 查询组件的选项
2253
2253
  */
2254
- declare interface IQueryComponentOptions {
2254
+ export declare interface IQueryComponentOptions {
2255
2255
  path: string;
2256
2256
  }
2257
2257
 
2258
- declare interface IQueryNodeParams {
2258
+ export declare interface IQueryNodeParams {
2259
2259
  path: string;
2260
2260
  queryChildren: boolean;
2261
2261
  queryComponent: boolean;
2262
2262
  }
2263
2263
 
2264
- declare interface IQueryNodeTreeParams {
2264
+ export declare interface IQueryNodeTreeParams {
2265
2265
  path?: string;
2266
2266
  }
2267
2267
 
2268
- declare interface IRedirectInfo {
2268
+ export declare interface IRedirectInfo {
2269
2269
  // 跳转资源的类型
2270
2270
  type: string;
2271
2271
  // 跳转资源的 uuid
@@ -2275,39 +2275,39 @@ declare interface IRedirectInfo {
2275
2275
  /**
2276
2276
  * 软刷新场景/预制体选项
2277
2277
  */
2278
- declare interface IReloadOptions {
2278
+ export declare interface IReloadOptions {
2279
2279
  urlOrUUID?: string;
2280
2280
  }
2281
2281
 
2282
2282
  /**
2283
2283
  * 删除组件的选项
2284
2284
  */
2285
- declare interface IRemoveComponentOptions {
2285
+ export declare interface IRemoveComponentOptions {
2286
2286
  path: string;
2287
2287
  }
2288
2288
 
2289
- declare interface IRevertToPrefabParams {
2289
+ export declare interface IRevertToPrefabParams {
2290
2290
  nodePath: string;
2291
2291
  }
2292
2292
 
2293
2293
  /**
2294
2294
  * 保持场景/预制体选项
2295
2295
  */
2296
- declare interface ISaveOptions {
2296
+ export declare interface ISaveOptions {
2297
2297
  urlOrUUID?: string;
2298
2298
  }
2299
2299
 
2300
2300
  /**
2301
2301
  * 场景信息
2302
2302
  */
2303
- declare interface IScene extends IBaseIdentifier {
2303
+ export declare interface IScene extends IBaseIdentifier {
2304
2304
  name: string;
2305
2305
  prefab: IPrefabInfo | null;
2306
2306
  children: INode[];
2307
2307
  components: IComponentIdentifier[];
2308
2308
  }
2309
2309
 
2310
- declare interface ISceneMouseEvent {
2310
+ export declare interface ISceneMouseEvent {
2311
2311
  x: number;
2312
2312
  y: number;
2313
2313
  clientX: number;
@@ -2332,7 +2332,7 @@ declare interface ISceneMouseEvent {
2332
2332
  handleName?: string;
2333
2333
  }
2334
2334
 
2335
- declare interface ISceneViewService {
2335
+ export declare interface ISceneViewService {
2336
2336
  init(): void;
2337
2337
  initFromConfig(): Promise<void>;
2338
2338
  saveConfig(): Promise<void>;
@@ -2344,7 +2344,7 @@ declare interface ISceneViewService {
2344
2344
  onComponentRemoved(comp: Component): void;
2345
2345
  }
2346
2346
 
2347
- declare interface IScriptService extends IServiceEvents {
2347
+ export declare interface IScriptService extends IServiceEvents {
2348
2348
  investigatePackerDriver(): Promise<void>;
2349
2349
  loadScript(): Promise<void>;
2350
2350
  removeScript(): Promise<void>;
@@ -2355,7 +2355,7 @@ declare interface IScriptService extends IServiceEvents {
2355
2355
  suspend(condition: Promise<any>): void;
2356
2356
  }
2357
2357
 
2358
- declare interface ISelectionService {
2358
+ export declare interface ISelectionService {
2359
2359
  select(uuid: string): void;
2360
2360
  unselect(uuid: string): void;
2361
2361
  clear(): void;
@@ -2364,7 +2364,7 @@ declare interface ISelectionService {
2364
2364
  reset(): void;
2365
2365
  }
2366
2366
 
2367
- declare interface IServiceEvents {
2367
+ export declare interface IServiceEvents {
2368
2368
  onEditorOpened?(): void;
2369
2369
  onEditorReload?(): void;
2370
2370
  onEditorClosed?(): void;
@@ -2415,7 +2415,7 @@ export declare interface IServiceManager {
2415
2415
  /**
2416
2416
  * CLI 设置组件属性的选项
2417
2417
  */
2418
- declare interface ISetPropertyOptions {
2418
+ export declare interface ISetPropertyOptions {
2419
2419
  componentPath: string;
2420
2420
  properties: {
2421
2421
  [key: string]: null | undefined | number | boolean | string | object | Array<unknown>;
@@ -2426,26 +2426,26 @@ declare interface ISetPropertyOptions {
2426
2426
  /**
2427
2427
  * 编辑器设置组件属性的选项
2428
2428
  */
2429
- declare interface ISetPropertyOptionsForEditor {
2429
+ export declare interface ISetPropertyOptionsForEditor {
2430
2430
  uuid: string;
2431
2431
  path: string;
2432
2432
  dump: IProperty;
2433
2433
  record?: boolean;
2434
2434
  }
2435
2435
 
2436
- declare interface ISocketConfig {
2436
+ export declare interface ISocketConfig {
2437
2437
  connection: (socket: any) => void;
2438
2438
  disconnect: (socket: any) => void;
2439
2439
  }
2440
2440
 
2441
- declare interface ISplashBackgroundColor {
2441
+ export declare interface ISplashBackgroundColor {
2442
2442
  x: number;
2443
2443
  y: number;
2444
2444
  z: number;
2445
2445
  w: number;
2446
2446
  }
2447
2447
 
2448
- declare interface ISplashSetting {
2448
+ export declare interface ISplashSetting {
2449
2449
  displayRatio: number;
2450
2450
  totalTime: number;
2451
2451
  watermarkLocation: 'default' | 'topLeft' | 'topRight' | 'topCenter' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
@@ -2464,12 +2464,12 @@ declare interface ISplashSetting {
2464
2464
  }
2465
2465
  }
2466
2466
 
2467
- declare interface IStaticFileConfig {
2467
+ export declare interface IStaticFileConfig {
2468
2468
  url: string;
2469
2469
  path: string;
2470
2470
  }
2471
2471
 
2472
- declare type ISupportCreateCCType =
2472
+ export declare type ISupportCreateCCType =
2473
2473
  | 'cc.AnimationClip' // 动画剪辑
2474
2474
  | 'cc.Script' // 脚本(TypeScript/JavaScript)
2475
2475
  | 'cc.SpriteAtlas' // 精灵图集(自动图集)
@@ -2487,13 +2487,13 @@ declare type ISupportCreateCCType =
2487
2487
  | 'cc.AnimationGraphVariant';
2488
2488
 
2489
2489
  /** 支持创建的资源类型(从常量数组派生) */
2490
- declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
2490
+ export declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
2491
2491
 
2492
- declare interface ITargetInfo {
2492
+ export declare interface ITargetInfo {
2493
2493
  localID: string[];
2494
2494
  }
2495
2495
 
2496
- declare interface ITargetOverrideInfo {
2496
+ export declare interface ITargetOverrideInfo {
2497
2497
  source: IComponentIdentifier | INodeIdentifier | null;
2498
2498
  sourceInfo: ITargetInfo | null;
2499
2499
  propertyPath: string[];
@@ -2501,7 +2501,7 @@ declare interface ITargetOverrideInfo {
2501
2501
  targetInfo: ITargetInfo | null;
2502
2502
  }
2503
2503
 
2504
- declare interface IUerDataConfigItem {
2504
+ export declare interface IUerDataConfigItem {
2505
2505
  key?: string; // 唯一标识符
2506
2506
  // 配置显示的名字,如果需要翻译,则传入 i18n:${key}
2507
2507
  label?: string;
@@ -2523,7 +2523,7 @@ declare interface IUerDataConfigItem {
2523
2523
  };
2524
2524
  }
2525
2525
 
2526
- declare interface IUndoService {
2526
+ export declare interface IUndoService {
2527
2527
  beginRecording(uuids: string[], options?: any): string;
2528
2528
  endRecording(commandId: string): void;
2529
2529
  cancelRecording(commandId: string): void;
@@ -2534,37 +2534,37 @@ declare interface IUndoService {
2534
2534
  isDirty(): boolean;
2535
2535
  }
2536
2536
 
2537
- declare interface IUnpackPrefabInstanceParams {
2537
+ export declare interface IUnpackPrefabInstanceParams {
2538
2538
  /** 要解耦的预制体实例节点 */
2539
2539
  nodePath: string;
2540
2540
  /** 递归解耦所有子预制体 */
2541
2541
  recursive?: boolean;
2542
2542
  }
2543
2543
 
2544
- declare interface IUpdateNodeParams {
2544
+ export declare interface IUpdateNodeParams {
2545
2545
  path: string;
2546
2546
  name?: string;
2547
2547
  properties?: Partial<INodeProperties>;
2548
2548
  }
2549
2549
 
2550
- declare interface IUpdateNodeResult {
2550
+ export declare interface IUpdateNodeResult {
2551
2551
  path: string;
2552
2552
  }
2553
2553
 
2554
- declare interface IVec3 {
2554
+ export declare interface IVec3 {
2555
2555
  x: number;
2556
2556
  y: number;
2557
2557
  z: number;
2558
2558
  }
2559
2559
 
2560
- declare interface IVec3Like {
2560
+ export declare interface IVec3Like {
2561
2561
  x: number;
2562
2562
  y: number;
2563
2563
  z: number;
2564
2564
  }
2565
2565
 
2566
2566
  /** glTF 虚拟子资源的通用 userData */
2567
- declare interface IVirtualAssetUserData {
2567
+ export declare interface IVirtualAssetUserData {
2568
2568
  /** 在 glTF 文件中的索引 */
2569
2569
  gltfIndex?: number;
2570
2570
  /** mesh 资源的面数 */
@@ -2580,20 +2580,20 @@ declare interface IVirtualAssetUserData {
2580
2580
  }
2581
2581
 
2582
2582
  /** JavaScript 资源的 userData */
2583
- declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
2583
+ export declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
2584
2584
 
2585
2585
  /** JSON 资源的 userData */
2586
- declare interface JsonAssetUserData {
2586
+ export declare interface JsonAssetUserData {
2587
2587
  /** 是否启用 JSON5 解析 */
2588
2588
  json5?: boolean;
2589
2589
  }
2590
2590
 
2591
- declare interface KerningDict {
2591
+ export declare interface KerningDict {
2592
2592
  [key: number]: number;
2593
2593
  }
2594
2594
 
2595
2595
  /** 标签图集资源的 userData */
2596
- declare interface LabelAtlasAssetUserData {
2596
+ export declare interface LabelAtlasAssetUserData {
2597
2597
  itemWidth: number;
2598
2598
  itemHeight: number;
2599
2599
  startChar: string;
@@ -2602,14 +2602,14 @@ declare interface LabelAtlasAssetUserData {
2602
2602
  _fntConfig: FntData;
2603
2603
  }
2604
2604
 
2605
- declare interface LODsOption {
2605
+ export declare interface LODsOption {
2606
2606
  // 屏占比
2607
2607
  screenRatio: number;
2608
2608
  // 和 lod0 的减面比
2609
2609
  faceCount: number;
2610
2610
  }
2611
2611
 
2612
- declare const enum LogLevel {
2612
+ export declare const enum LogLevel {
2613
2613
  NONE = 0,
2614
2614
  Error = 1,
2615
2615
  WARN = 2,
@@ -2617,14 +2617,14 @@ declare const enum LogLevel {
2617
2617
  DEBUG = 4
2618
2618
  }
2619
2619
 
2620
- declare type MacroItem = {
2620
+ export declare type MacroItem = {
2621
2621
  key: string;
2622
2622
  value: boolean;
2623
2623
  }
2624
2624
 
2625
- declare type MakeRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
2625
+ export declare type MakeRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
2626
2626
 
2627
- declare interface Mat4 {
2627
+ export declare interface Mat4 {
2628
2628
  m00: number;
2629
2629
  m01: number;
2630
2630
  m02: number;
@@ -2654,26 +2654,26 @@ export declare namespace Mcp {
2654
2654
  };
2655
2655
  }
2656
2656
 
2657
- declare interface MeshClusterOptions {
2657
+ export declare interface MeshClusterOptions {
2658
2658
  enable: boolean;
2659
2659
  coneCluster?: boolean;
2660
2660
  }
2661
2661
 
2662
- declare interface MeshCompressOptions {
2662
+ export declare interface MeshCompressOptions {
2663
2663
  enable: boolean;
2664
2664
  encode?: boolean;
2665
2665
  compress?: boolean;
2666
2666
  quantize?: boolean;
2667
2667
  }
2668
2668
 
2669
- declare interface MeshOptimizeOptions {
2669
+ export declare interface MeshOptimizeOptions {
2670
2670
  enable: boolean;
2671
2671
  vertexCache?: boolean;
2672
2672
  vertexFetch?: boolean;
2673
2673
  overdraw?: boolean;
2674
2674
  }
2675
2675
 
2676
- declare interface MeshOptimizerOption {
2676
+ export declare interface MeshOptimizerOption {
2677
2677
  // 是否启用此功能
2678
2678
  enable: boolean;
2679
2679
  // 减面算法,默认 simplify
@@ -2683,7 +2683,7 @@ declare interface MeshOptimizerOption {
2683
2683
  gltfpackOptions?: GltfpackOptions;
2684
2684
  }
2685
2685
 
2686
- declare interface MeshSimplifyOptions {
2686
+ export declare interface MeshSimplifyOptions {
2687
2687
  enable: boolean;
2688
2688
  targetRatio?: number;
2689
2689
  autoErrorRate?: boolean;
@@ -2691,16 +2691,16 @@ declare interface MeshSimplifyOptions {
2691
2691
  lockBoundary?: boolean;
2692
2692
  }
2693
2693
 
2694
- declare function migrate(): Promise<void>;
2694
+ export declare function migrate(): Promise<void>;
2695
2695
 
2696
- declare function migrateFromProject(): Promise<IConfiguration>;
2696
+ export declare function migrateFromProject(): Promise<IConfiguration>;
2697
2697
 
2698
- declare interface Migration {
2698
+ export declare interface Migration {
2699
2699
  version: string;
2700
2700
  migrate(moduleCache: Record<string, boolean>): Record<string, boolean>;
2701
2701
  }
2702
2702
 
2703
- declare enum MobilityMode {
2703
+ export declare enum MobilityMode {
2704
2704
  /**
2705
2705
  * @en Static node
2706
2706
  * @zh 静态节点
@@ -2718,7 +2718,7 @@ declare enum MobilityMode {
2718
2718
  Movable = 2
2719
2719
  }
2720
2720
 
2721
- declare interface ModuleRenderConfig {
2721
+ export declare interface ModuleRenderConfig {
2722
2722
  $schema?: string;
2723
2723
 
2724
2724
  /**
@@ -2742,9 +2742,9 @@ declare interface ModuleRenderConfig {
2742
2742
  /**
2743
2743
  * Move Asset // 移动资源
2744
2744
  */
2745
- declare function moveAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
2745
+ export declare function moveAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
2746
2746
 
2747
- declare enum NodeEventType {
2747
+ export declare enum NodeEventType {
2748
2748
  TRANSFORM_CHANGED = 'transform-changed',// 节点改变位置、旋转或缩放事件
2749
2749
  SIZE_CHANGED = 'size-changed',// 当节点尺寸改变时触发的事件
2750
2750
  ANCHOR_CHANGED = 'anchor-changed',// 当节点锚点改变时触发的事件
@@ -2764,7 +2764,7 @@ declare enum NodeEventType {
2764
2764
  RESET_COMPONENT = 'reset-component'
2765
2765
  }
2766
2766
 
2767
- declare enum NodeType {
2767
+ export declare enum NodeType {
2768
2768
  EMPTY = 'Empty',// 空节点
2769
2769
  TERRAIN = 'Terrain',// 地形节点
2770
2770
  CAMERA = 'Camera',// 摄像机节点(需要用过 TWorkMode 来区分 2D 和 3D)
@@ -2804,7 +2804,7 @@ declare enum NodeType {
2804
2804
  REFLECTION_LIGHT = 'Light-Reflection-Probe'
2805
2805
  }
2806
2806
 
2807
- declare enum NormalImportSetting {
2807
+ export declare enum NormalImportSetting {
2808
2808
  /**
2809
2809
  * 如果模型文件中包含法线信息则导出法线,否则不导出法线。
2810
2810
  */
@@ -2839,7 +2839,7 @@ declare enum NormalImportSetting {
2839
2839
  * removeListener();
2840
2840
  * ```
2841
2841
  */
2842
- declare function onAssetAdded(listener: (info: IAssetInfo) => void): () => void;
2842
+ export declare function onAssetAdded(listener: (info: IAssetInfo) => void): () => void;
2843
2843
 
2844
2844
  /**
2845
2845
  * Listen to Asset Changed Event // 监听资源变更事件
@@ -2855,7 +2855,7 @@ declare function onAssetAdded(listener: (info: IAssetInfo) => void): () => void;
2855
2855
  * removeListener();
2856
2856
  * ```
2857
2857
  */
2858
- declare function onAssetChanged(listener: (info: IAssetInfo) => void): () => void;
2858
+ export declare function onAssetChanged(listener: (info: IAssetInfo) => void): () => void;
2859
2859
 
2860
2860
  /**
2861
2861
  * Listen to Asset Removed Event // 监听资源删除事件
@@ -2871,7 +2871,7 @@ declare function onAssetChanged(listener: (info: IAssetInfo) => void): () => voi
2871
2871
  * removeListener();
2872
2872
  * ```
2873
2873
  */
2874
- declare function onAssetRemoved(listener: (info: IAssetInfo) => void): () => void;
2874
+ export declare function onAssetRemoved(listener: (info: IAssetInfo) => void): () => void;
2875
2875
 
2876
2876
  /**
2877
2877
  * Register listener for when a specific database finishes starting.
@@ -2885,14 +2885,14 @@ declare function onAssetRemoved(listener: (info: IAssetInfo) => void): () => voi
2885
2885
  * @param listener 回调函数,接收启动完成的 dbInfo
2886
2886
  * @returns 移除监听的函数
2887
2887
  */
2888
- declare function onDBReady(listener: (dbInfo: IAssetDBInfo) => void): () => void;
2888
+ export declare function onDBReady(listener: (dbInfo: IAssetDBInfo) => void): () => void;
2889
2889
 
2890
2890
  /**
2891
2891
  * 注册 configurationManager 保存事件的监听器
2892
2892
  * 每次 cocos.config.json 被写入磁盘时触发
2893
2893
  * @returns 取消监听的函数
2894
2894
  */
2895
- declare function onDidSave(callback: () => void): () => void;
2895
+ export declare function onDidSave(callback: () => void): () => void;
2896
2896
 
2897
2897
  /**
2898
2898
  * Register listener for initialization progress.
@@ -2906,7 +2906,7 @@ declare function onDidSave(callback: () => void): () => void;
2906
2906
  * @param listener 回调函数,包含当前进度、总数、当前处理的资源 url 和导入状态
2907
2907
  * @returns 移除监听的函数
2908
2908
  */
2909
- declare function onProgress(listener: (current: number, total: number, url: string, state: 'processing' | 'success' | 'failed') => void): () => void;
2909
+ export declare function onProgress(listener: (current: number, total: number, url: string, state: 'processing' | 'success' | 'failed') => void): () => void;
2910
2910
 
2911
2911
  /**
2912
2912
  * Register listener for when all asset databases are fully initialized.
@@ -2921,20 +2921,20 @@ declare function onProgress(listener: (current: number, total: number, url: stri
2921
2921
  * @param listener 回调函数
2922
2922
  * @returns 移除监听的函数
2923
2923
  */
2924
- declare function onReady(listener: () => void): () => void;
2924
+ export declare function onReady(listener: () => void): () => void;
2925
2925
 
2926
- declare function open_2(projectPath: string): Promise<void>;
2926
+ export declare function open_2(projectPath: string): Promise<void>;
2927
2927
 
2928
- declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
2928
+ export declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
2929
2929
 
2930
- declare enum OptimizationPolicy {
2930
+ export declare enum OptimizationPolicy {
2931
2931
  AUTO = 0,
2932
2932
  SINGLE_INSTANCE = 1,
2933
2933
  MULTI_INSTANCE = 2
2934
2934
  }
2935
2935
 
2936
2936
  /** 粒子资源的 userData */
2937
- declare interface ParticleAssetUserData {
2937
+ export declare interface ParticleAssetUserData {
2938
2938
  totalParticles: number;
2939
2939
  life: number;
2940
2940
  lifeVar: number;
@@ -2977,7 +2977,7 @@ declare interface ParticleAssetUserData {
2977
2977
  spriteFrameUuid: string;
2978
2978
  }
2979
2979
 
2980
- declare interface PluginScriptInfo {
2980
+ export declare interface PluginScriptInfo {
2981
2981
  /**
2982
2982
  * 脚本文件。
2983
2983
  */
@@ -2986,7 +2986,7 @@ declare interface PluginScriptInfo {
2986
2986
  }
2987
2987
 
2988
2988
  /** JavaScript 插件脚本的 userData */
2989
- declare interface PluginScriptUserData {
2989
+ export declare interface PluginScriptUserData {
2990
2990
  isPlugin: true;
2991
2991
  /** 界面没有开放给用户。默认开启 */
2992
2992
  experimentalHideCommonJs?: boolean;
@@ -3004,21 +3004,21 @@ declare interface PluginScriptUserData {
3004
3004
  }
3005
3005
 
3006
3006
  /** 场景/预制体资源的 userData */
3007
- declare interface PrefabAssetUserData {
3007
+ export declare interface PrefabAssetUserData {
3008
3008
  /** 是否为持久节点 */
3009
3009
  persistent?: boolean;
3010
3010
  /** 同步节点名称 */
3011
3011
  syncNodeName?: string;
3012
3012
  }
3013
3013
 
3014
- declare enum PrefabState {
3014
+ export declare enum PrefabState {
3015
3015
  NotAPrefab = 0,// Normal node, not a Prefab
3016
3016
  PrefabChild = 1,// Child node of a Prefab, without PrefabInstance
3017
3017
  PrefabInstance = 2,// Root node of a Prefab that contains a PrefabInstance
3018
3018
  PrefabLostAsset = 3
3019
3019
  }
3020
3020
 
3021
- declare class ProgrammingFacet {
3021
+ export declare class ProgrammingFacet {
3022
3022
  private _packerDriverUpdateCount;
3023
3023
  private _asyncIteration;
3024
3024
  static create(engine: IEngineOptions, projectPath: string): Promise<ProgrammingFacet>;
@@ -3065,7 +3065,7 @@ export declare namespace Project {
3065
3065
  };
3066
3066
  }
3067
3067
 
3068
- declare class Project_2 implements IProject {
3068
+ export declare class Project_2 implements IProject {
3069
3069
  /**
3070
3070
  * The version of the Project
3071
3071
  */
@@ -3108,7 +3108,7 @@ declare class Project_2 implements IProject {
3108
3108
  /**
3109
3109
  * Project creator information
3110
3110
  */
3111
- declare interface ProjectCreatorInfo {
3111
+ export declare interface ProjectCreatorInfo {
3112
3112
  /**
3113
3113
  * Version of the tool or engine used to create the project
3114
3114
  */
@@ -3137,7 +3137,7 @@ declare interface ProjectCreatorInfo {
3137
3137
  /**
3138
3138
  * Project information
3139
3139
  */
3140
- declare interface ProjectInfo {
3140
+ export declare interface ProjectInfo {
3141
3141
  /**
3142
3142
  * Project name
3143
3143
  */
@@ -3174,39 +3174,39 @@ declare interface ProjectInfo {
3174
3174
  * - '2d': 2D Project
3175
3175
  * - '3d': 3D Project
3176
3176
  */
3177
- declare type ProjectType = '2d' | '3d';
3177
+ export declare type ProjectType = '2d' | '3d';
3178
3178
 
3179
3179
  /**
3180
3180
  * Query Asset Config Map // 查询资源配置映射表
3181
3181
  */
3182
- declare function queryAssetConfigMap(): Promise<Record<string, IAssetConfig>>;
3182
+ export declare function queryAssetConfigMap(): Promise<Record<string, IAssetConfig>>;
3183
3183
 
3184
3184
  /**
3185
3185
  * Query All Asset Database Info // 查询所有资源数据库信息
3186
3186
  */
3187
- declare function queryAssetDBInfos(): Promise<Record<string, IAssetDBInfo>>;
3187
+ export declare function queryAssetDBInfos(): Promise<Record<string, IAssetDBInfo>>;
3188
3188
 
3189
3189
  /**
3190
3190
  * Query Asset Dependencies // 查询资源依赖
3191
3191
  */
3192
- declare function queryAssetDependencies(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3192
+ export declare function queryAssetDependencies(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3193
3193
 
3194
3194
  /**
3195
3195
  * Query Asset Info // 查询资源信息
3196
3196
  */
3197
- declare function queryAssetInfo(urlOrUUIDOrPath: string, dataKeys?: string[] | undefined): Promise<IAssetInfo | null>;
3197
+ export declare function queryAssetInfo(urlOrUUIDOrPath: string, dataKeys?: string[] | undefined): Promise<IAssetInfo | null>;
3198
3198
 
3199
3199
  /**
3200
3200
  * Batch Query Asset Info // 批量查询资源信息
3201
3201
  */
3202
- declare function queryAssetInfos(options?: QueryAssetsOption): Promise<IAssetInfo[]>;
3202
+ export declare function queryAssetInfos(options?: QueryAssetsOption): Promise<IAssetInfo[]>;
3203
3203
 
3204
3204
  /**
3205
3205
  * Query Asset Metadata // 查询资源元数据
3206
3206
  */
3207
- declare function queryAssetMeta(urlOrUUIDOrPath: string): Promise<IAssetMeta<'unknown'> | null>;
3207
+ export declare function queryAssetMeta(urlOrUUIDOrPath: string): Promise<IAssetMeta<'unknown'> | null>;
3208
3208
 
3209
- declare interface QueryAssetsOption {
3209
+ export declare interface QueryAssetsOption {
3210
3210
  ccType?: string | string[], // 'cc.ImageAsset' 这类,多个用数组
3211
3211
  isBundle?: boolean, // 筛选 asset bundle 信息,搜索子包只能与 pattern 选项共存
3212
3212
  importer?: string | string[], // 导入名称,多个用数组
@@ -3222,24 +3222,24 @@ declare interface QueryAssetsOption {
3222
3222
  type?: string;
3223
3223
  }
3224
3224
 
3225
- declare type QueryAssetType = 'asset' | 'script' | 'all';
3225
+ export declare type QueryAssetType = 'asset' | 'script' | 'all';
3226
3226
 
3227
3227
  /**
3228
3228
  * Query Asset User Data Config // 查询资源用户数据配置
3229
3229
  */
3230
- declare function queryAssetUserDataConfig(urlOrUuidOrPath: string): Promise<false | Record<string, IUerDataConfigItem> | undefined>;
3230
+ export declare function queryAssetUserDataConfig(urlOrUuidOrPath: string): Promise<false | Record<string, IUerDataConfigItem> | undefined>;
3231
3231
 
3232
3232
  /**
3233
3233
  * Query Asset Users // 查询资源使用者
3234
3234
  */
3235
- declare function queryAssetUsers(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3235
+ export declare function queryAssetUsers(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3236
3236
 
3237
3237
  /**
3238
3238
  * Query Creatable Asset Map // 查询可创建资源映射表
3239
3239
  */
3240
- declare function queryCreateMap(): Promise<ICreateMenuInfo[]>;
3240
+ export declare function queryCreateMap(): Promise<ICreateMenuInfo[]>;
3241
3241
 
3242
- declare function queryLayerBuiltin(): Promise<{
3242
+ export declare function queryLayerBuiltin(): Promise<{
3243
3243
  name: string;
3244
3244
  value: number;
3245
3245
  }[]>;
@@ -3247,34 +3247,34 @@ declare function queryLayerBuiltin(): Promise<{
3247
3247
  /**
3248
3248
  * Query Asset Path // 查询资源路径
3249
3249
  */
3250
- declare function queryPath(urlOrUuid: string): Promise<string>;
3250
+ export declare function queryPath(urlOrUuid: string): Promise<string>;
3251
3251
 
3252
3252
  /**
3253
3253
  * Query Sorted Plugin Scripts // 查询排序后的插件脚本
3254
3254
  */
3255
- declare function querySortedPlugins(filterOptions?: FilterPluginOptions): Promise<IPluginScriptInfo[]>;
3255
+ export declare function querySortedPlugins(filterOptions?: FilterPluginOptions): Promise<IPluginScriptInfo[]>;
3256
3256
 
3257
- declare function querySortingLayerBuiltin(): Promise<readonly __private._cocos_sorting_sorting_layers__SortingItem[]>;
3257
+ export declare function querySortingLayerBuiltin(): Promise<readonly __private._cocos_sorting_sorting_layers__SortingItem[]>;
3258
3258
 
3259
3259
  /**
3260
3260
  * Query Thumbnail Handlers // 查询支持缩略图生成的资源处理器列表
3261
3261
  */
3262
- declare function queryThumbnailHandlers(): string[];
3262
+ export declare function queryThumbnailHandlers(): string[];
3263
3263
 
3264
3264
  /**
3265
3265
  * Query Asset URL // 查询资源 URL
3266
3266
  */
3267
- declare function queryUrl(uuidOrPath: string): Promise<string>;
3267
+ export declare function queryUrl(uuidOrPath: string): Promise<string>;
3268
3268
 
3269
3269
  /**
3270
3270
  * Query Asset UUID // 查询资源 UUID
3271
3271
  */
3272
- declare function queryUUID(urlOrPath: string): Promise<string | null>;
3272
+ export declare function queryUUID(urlOrPath: string): Promise<string | null>;
3273
3273
 
3274
3274
  /**
3275
3275
  * Refresh Asset Directory // 刷新资源目录
3276
3276
  */
3277
- declare function refresh(dir: string): Promise<number>;
3277
+ export declare function refresh(dir: string): Promise<number>;
3278
3278
 
3279
3279
  /**
3280
3280
  * MCP Facade Module
@@ -3295,7 +3295,7 @@ declare function refresh(dir: string): Promise<number>;
3295
3295
  *
3296
3296
  * @returns MCP endpoint URL (e.g. http://localhost:9527/mcp)
3297
3297
  */
3298
- declare function register(): Promise<string>;
3298
+ export declare function register(): Promise<string>;
3299
3299
 
3300
3300
  /**
3301
3301
  * Register a middleware contribution (routes, static files, sockets)
@@ -3304,19 +3304,19 @@ declare function register(): Promise<string>;
3304
3304
  * @param name Middleware identifier
3305
3305
  * @param module Middleware contribution config
3306
3306
  */
3307
- declare function register_2(name: string, module: IMiddlewareContribution): Promise<void>;
3307
+ export declare function register_2(name: string, module: IMiddlewareContribution): Promise<void>;
3308
3308
 
3309
3309
  /**
3310
3310
  * Reimport Asset // 重新导入资源
3311
3311
  */
3312
- declare function reimportAsset(pathOrUrlOrUUID: string): Promise<IAssetInfo>;
3312
+ export declare function reimportAsset(pathOrUrlOrUUID: string): Promise<IAssetInfo>;
3313
3313
 
3314
- declare function reload(): Promise<void>;
3314
+ export declare function reload(): Promise<void>;
3315
3315
 
3316
3316
  /**
3317
3317
  * 重载结果
3318
3318
  */
3319
- declare enum ReloadResult {
3319
+ export declare enum ReloadResult {
3320
3320
  SUCCESS = 0,
3321
3321
  FAILED = 1,
3322
3322
  QUEUED = 2,
@@ -3325,21 +3325,21 @@ declare enum ReloadResult {
3325
3325
  EDITOR_NOT_FOUND = 5
3326
3326
  }
3327
3327
 
3328
- declare function remove(key: string, scope?: ConfigurationScope): Promise<boolean>;
3328
+ export declare function remove(key: string, scope?: ConfigurationScope): Promise<boolean>;
3329
3329
 
3330
3330
  /**
3331
3331
  * Rename Asset // 重命名资源
3332
3332
  */
3333
- declare function renameAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
3333
+ export declare function renameAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
3334
3334
 
3335
3335
  /** 渲染纹理资源的 userData */
3336
- declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
3336
+ export declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
3337
3337
  width: number;
3338
3338
  height: number;
3339
3339
  }
3340
3340
 
3341
3341
  /** 渲染纹理精灵帧的 userData */
3342
- declare interface RtSpriteFrameAssetUserData {
3342
+ export declare interface RtSpriteFrameAssetUserData {
3343
3343
  /** 图片 UUID 或数据库 URI */
3344
3344
  imageUuidOrDatabaseUri: string;
3345
3345
  /** 宽度 */
@@ -3348,12 +3348,12 @@ declare interface RtSpriteFrameAssetUserData {
3348
3348
  height?: number;
3349
3349
  }
3350
3350
 
3351
- declare function save(force?: boolean): Promise<void>;
3351
+ export declare function save(force?: boolean): Promise<void>;
3352
3352
 
3353
3353
  /**
3354
3354
  * Save Asset // 保存资源
3355
3355
  */
3356
- declare function saveAsset(pathOrUrlOrUUID: string, data: string | Buffer): Promise<IAssetInfo>;
3356
+ export declare function saveAsset(pathOrUrlOrUUID: string, data: string | Buffer): Promise<IAssetInfo>;
3357
3357
 
3358
3358
  export declare namespace Scene {
3359
3359
  export {
@@ -3365,13 +3365,13 @@ export declare namespace Scene {
3365
3365
  /**
3366
3366
  * 场景模板类型
3367
3367
  */
3368
- declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
3368
+ export declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
3369
3369
 
3370
- declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
3370
+ export declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
3371
3371
 
3372
- declare type SceneKeyboardEvent = 'keydown' | 'keyup';
3372
+ export declare type SceneKeyboardEvent = 'keydown' | 'keyup';
3373
3373
 
3374
- declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
3374
+ export declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
3375
3375
 
3376
3376
  export declare namespace Scripting {
3377
3377
  export {
@@ -3386,11 +3386,11 @@ export declare namespace Scripting {
3386
3386
  }
3387
3387
 
3388
3388
  /** JavaScript 脚本模块的 userData */
3389
- declare interface ScriptModuleUserData {
3389
+ export declare interface ScriptModuleUserData {
3390
3390
  isPlugin: false;
3391
3391
  }
3392
3392
 
3393
- declare interface SerializedAssetFinder {
3393
+ export declare interface SerializedAssetFinder {
3394
3394
  meshes?: Array<string | null>;
3395
3395
  animations?: Array<string | null>;
3396
3396
  skeletons?: Array<string | null>;
@@ -3409,9 +3409,9 @@ export declare namespace Server {
3409
3409
  };
3410
3410
  }
3411
3411
 
3412
- declare function set<T>(key: string, value: T, scope?: ConfigurationScope): Promise<boolean>;
3412
+ export declare function set<T>(key: string, value: T, scope?: ConfigurationScope): Promise<boolean>;
3413
3413
 
3414
- declare interface SharedSettings {
3414
+ export declare interface SharedSettings {
3415
3415
  useDefineForClassFields: boolean;
3416
3416
  allowDeclareFields: boolean;
3417
3417
  loose: boolean;
@@ -3427,7 +3427,7 @@ declare interface SharedSettings {
3427
3427
  };
3428
3428
  }
3429
3429
 
3430
- declare interface SimplifyOptions {
3430
+ export declare interface SimplifyOptions {
3431
3431
  // 压缩比例
3432
3432
  targetRatio?: number;
3433
3433
  // 防止破面
@@ -3439,13 +3439,13 @@ declare interface SimplifyOptions {
3439
3439
  }
3440
3440
 
3441
3441
  /** Spine 资源的 userData */
3442
- declare interface SpineAssetUserData {
3442
+ export declare interface SpineAssetUserData {
3443
3443
  /** 图集资源的 UUID */
3444
3444
  atlasUuid: string;
3445
3445
  }
3446
3446
 
3447
3447
  /** 精灵图集资源的 userData */
3448
- declare interface SpriteAtlasAssetUserData {
3448
+ export declare interface SpriteAtlasAssetUserData {
3449
3449
  /** 图集纹理名称 */
3450
3450
  atlasTextureName: string;
3451
3451
  /** 纹理 UUID */
@@ -3458,12 +3458,12 @@ declare interface SpriteAtlasAssetUserData {
3458
3458
  format: number;
3459
3459
  }
3460
3460
 
3461
- declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
3461
+ export declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
3462
3462
  isUuid?: boolean;
3463
3463
  imageUuidOrDatabaseUri: string;
3464
3464
  }
3465
3465
 
3466
- declare interface SpriteFrameBaseAssetUserData {
3466
+ export declare interface SpriteFrameBaseAssetUserData {
3467
3467
  trimType?: string;
3468
3468
  trimThreshold: number;
3469
3469
  rotated: boolean;
@@ -3487,7 +3487,7 @@ declare interface SpriteFrameBaseAssetUserData {
3487
3487
  vertices: SpriteFrameVertices;
3488
3488
  }
3489
3489
 
3490
- declare interface SpriteFrameVertices {
3490
+ export declare interface SpriteFrameVertices {
3491
3491
  rawPosition: number[];
3492
3492
  indexes: number[];
3493
3493
  uv: number[];
@@ -3500,7 +3500,7 @@ declare interface SpriteFrameVertices {
3500
3500
  /**
3501
3501
  * Start Asset DB // 启动资源数据库,开始扫描和导入资源
3502
3502
  */
3503
- declare function start(): Promise<void>;
3503
+ export declare function start(): Promise<void>;
3504
3504
 
3505
3505
  /**
3506
3506
  * Server Facade Module
@@ -3514,32 +3514,32 @@ declare function start(): Promise<void>;
3514
3514
  * @param port Optional port number; auto-selected if omitted
3515
3515
  * @returns The server base URL (e.g. http://localhost:9527)
3516
3516
  */
3517
- declare function start_2(port?: number): Promise<string>;
3517
+ export declare function start_2(port?: number): Promise<string>;
3518
3518
 
3519
3519
  /**
3520
3520
  * 在独立的子进程中运行项目脚本编译
3521
3521
  * 以避免阻塞主进程
3522
3522
  */
3523
- declare function startCompileScript(assetChanges?: AssetChangeInfo[]): Promise<void>;
3523
+ export declare function startCompileScript(assetChanges?: AssetChangeInfo[]): Promise<void>;
3524
3524
 
3525
- declare function startEngineCompilation(force?: boolean): Promise<void>;
3525
+ export declare function startEngineCompilation(force?: boolean): Promise<void>;
3526
3526
 
3527
3527
  /**
3528
3528
  * Start the scene worker process.
3529
3529
  *
3530
3530
  * @param projectPath Path to the project directory
3531
3531
  */
3532
- declare function startupWorker(projectPath: string): Promise<void>;
3532
+ export declare function startupWorker(projectPath: string): Promise<void>;
3533
3533
 
3534
3534
  /**
3535
3535
  * Stop the Express HTTP server.
3536
3536
  */
3537
- declare function stop_2(): Promise<void>;
3537
+ export declare function stop_2(): Promise<void>;
3538
3538
 
3539
3539
  /** 支持创建的资源类型常量数组(用于 Zod enum 和 TypeScript type) */
3540
- declare const SUPPORT_CREATE_TYPES: readonly ['animation-clip', 'typescript', 'auto-atlas', 'effect', 'scene', 'prefab', 'material', 'terrain', 'physics-material', 'label-atlas', 'render-texture', 'directory', 'effect-header'];
3540
+ export declare const SUPPORT_CREATE_TYPES: readonly ['animation-clip', 'typescript', 'auto-atlas', 'effect', 'scene', 'prefab', 'material', 'terrain', 'physics-material', 'label-atlas', 'render-texture', 'directory', 'effect-header'];
3541
3541
 
3542
- declare enum TangentImportSetting {
3542
+ export declare enum TangentImportSetting {
3543
3543
  /**
3544
3544
  * 不在导出的网格中包含正切信息。
3545
3545
  */
@@ -3558,16 +3558,16 @@ declare enum TangentImportSetting {
3558
3558
  recalculate = 3
3559
3559
  }
3560
3560
 
3561
- declare type TEditorEntity = IScene | INode;
3561
+ export declare type TEditorEntity = IScene | INode;
3562
3562
 
3563
- declare type TEditorInstance = Scene_2 | Node_2;
3563
+ export declare type TEditorInstance = Scene_2 | Node_2;
3564
3564
 
3565
- declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
3565
+ export declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
3566
3566
  isUuid?: boolean;
3567
3567
  imageUuidOrDatabaseUri?: string;
3568
3568
  }
3569
3569
 
3570
- declare interface TextureBaseAssetUserData {
3570
+ export declare interface TextureBaseAssetUserData {
3571
3571
  wrapModeS: WrapMode;
3572
3572
  wrapModeT: WrapMode;
3573
3573
  minfilter: Filter;
@@ -3576,7 +3576,7 @@ declare interface TextureBaseAssetUserData {
3576
3576
  anisotropy: number;
3577
3577
  }
3578
3578
 
3579
- declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
3579
+ export declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
3580
3580
  imageDatabaseUri?: string;
3581
3581
  isRGBE: boolean;
3582
3582
 
@@ -3597,49 +3597,49 @@ declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
3597
3597
  bottom?: string;
3598
3598
  }
3599
3599
 
3600
- declare interface ThumbnailInfo {
3600
+ export declare interface ThumbnailInfo {
3601
3601
  type: 'icon' | 'image',
3602
3602
  value: string; // 具体 icon 名字或者 image 路径,image 路径支持绝对路径、 db:// 、 project:// 、和 packages:// 下的路径
3603
3603
  }
3604
3604
 
3605
- declare type ThumbnailSize = 'large' | 'small' | 'middle' | 'origin';
3605
+ export declare type ThumbnailSize = 'large' | 'small' | 'middle' | 'origin';
3606
3606
 
3607
- declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
3607
+ export declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
3608
3608
 
3609
3609
  /**
3610
3610
  * Clean up MCP state.
3611
3611
  * Note: does NOT stop the Express server — use the Server module for that.
3612
3612
  */
3613
- declare function unregister(): Promise<void>;
3613
+ export declare function unregister(): Promise<void>;
3614
3614
 
3615
3615
  /**
3616
3616
  * Update Asset User Data // 更新资源用户数据
3617
3617
  */
3618
- declare function updateAssetUserData(urlOrUuidOrPath: string, path: string, value: any): Promise<any>;
3618
+ export declare function updateAssetUserData(urlOrUuidOrPath: string, path: string, value: any): Promise<any>;
3619
3619
 
3620
3620
  /**
3621
3621
  * Update Default User Data // 更新默认用户数据
3622
3622
  */
3623
- declare function updateDefaultUserData(handler: string, path: string, value: any): Promise<void>;
3623
+ export declare function updateDefaultUserData(handler: string, path: string, value: any): Promise<void>;
3624
3624
 
3625
- declare interface Vec2 {
3625
+ export declare interface Vec2 {
3626
3626
  x: number;
3627
3627
  y: number;
3628
3628
  }
3629
3629
 
3630
- declare interface Vec3 {
3630
+ export declare interface Vec3 {
3631
3631
  x: number;
3632
3632
  y: number;
3633
3633
  z: number;
3634
3634
  }
3635
3635
 
3636
- declare interface Vec4 {
3636
+ export declare interface Vec4 {
3637
3637
  x: number;
3638
3638
  y: number;
3639
3639
  z: number;
3640
3640
  w: number;
3641
3641
  }
3642
3642
 
3643
- declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
3643
+ export declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
3644
3644
 
3645
3645
  export { };