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

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;
@@ -2323,6 +2323,8 @@ declare interface ISceneMouseEvent {
2323
2323
  rightButton: boolean;
2324
2324
  button: number;
2325
2325
  buttons: number;
2326
+ movementX: number;
2327
+ movementY: number;
2326
2328
  ctrlKey: boolean;
2327
2329
  shiftKey: boolean;
2328
2330
  altKey: boolean;
@@ -2332,7 +2334,7 @@ declare interface ISceneMouseEvent {
2332
2334
  handleName?: string;
2333
2335
  }
2334
2336
 
2335
- declare interface ISceneViewService {
2337
+ export declare interface ISceneViewService {
2336
2338
  init(): void;
2337
2339
  initFromConfig(): Promise<void>;
2338
2340
  saveConfig(): Promise<void>;
@@ -2344,7 +2346,7 @@ declare interface ISceneViewService {
2344
2346
  onComponentRemoved(comp: Component): void;
2345
2347
  }
2346
2348
 
2347
- declare interface IScriptService extends IServiceEvents {
2349
+ export declare interface IScriptService extends IServiceEvents {
2348
2350
  investigatePackerDriver(): Promise<void>;
2349
2351
  loadScript(): Promise<void>;
2350
2352
  removeScript(): Promise<void>;
@@ -2355,7 +2357,7 @@ declare interface IScriptService extends IServiceEvents {
2355
2357
  suspend(condition: Promise<any>): void;
2356
2358
  }
2357
2359
 
2358
- declare interface ISelectionService {
2360
+ export declare interface ISelectionService {
2359
2361
  select(uuid: string): void;
2360
2362
  unselect(uuid: string): void;
2361
2363
  clear(): void;
@@ -2364,7 +2366,7 @@ declare interface ISelectionService {
2364
2366
  reset(): void;
2365
2367
  }
2366
2368
 
2367
- declare interface IServiceEvents {
2369
+ export declare interface IServiceEvents {
2368
2370
  onEditorOpened?(): void;
2369
2371
  onEditorReload?(): void;
2370
2372
  onEditorClosed?(): void;
@@ -2415,7 +2417,7 @@ export declare interface IServiceManager {
2415
2417
  /**
2416
2418
  * CLI 设置组件属性的选项
2417
2419
  */
2418
- declare interface ISetPropertyOptions {
2420
+ export declare interface ISetPropertyOptions {
2419
2421
  componentPath: string;
2420
2422
  properties: {
2421
2423
  [key: string]: null | undefined | number | boolean | string | object | Array<unknown>;
@@ -2426,26 +2428,26 @@ declare interface ISetPropertyOptions {
2426
2428
  /**
2427
2429
  * 编辑器设置组件属性的选项
2428
2430
  */
2429
- declare interface ISetPropertyOptionsForEditor {
2431
+ export declare interface ISetPropertyOptionsForEditor {
2430
2432
  uuid: string;
2431
2433
  path: string;
2432
2434
  dump: IProperty;
2433
2435
  record?: boolean;
2434
2436
  }
2435
2437
 
2436
- declare interface ISocketConfig {
2438
+ export declare interface ISocketConfig {
2437
2439
  connection: (socket: any) => void;
2438
2440
  disconnect: (socket: any) => void;
2439
2441
  }
2440
2442
 
2441
- declare interface ISplashBackgroundColor {
2443
+ export declare interface ISplashBackgroundColor {
2442
2444
  x: number;
2443
2445
  y: number;
2444
2446
  z: number;
2445
2447
  w: number;
2446
2448
  }
2447
2449
 
2448
- declare interface ISplashSetting {
2450
+ export declare interface ISplashSetting {
2449
2451
  displayRatio: number;
2450
2452
  totalTime: number;
2451
2453
  watermarkLocation: 'default' | 'topLeft' | 'topRight' | 'topCenter' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
@@ -2464,12 +2466,12 @@ declare interface ISplashSetting {
2464
2466
  }
2465
2467
  }
2466
2468
 
2467
- declare interface IStaticFileConfig {
2469
+ export declare interface IStaticFileConfig {
2468
2470
  url: string;
2469
2471
  path: string;
2470
2472
  }
2471
2473
 
2472
- declare type ISupportCreateCCType =
2474
+ export declare type ISupportCreateCCType =
2473
2475
  | 'cc.AnimationClip' // 动画剪辑
2474
2476
  | 'cc.Script' // 脚本(TypeScript/JavaScript)
2475
2477
  | 'cc.SpriteAtlas' // 精灵图集(自动图集)
@@ -2487,13 +2489,13 @@ declare type ISupportCreateCCType =
2487
2489
  | 'cc.AnimationGraphVariant';
2488
2490
 
2489
2491
  /** 支持创建的资源类型(从常量数组派生) */
2490
- declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
2492
+ export declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
2491
2493
 
2492
- declare interface ITargetInfo {
2494
+ export declare interface ITargetInfo {
2493
2495
  localID: string[];
2494
2496
  }
2495
2497
 
2496
- declare interface ITargetOverrideInfo {
2498
+ export declare interface ITargetOverrideInfo {
2497
2499
  source: IComponentIdentifier | INodeIdentifier | null;
2498
2500
  sourceInfo: ITargetInfo | null;
2499
2501
  propertyPath: string[];
@@ -2501,7 +2503,7 @@ declare interface ITargetOverrideInfo {
2501
2503
  targetInfo: ITargetInfo | null;
2502
2504
  }
2503
2505
 
2504
- declare interface IUerDataConfigItem {
2506
+ export declare interface IUerDataConfigItem {
2505
2507
  key?: string; // 唯一标识符
2506
2508
  // 配置显示的名字,如果需要翻译,则传入 i18n:${key}
2507
2509
  label?: string;
@@ -2523,7 +2525,7 @@ declare interface IUerDataConfigItem {
2523
2525
  };
2524
2526
  }
2525
2527
 
2526
- declare interface IUndoService {
2528
+ export declare interface IUndoService {
2527
2529
  beginRecording(uuids: string[], options?: any): string;
2528
2530
  endRecording(commandId: string): void;
2529
2531
  cancelRecording(commandId: string): void;
@@ -2534,37 +2536,37 @@ declare interface IUndoService {
2534
2536
  isDirty(): boolean;
2535
2537
  }
2536
2538
 
2537
- declare interface IUnpackPrefabInstanceParams {
2539
+ export declare interface IUnpackPrefabInstanceParams {
2538
2540
  /** 要解耦的预制体实例节点 */
2539
2541
  nodePath: string;
2540
2542
  /** 递归解耦所有子预制体 */
2541
2543
  recursive?: boolean;
2542
2544
  }
2543
2545
 
2544
- declare interface IUpdateNodeParams {
2546
+ export declare interface IUpdateNodeParams {
2545
2547
  path: string;
2546
2548
  name?: string;
2547
2549
  properties?: Partial<INodeProperties>;
2548
2550
  }
2549
2551
 
2550
- declare interface IUpdateNodeResult {
2552
+ export declare interface IUpdateNodeResult {
2551
2553
  path: string;
2552
2554
  }
2553
2555
 
2554
- declare interface IVec3 {
2556
+ export declare interface IVec3 {
2555
2557
  x: number;
2556
2558
  y: number;
2557
2559
  z: number;
2558
2560
  }
2559
2561
 
2560
- declare interface IVec3Like {
2562
+ export declare interface IVec3Like {
2561
2563
  x: number;
2562
2564
  y: number;
2563
2565
  z: number;
2564
2566
  }
2565
2567
 
2566
2568
  /** glTF 虚拟子资源的通用 userData */
2567
- declare interface IVirtualAssetUserData {
2569
+ export declare interface IVirtualAssetUserData {
2568
2570
  /** 在 glTF 文件中的索引 */
2569
2571
  gltfIndex?: number;
2570
2572
  /** mesh 资源的面数 */
@@ -2580,20 +2582,20 @@ declare interface IVirtualAssetUserData {
2580
2582
  }
2581
2583
 
2582
2584
  /** JavaScript 资源的 userData */
2583
- declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
2585
+ export declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
2584
2586
 
2585
2587
  /** JSON 资源的 userData */
2586
- declare interface JsonAssetUserData {
2588
+ export declare interface JsonAssetUserData {
2587
2589
  /** 是否启用 JSON5 解析 */
2588
2590
  json5?: boolean;
2589
2591
  }
2590
2592
 
2591
- declare interface KerningDict {
2593
+ export declare interface KerningDict {
2592
2594
  [key: number]: number;
2593
2595
  }
2594
2596
 
2595
2597
  /** 标签图集资源的 userData */
2596
- declare interface LabelAtlasAssetUserData {
2598
+ export declare interface LabelAtlasAssetUserData {
2597
2599
  itemWidth: number;
2598
2600
  itemHeight: number;
2599
2601
  startChar: string;
@@ -2602,14 +2604,14 @@ declare interface LabelAtlasAssetUserData {
2602
2604
  _fntConfig: FntData;
2603
2605
  }
2604
2606
 
2605
- declare interface LODsOption {
2607
+ export declare interface LODsOption {
2606
2608
  // 屏占比
2607
2609
  screenRatio: number;
2608
2610
  // 和 lod0 的减面比
2609
2611
  faceCount: number;
2610
2612
  }
2611
2613
 
2612
- declare const enum LogLevel {
2614
+ export declare const enum LogLevel {
2613
2615
  NONE = 0,
2614
2616
  Error = 1,
2615
2617
  WARN = 2,
@@ -2617,14 +2619,14 @@ declare const enum LogLevel {
2617
2619
  DEBUG = 4
2618
2620
  }
2619
2621
 
2620
- declare type MacroItem = {
2622
+ export declare type MacroItem = {
2621
2623
  key: string;
2622
2624
  value: boolean;
2623
2625
  }
2624
2626
 
2625
- declare type MakeRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
2627
+ export declare type MakeRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
2626
2628
 
2627
- declare interface Mat4 {
2629
+ export declare interface Mat4 {
2628
2630
  m00: number;
2629
2631
  m01: number;
2630
2632
  m02: number;
@@ -2654,26 +2656,26 @@ export declare namespace Mcp {
2654
2656
  };
2655
2657
  }
2656
2658
 
2657
- declare interface MeshClusterOptions {
2659
+ export declare interface MeshClusterOptions {
2658
2660
  enable: boolean;
2659
2661
  coneCluster?: boolean;
2660
2662
  }
2661
2663
 
2662
- declare interface MeshCompressOptions {
2664
+ export declare interface MeshCompressOptions {
2663
2665
  enable: boolean;
2664
2666
  encode?: boolean;
2665
2667
  compress?: boolean;
2666
2668
  quantize?: boolean;
2667
2669
  }
2668
2670
 
2669
- declare interface MeshOptimizeOptions {
2671
+ export declare interface MeshOptimizeOptions {
2670
2672
  enable: boolean;
2671
2673
  vertexCache?: boolean;
2672
2674
  vertexFetch?: boolean;
2673
2675
  overdraw?: boolean;
2674
2676
  }
2675
2677
 
2676
- declare interface MeshOptimizerOption {
2678
+ export declare interface MeshOptimizerOption {
2677
2679
  // 是否启用此功能
2678
2680
  enable: boolean;
2679
2681
  // 减面算法,默认 simplify
@@ -2683,7 +2685,7 @@ declare interface MeshOptimizerOption {
2683
2685
  gltfpackOptions?: GltfpackOptions;
2684
2686
  }
2685
2687
 
2686
- declare interface MeshSimplifyOptions {
2688
+ export declare interface MeshSimplifyOptions {
2687
2689
  enable: boolean;
2688
2690
  targetRatio?: number;
2689
2691
  autoErrorRate?: boolean;
@@ -2691,16 +2693,16 @@ declare interface MeshSimplifyOptions {
2691
2693
  lockBoundary?: boolean;
2692
2694
  }
2693
2695
 
2694
- declare function migrate(): Promise<void>;
2696
+ export declare function migrate(): Promise<void>;
2695
2697
 
2696
- declare function migrateFromProject(): Promise<IConfiguration>;
2698
+ export declare function migrateFromProject(): Promise<IConfiguration>;
2697
2699
 
2698
- declare interface Migration {
2700
+ export declare interface Migration {
2699
2701
  version: string;
2700
2702
  migrate(moduleCache: Record<string, boolean>): Record<string, boolean>;
2701
2703
  }
2702
2704
 
2703
- declare enum MobilityMode {
2705
+ export declare enum MobilityMode {
2704
2706
  /**
2705
2707
  * @en Static node
2706
2708
  * @zh 静态节点
@@ -2718,7 +2720,7 @@ declare enum MobilityMode {
2718
2720
  Movable = 2
2719
2721
  }
2720
2722
 
2721
- declare interface ModuleRenderConfig {
2723
+ export declare interface ModuleRenderConfig {
2722
2724
  $schema?: string;
2723
2725
 
2724
2726
  /**
@@ -2742,9 +2744,9 @@ declare interface ModuleRenderConfig {
2742
2744
  /**
2743
2745
  * Move Asset // 移动资源
2744
2746
  */
2745
- declare function moveAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
2747
+ export declare function moveAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
2746
2748
 
2747
- declare enum NodeEventType {
2749
+ export declare enum NodeEventType {
2748
2750
  TRANSFORM_CHANGED = 'transform-changed',// 节点改变位置、旋转或缩放事件
2749
2751
  SIZE_CHANGED = 'size-changed',// 当节点尺寸改变时触发的事件
2750
2752
  ANCHOR_CHANGED = 'anchor-changed',// 当节点锚点改变时触发的事件
@@ -2764,7 +2766,7 @@ declare enum NodeEventType {
2764
2766
  RESET_COMPONENT = 'reset-component'
2765
2767
  }
2766
2768
 
2767
- declare enum NodeType {
2769
+ export declare enum NodeType {
2768
2770
  EMPTY = 'Empty',// 空节点
2769
2771
  TERRAIN = 'Terrain',// 地形节点
2770
2772
  CAMERA = 'Camera',// 摄像机节点(需要用过 TWorkMode 来区分 2D 和 3D)
@@ -2804,7 +2806,7 @@ declare enum NodeType {
2804
2806
  REFLECTION_LIGHT = 'Light-Reflection-Probe'
2805
2807
  }
2806
2808
 
2807
- declare enum NormalImportSetting {
2809
+ export declare enum NormalImportSetting {
2808
2810
  /**
2809
2811
  * 如果模型文件中包含法线信息则导出法线,否则不导出法线。
2810
2812
  */
@@ -2839,7 +2841,7 @@ declare enum NormalImportSetting {
2839
2841
  * removeListener();
2840
2842
  * ```
2841
2843
  */
2842
- declare function onAssetAdded(listener: (info: IAssetInfo) => void): () => void;
2844
+ export declare function onAssetAdded(listener: (info: IAssetInfo) => void): () => void;
2843
2845
 
2844
2846
  /**
2845
2847
  * Listen to Asset Changed Event // 监听资源变更事件
@@ -2855,7 +2857,7 @@ declare function onAssetAdded(listener: (info: IAssetInfo) => void): () => void;
2855
2857
  * removeListener();
2856
2858
  * ```
2857
2859
  */
2858
- declare function onAssetChanged(listener: (info: IAssetInfo) => void): () => void;
2860
+ export declare function onAssetChanged(listener: (info: IAssetInfo) => void): () => void;
2859
2861
 
2860
2862
  /**
2861
2863
  * Listen to Asset Removed Event // 监听资源删除事件
@@ -2871,7 +2873,7 @@ declare function onAssetChanged(listener: (info: IAssetInfo) => void): () => voi
2871
2873
  * removeListener();
2872
2874
  * ```
2873
2875
  */
2874
- declare function onAssetRemoved(listener: (info: IAssetInfo) => void): () => void;
2876
+ export declare function onAssetRemoved(listener: (info: IAssetInfo) => void): () => void;
2875
2877
 
2876
2878
  /**
2877
2879
  * Register listener for when a specific database finishes starting.
@@ -2885,14 +2887,14 @@ declare function onAssetRemoved(listener: (info: IAssetInfo) => void): () => voi
2885
2887
  * @param listener 回调函数,接收启动完成的 dbInfo
2886
2888
  * @returns 移除监听的函数
2887
2889
  */
2888
- declare function onDBReady(listener: (dbInfo: IAssetDBInfo) => void): () => void;
2890
+ export declare function onDBReady(listener: (dbInfo: IAssetDBInfo) => void): () => void;
2889
2891
 
2890
2892
  /**
2891
2893
  * 注册 configurationManager 保存事件的监听器
2892
2894
  * 每次 cocos.config.json 被写入磁盘时触发
2893
2895
  * @returns 取消监听的函数
2894
2896
  */
2895
- declare function onDidSave(callback: () => void): () => void;
2897
+ export declare function onDidSave(callback: () => void): () => void;
2896
2898
 
2897
2899
  /**
2898
2900
  * Register listener for initialization progress.
@@ -2906,7 +2908,7 @@ declare function onDidSave(callback: () => void): () => void;
2906
2908
  * @param listener 回调函数,包含当前进度、总数、当前处理的资源 url 和导入状态
2907
2909
  * @returns 移除监听的函数
2908
2910
  */
2909
- declare function onProgress(listener: (current: number, total: number, url: string, state: 'processing' | 'success' | 'failed') => void): () => void;
2911
+ export declare function onProgress(listener: (current: number, total: number, url: string, state: 'processing' | 'success' | 'failed') => void): () => void;
2910
2912
 
2911
2913
  /**
2912
2914
  * Register listener for when all asset databases are fully initialized.
@@ -2921,20 +2923,20 @@ declare function onProgress(listener: (current: number, total: number, url: stri
2921
2923
  * @param listener 回调函数
2922
2924
  * @returns 移除监听的函数
2923
2925
  */
2924
- declare function onReady(listener: () => void): () => void;
2926
+ export declare function onReady(listener: () => void): () => void;
2925
2927
 
2926
- declare function open_2(projectPath: string): Promise<void>;
2928
+ export declare function open_2(projectPath: string): Promise<void>;
2927
2929
 
2928
- declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
2930
+ export declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
2929
2931
 
2930
- declare enum OptimizationPolicy {
2932
+ export declare enum OptimizationPolicy {
2931
2933
  AUTO = 0,
2932
2934
  SINGLE_INSTANCE = 1,
2933
2935
  MULTI_INSTANCE = 2
2934
2936
  }
2935
2937
 
2936
2938
  /** 粒子资源的 userData */
2937
- declare interface ParticleAssetUserData {
2939
+ export declare interface ParticleAssetUserData {
2938
2940
  totalParticles: number;
2939
2941
  life: number;
2940
2942
  lifeVar: number;
@@ -2977,7 +2979,7 @@ declare interface ParticleAssetUserData {
2977
2979
  spriteFrameUuid: string;
2978
2980
  }
2979
2981
 
2980
- declare interface PluginScriptInfo {
2982
+ export declare interface PluginScriptInfo {
2981
2983
  /**
2982
2984
  * 脚本文件。
2983
2985
  */
@@ -2986,7 +2988,7 @@ declare interface PluginScriptInfo {
2986
2988
  }
2987
2989
 
2988
2990
  /** JavaScript 插件脚本的 userData */
2989
- declare interface PluginScriptUserData {
2991
+ export declare interface PluginScriptUserData {
2990
2992
  isPlugin: true;
2991
2993
  /** 界面没有开放给用户。默认开启 */
2992
2994
  experimentalHideCommonJs?: boolean;
@@ -3004,21 +3006,21 @@ declare interface PluginScriptUserData {
3004
3006
  }
3005
3007
 
3006
3008
  /** 场景/预制体资源的 userData */
3007
- declare interface PrefabAssetUserData {
3009
+ export declare interface PrefabAssetUserData {
3008
3010
  /** 是否为持久节点 */
3009
3011
  persistent?: boolean;
3010
3012
  /** 同步节点名称 */
3011
3013
  syncNodeName?: string;
3012
3014
  }
3013
3015
 
3014
- declare enum PrefabState {
3016
+ export declare enum PrefabState {
3015
3017
  NotAPrefab = 0,// Normal node, not a Prefab
3016
3018
  PrefabChild = 1,// Child node of a Prefab, without PrefabInstance
3017
3019
  PrefabInstance = 2,// Root node of a Prefab that contains a PrefabInstance
3018
3020
  PrefabLostAsset = 3
3019
3021
  }
3020
3022
 
3021
- declare class ProgrammingFacet {
3023
+ export declare class ProgrammingFacet {
3022
3024
  private _packerDriverUpdateCount;
3023
3025
  private _asyncIteration;
3024
3026
  static create(engine: IEngineOptions, projectPath: string): Promise<ProgrammingFacet>;
@@ -3065,7 +3067,7 @@ export declare namespace Project {
3065
3067
  };
3066
3068
  }
3067
3069
 
3068
- declare class Project_2 implements IProject {
3070
+ export declare class Project_2 implements IProject {
3069
3071
  /**
3070
3072
  * The version of the Project
3071
3073
  */
@@ -3108,7 +3110,7 @@ declare class Project_2 implements IProject {
3108
3110
  /**
3109
3111
  * Project creator information
3110
3112
  */
3111
- declare interface ProjectCreatorInfo {
3113
+ export declare interface ProjectCreatorInfo {
3112
3114
  /**
3113
3115
  * Version of the tool or engine used to create the project
3114
3116
  */
@@ -3137,7 +3139,7 @@ declare interface ProjectCreatorInfo {
3137
3139
  /**
3138
3140
  * Project information
3139
3141
  */
3140
- declare interface ProjectInfo {
3142
+ export declare interface ProjectInfo {
3141
3143
  /**
3142
3144
  * Project name
3143
3145
  */
@@ -3174,39 +3176,39 @@ declare interface ProjectInfo {
3174
3176
  * - '2d': 2D Project
3175
3177
  * - '3d': 3D Project
3176
3178
  */
3177
- declare type ProjectType = '2d' | '3d';
3179
+ export declare type ProjectType = '2d' | '3d';
3178
3180
 
3179
3181
  /**
3180
3182
  * Query Asset Config Map // 查询资源配置映射表
3181
3183
  */
3182
- declare function queryAssetConfigMap(): Promise<Record<string, IAssetConfig>>;
3184
+ export declare function queryAssetConfigMap(): Promise<Record<string, IAssetConfig>>;
3183
3185
 
3184
3186
  /**
3185
3187
  * Query All Asset Database Info // 查询所有资源数据库信息
3186
3188
  */
3187
- declare function queryAssetDBInfos(): Promise<Record<string, IAssetDBInfo>>;
3189
+ export declare function queryAssetDBInfos(): Promise<Record<string, IAssetDBInfo>>;
3188
3190
 
3189
3191
  /**
3190
3192
  * Query Asset Dependencies // 查询资源依赖
3191
3193
  */
3192
- declare function queryAssetDependencies(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3194
+ export declare function queryAssetDependencies(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3193
3195
 
3194
3196
  /**
3195
3197
  * Query Asset Info // 查询资源信息
3196
3198
  */
3197
- declare function queryAssetInfo(urlOrUUIDOrPath: string, dataKeys?: string[] | undefined): Promise<IAssetInfo | null>;
3199
+ export declare function queryAssetInfo(urlOrUUIDOrPath: string, dataKeys?: string[] | undefined): Promise<IAssetInfo | null>;
3198
3200
 
3199
3201
  /**
3200
3202
  * Batch Query Asset Info // 批量查询资源信息
3201
3203
  */
3202
- declare function queryAssetInfos(options?: QueryAssetsOption): Promise<IAssetInfo[]>;
3204
+ export declare function queryAssetInfos(options?: QueryAssetsOption): Promise<IAssetInfo[]>;
3203
3205
 
3204
3206
  /**
3205
3207
  * Query Asset Metadata // 查询资源元数据
3206
3208
  */
3207
- declare function queryAssetMeta(urlOrUUIDOrPath: string): Promise<IAssetMeta<'unknown'> | null>;
3209
+ export declare function queryAssetMeta(urlOrUUIDOrPath: string): Promise<IAssetMeta<'unknown'> | null>;
3208
3210
 
3209
- declare interface QueryAssetsOption {
3211
+ export declare interface QueryAssetsOption {
3210
3212
  ccType?: string | string[], // 'cc.ImageAsset' 这类,多个用数组
3211
3213
  isBundle?: boolean, // 筛选 asset bundle 信息,搜索子包只能与 pattern 选项共存
3212
3214
  importer?: string | string[], // 导入名称,多个用数组
@@ -3222,24 +3224,24 @@ declare interface QueryAssetsOption {
3222
3224
  type?: string;
3223
3225
  }
3224
3226
 
3225
- declare type QueryAssetType = 'asset' | 'script' | 'all';
3227
+ export declare type QueryAssetType = 'asset' | 'script' | 'all';
3226
3228
 
3227
3229
  /**
3228
3230
  * Query Asset User Data Config // 查询资源用户数据配置
3229
3231
  */
3230
- declare function queryAssetUserDataConfig(urlOrUuidOrPath: string): Promise<false | Record<string, IUerDataConfigItem> | undefined>;
3232
+ export declare function queryAssetUserDataConfig(urlOrUuidOrPath: string): Promise<false | Record<string, IUerDataConfigItem> | undefined>;
3231
3233
 
3232
3234
  /**
3233
3235
  * Query Asset Users // 查询资源使用者
3234
3236
  */
3235
- declare function queryAssetUsers(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3237
+ export declare function queryAssetUsers(uuidOrUrl: string, type?: QueryAssetType): Promise<string[]>;
3236
3238
 
3237
3239
  /**
3238
3240
  * Query Creatable Asset Map // 查询可创建资源映射表
3239
3241
  */
3240
- declare function queryCreateMap(): Promise<ICreateMenuInfo[]>;
3242
+ export declare function queryCreateMap(): Promise<ICreateMenuInfo[]>;
3241
3243
 
3242
- declare function queryLayerBuiltin(): Promise<{
3244
+ export declare function queryLayerBuiltin(): Promise<{
3243
3245
  name: string;
3244
3246
  value: number;
3245
3247
  }[]>;
@@ -3247,34 +3249,34 @@ declare function queryLayerBuiltin(): Promise<{
3247
3249
  /**
3248
3250
  * Query Asset Path // 查询资源路径
3249
3251
  */
3250
- declare function queryPath(urlOrUuid: string): Promise<string>;
3252
+ export declare function queryPath(urlOrUuid: string): Promise<string>;
3251
3253
 
3252
3254
  /**
3253
3255
  * Query Sorted Plugin Scripts // 查询排序后的插件脚本
3254
3256
  */
3255
- declare function querySortedPlugins(filterOptions?: FilterPluginOptions): Promise<IPluginScriptInfo[]>;
3257
+ export declare function querySortedPlugins(filterOptions?: FilterPluginOptions): Promise<IPluginScriptInfo[]>;
3256
3258
 
3257
- declare function querySortingLayerBuiltin(): Promise<readonly __private._cocos_sorting_sorting_layers__SortingItem[]>;
3259
+ export declare function querySortingLayerBuiltin(): Promise<readonly __private._cocos_sorting_sorting_layers__SortingItem[]>;
3258
3260
 
3259
3261
  /**
3260
3262
  * Query Thumbnail Handlers // 查询支持缩略图生成的资源处理器列表
3261
3263
  */
3262
- declare function queryThumbnailHandlers(): string[];
3264
+ export declare function queryThumbnailHandlers(): string[];
3263
3265
 
3264
3266
  /**
3265
3267
  * Query Asset URL // 查询资源 URL
3266
3268
  */
3267
- declare function queryUrl(uuidOrPath: string): Promise<string>;
3269
+ export declare function queryUrl(uuidOrPath: string): Promise<string>;
3268
3270
 
3269
3271
  /**
3270
3272
  * Query Asset UUID // 查询资源 UUID
3271
3273
  */
3272
- declare function queryUUID(urlOrPath: string): Promise<string | null>;
3274
+ export declare function queryUUID(urlOrPath: string): Promise<string | null>;
3273
3275
 
3274
3276
  /**
3275
3277
  * Refresh Asset Directory // 刷新资源目录
3276
3278
  */
3277
- declare function refresh(dir: string): Promise<number>;
3279
+ export declare function refresh(dir: string): Promise<number>;
3278
3280
 
3279
3281
  /**
3280
3282
  * MCP Facade Module
@@ -3295,7 +3297,7 @@ declare function refresh(dir: string): Promise<number>;
3295
3297
  *
3296
3298
  * @returns MCP endpoint URL (e.g. http://localhost:9527/mcp)
3297
3299
  */
3298
- declare function register(): Promise<string>;
3300
+ export declare function register(): Promise<string>;
3299
3301
 
3300
3302
  /**
3301
3303
  * Register a middleware contribution (routes, static files, sockets)
@@ -3304,19 +3306,19 @@ declare function register(): Promise<string>;
3304
3306
  * @param name Middleware identifier
3305
3307
  * @param module Middleware contribution config
3306
3308
  */
3307
- declare function register_2(name: string, module: IMiddlewareContribution): Promise<void>;
3309
+ export declare function register_2(name: string, module: IMiddlewareContribution): Promise<void>;
3308
3310
 
3309
3311
  /**
3310
3312
  * Reimport Asset // 重新导入资源
3311
3313
  */
3312
- declare function reimportAsset(pathOrUrlOrUUID: string): Promise<IAssetInfo>;
3314
+ export declare function reimportAsset(pathOrUrlOrUUID: string): Promise<IAssetInfo>;
3313
3315
 
3314
- declare function reload(): Promise<void>;
3316
+ export declare function reload(): Promise<void>;
3315
3317
 
3316
3318
  /**
3317
3319
  * 重载结果
3318
3320
  */
3319
- declare enum ReloadResult {
3321
+ export declare enum ReloadResult {
3320
3322
  SUCCESS = 0,
3321
3323
  FAILED = 1,
3322
3324
  QUEUED = 2,
@@ -3325,21 +3327,21 @@ declare enum ReloadResult {
3325
3327
  EDITOR_NOT_FOUND = 5
3326
3328
  }
3327
3329
 
3328
- declare function remove(key: string, scope?: ConfigurationScope): Promise<boolean>;
3330
+ export declare function remove(key: string, scope?: ConfigurationScope): Promise<boolean>;
3329
3331
 
3330
3332
  /**
3331
3333
  * Rename Asset // 重命名资源
3332
3334
  */
3333
- declare function renameAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
3335
+ export declare function renameAsset(source: string, target: string, options?: AssetOperationOption): Promise<any>;
3334
3336
 
3335
3337
  /** 渲染纹理资源的 userData */
3336
- declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
3338
+ export declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
3337
3339
  width: number;
3338
3340
  height: number;
3339
3341
  }
3340
3342
 
3341
3343
  /** 渲染纹理精灵帧的 userData */
3342
- declare interface RtSpriteFrameAssetUserData {
3344
+ export declare interface RtSpriteFrameAssetUserData {
3343
3345
  /** 图片 UUID 或数据库 URI */
3344
3346
  imageUuidOrDatabaseUri: string;
3345
3347
  /** 宽度 */
@@ -3348,12 +3350,12 @@ declare interface RtSpriteFrameAssetUserData {
3348
3350
  height?: number;
3349
3351
  }
3350
3352
 
3351
- declare function save(force?: boolean): Promise<void>;
3353
+ export declare function save(force?: boolean): Promise<void>;
3352
3354
 
3353
3355
  /**
3354
3356
  * Save Asset // 保存资源
3355
3357
  */
3356
- declare function saveAsset(pathOrUrlOrUUID: string, data: string | Buffer): Promise<IAssetInfo>;
3358
+ export declare function saveAsset(pathOrUrlOrUUID: string, data: string | Buffer): Promise<IAssetInfo>;
3357
3359
 
3358
3360
  export declare namespace Scene {
3359
3361
  export {
@@ -3365,13 +3367,13 @@ export declare namespace Scene {
3365
3367
  /**
3366
3368
  * 场景模板类型
3367
3369
  */
3368
- declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
3370
+ export declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
3369
3371
 
3370
- declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
3372
+ export declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
3371
3373
 
3372
- declare type SceneKeyboardEvent = 'keydown' | 'keyup';
3374
+ export declare type SceneKeyboardEvent = 'keydown' | 'keyup';
3373
3375
 
3374
- declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
3376
+ export declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
3375
3377
 
3376
3378
  export declare namespace Scripting {
3377
3379
  export {
@@ -3386,11 +3388,11 @@ export declare namespace Scripting {
3386
3388
  }
3387
3389
 
3388
3390
  /** JavaScript 脚本模块的 userData */
3389
- declare interface ScriptModuleUserData {
3391
+ export declare interface ScriptModuleUserData {
3390
3392
  isPlugin: false;
3391
3393
  }
3392
3394
 
3393
- declare interface SerializedAssetFinder {
3395
+ export declare interface SerializedAssetFinder {
3394
3396
  meshes?: Array<string | null>;
3395
3397
  animations?: Array<string | null>;
3396
3398
  skeletons?: Array<string | null>;
@@ -3409,9 +3411,9 @@ export declare namespace Server {
3409
3411
  };
3410
3412
  }
3411
3413
 
3412
- declare function set<T>(key: string, value: T, scope?: ConfigurationScope): Promise<boolean>;
3414
+ export declare function set<T>(key: string, value: T, scope?: ConfigurationScope): Promise<boolean>;
3413
3415
 
3414
- declare interface SharedSettings {
3416
+ export declare interface SharedSettings {
3415
3417
  useDefineForClassFields: boolean;
3416
3418
  allowDeclareFields: boolean;
3417
3419
  loose: boolean;
@@ -3427,7 +3429,7 @@ declare interface SharedSettings {
3427
3429
  };
3428
3430
  }
3429
3431
 
3430
- declare interface SimplifyOptions {
3432
+ export declare interface SimplifyOptions {
3431
3433
  // 压缩比例
3432
3434
  targetRatio?: number;
3433
3435
  // 防止破面
@@ -3439,13 +3441,13 @@ declare interface SimplifyOptions {
3439
3441
  }
3440
3442
 
3441
3443
  /** Spine 资源的 userData */
3442
- declare interface SpineAssetUserData {
3444
+ export declare interface SpineAssetUserData {
3443
3445
  /** 图集资源的 UUID */
3444
3446
  atlasUuid: string;
3445
3447
  }
3446
3448
 
3447
3449
  /** 精灵图集资源的 userData */
3448
- declare interface SpriteAtlasAssetUserData {
3450
+ export declare interface SpriteAtlasAssetUserData {
3449
3451
  /** 图集纹理名称 */
3450
3452
  atlasTextureName: string;
3451
3453
  /** 纹理 UUID */
@@ -3458,12 +3460,12 @@ declare interface SpriteAtlasAssetUserData {
3458
3460
  format: number;
3459
3461
  }
3460
3462
 
3461
- declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
3463
+ export declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
3462
3464
  isUuid?: boolean;
3463
3465
  imageUuidOrDatabaseUri: string;
3464
3466
  }
3465
3467
 
3466
- declare interface SpriteFrameBaseAssetUserData {
3468
+ export declare interface SpriteFrameBaseAssetUserData {
3467
3469
  trimType?: string;
3468
3470
  trimThreshold: number;
3469
3471
  rotated: boolean;
@@ -3487,7 +3489,7 @@ declare interface SpriteFrameBaseAssetUserData {
3487
3489
  vertices: SpriteFrameVertices;
3488
3490
  }
3489
3491
 
3490
- declare interface SpriteFrameVertices {
3492
+ export declare interface SpriteFrameVertices {
3491
3493
  rawPosition: number[];
3492
3494
  indexes: number[];
3493
3495
  uv: number[];
@@ -3500,7 +3502,7 @@ declare interface SpriteFrameVertices {
3500
3502
  /**
3501
3503
  * Start Asset DB // 启动资源数据库,开始扫描和导入资源
3502
3504
  */
3503
- declare function start(): Promise<void>;
3505
+ export declare function start(): Promise<void>;
3504
3506
 
3505
3507
  /**
3506
3508
  * Server Facade Module
@@ -3514,32 +3516,32 @@ declare function start(): Promise<void>;
3514
3516
  * @param port Optional port number; auto-selected if omitted
3515
3517
  * @returns The server base URL (e.g. http://localhost:9527)
3516
3518
  */
3517
- declare function start_2(port?: number): Promise<string>;
3519
+ export declare function start_2(port?: number): Promise<string>;
3518
3520
 
3519
3521
  /**
3520
3522
  * 在独立的子进程中运行项目脚本编译
3521
3523
  * 以避免阻塞主进程
3522
3524
  */
3523
- declare function startCompileScript(assetChanges?: AssetChangeInfo[]): Promise<void>;
3525
+ export declare function startCompileScript(assetChanges?: AssetChangeInfo[]): Promise<void>;
3524
3526
 
3525
- declare function startEngineCompilation(force?: boolean): Promise<void>;
3527
+ export declare function startEngineCompilation(force?: boolean): Promise<void>;
3526
3528
 
3527
3529
  /**
3528
3530
  * Start the scene worker process.
3529
3531
  *
3530
3532
  * @param projectPath Path to the project directory
3531
3533
  */
3532
- declare function startupWorker(projectPath: string): Promise<void>;
3534
+ export declare function startupWorker(projectPath: string): Promise<void>;
3533
3535
 
3534
3536
  /**
3535
3537
  * Stop the Express HTTP server.
3536
3538
  */
3537
- declare function stop_2(): Promise<void>;
3539
+ export declare function stop_2(): Promise<void>;
3538
3540
 
3539
3541
  /** 支持创建的资源类型常量数组(用于 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'];
3542
+ 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
3543
 
3542
- declare enum TangentImportSetting {
3544
+ export declare enum TangentImportSetting {
3543
3545
  /**
3544
3546
  * 不在导出的网格中包含正切信息。
3545
3547
  */
@@ -3558,16 +3560,16 @@ declare enum TangentImportSetting {
3558
3560
  recalculate = 3
3559
3561
  }
3560
3562
 
3561
- declare type TEditorEntity = IScene | INode;
3563
+ export declare type TEditorEntity = IScene | INode;
3562
3564
 
3563
- declare type TEditorInstance = Scene_2 | Node_2;
3565
+ export declare type TEditorInstance = Scene_2 | Node_2;
3564
3566
 
3565
- declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
3567
+ export declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
3566
3568
  isUuid?: boolean;
3567
3569
  imageUuidOrDatabaseUri?: string;
3568
3570
  }
3569
3571
 
3570
- declare interface TextureBaseAssetUserData {
3572
+ export declare interface TextureBaseAssetUserData {
3571
3573
  wrapModeS: WrapMode;
3572
3574
  wrapModeT: WrapMode;
3573
3575
  minfilter: Filter;
@@ -3576,7 +3578,7 @@ declare interface TextureBaseAssetUserData {
3576
3578
  anisotropy: number;
3577
3579
  }
3578
3580
 
3579
- declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
3581
+ export declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
3580
3582
  imageDatabaseUri?: string;
3581
3583
  isRGBE: boolean;
3582
3584
 
@@ -3597,49 +3599,49 @@ declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
3597
3599
  bottom?: string;
3598
3600
  }
3599
3601
 
3600
- declare interface ThumbnailInfo {
3602
+ export declare interface ThumbnailInfo {
3601
3603
  type: 'icon' | 'image',
3602
3604
  value: string; // 具体 icon 名字或者 image 路径,image 路径支持绝对路径、 db:// 、 project:// 、和 packages:// 下的路径
3603
3605
  }
3604
3606
 
3605
- declare type ThumbnailSize = 'large' | 'small' | 'middle' | 'origin';
3607
+ export declare type ThumbnailSize = 'large' | 'small' | 'middle' | 'origin';
3606
3608
 
3607
- declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
3609
+ export declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
3608
3610
 
3609
3611
  /**
3610
3612
  * Clean up MCP state.
3611
3613
  * Note: does NOT stop the Express server — use the Server module for that.
3612
3614
  */
3613
- declare function unregister(): Promise<void>;
3615
+ export declare function unregister(): Promise<void>;
3614
3616
 
3615
3617
  /**
3616
3618
  * Update Asset User Data // 更新资源用户数据
3617
3619
  */
3618
- declare function updateAssetUserData(urlOrUuidOrPath: string, path: string, value: any): Promise<any>;
3620
+ export declare function updateAssetUserData(urlOrUuidOrPath: string, path: string, value: any): Promise<any>;
3619
3621
 
3620
3622
  /**
3621
3623
  * Update Default User Data // 更新默认用户数据
3622
3624
  */
3623
- declare function updateDefaultUserData(handler: string, path: string, value: any): Promise<void>;
3625
+ export declare function updateDefaultUserData(handler: string, path: string, value: any): Promise<void>;
3624
3626
 
3625
- declare interface Vec2 {
3627
+ export declare interface Vec2 {
3626
3628
  x: number;
3627
3629
  y: number;
3628
3630
  }
3629
3631
 
3630
- declare interface Vec3 {
3632
+ export declare interface Vec3 {
3631
3633
  x: number;
3632
3634
  y: number;
3633
3635
  z: number;
3634
3636
  }
3635
3637
 
3636
- declare interface Vec4 {
3638
+ export declare interface Vec4 {
3637
3639
  x: number;
3638
3640
  y: number;
3639
3641
  z: number;
3640
3642
  w: number;
3641
3643
  }
3642
3644
 
3643
- declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
3645
+ export declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
3644
3646
 
3645
3647
  export { };