node-karin 1.3.0 → 1.3.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/dist/index.d.ts CHANGED
@@ -9970,14 +9970,6 @@ declare const render: RenderCache;
9970
9970
  */
9971
9971
  declare const Renderer: RenderCache;
9972
9972
 
9973
- /**
9974
- * 获取插件
9975
- * @param type 获取插件的方式
9976
- * @param isInfo 是否获取插件详细信息 否则返回插件名称列表
9977
- * @param isForce 是否强制更新缓存
9978
- */
9979
- declare const getPlugins: <T extends boolean = false>(type: GetPluginType, isInfo?: T, isForce?: boolean) => Promise<GetPluginReturn<T>>;
9980
-
9981
9973
  type Option = {
9982
9974
  label: string;
9983
9975
  value: string | number;
@@ -10082,20 +10074,16 @@ interface TitleField extends BaseField {
10082
10074
  /** 组件 */
10083
10075
  type FormField = TextField | NumberField | SwitchField | SelectField | RadioField | CheckboxField | ArrayField | ObjectField | ObjectArrayField | SectionField | TitleField | DividerField;
10084
10076
 
10085
- declare const enum ComponentType {
10086
- /** 输入框 */
10087
- INPUT = "input",
10088
- /** 开关 */
10089
- SWITCH = "switch",
10090
- /** 分隔线 */
10091
- DIVIDER = "divider",
10092
- /** 手风琴 */
10093
- ACCORDION = "accordion",
10094
- /** 手风琴项 */
10095
- ACCORDION_ITEM = "accordion-item",
10096
- /** 手风琴Pro */
10097
- ACCORDION_PRO = "accordion-pro"
10098
- }
10077
+ /**
10078
+ * 组件类型
10079
+ * - input: 输入框
10080
+ * - switch: 开关
10081
+ * - divider: 分隔线
10082
+ * - accordion: 手风琴
10083
+ * - accordion-item: 手风琴项
10084
+ * - accordion-pro: 手风琴Pro
10085
+ */
10086
+ type ComponentType = 'input' | 'switch' | 'divider' | 'accordion' | 'accordion-item' | 'accordion-pro';
10099
10087
  /** 组件通用属性 */
10100
10088
  interface ComponentProps {
10101
10089
  /** 唯一标识符 */
@@ -10156,7 +10144,7 @@ interface ValidationRule {
10156
10144
  * 输入框类型
10157
10145
  */
10158
10146
  interface InputProps extends ComponentProps {
10159
- componentType: ComponentType.INPUT;
10147
+ componentType: 'input';
10160
10148
  /**
10161
10149
  * 输入框的样式
10162
10150
  * - flat: 扁平化
@@ -10208,7 +10196,7 @@ interface InputProps extends ComponentProps {
10208
10196
  /** 模式 */
10209
10197
  pattern?: string;
10210
10198
  /** 类型 */
10211
- type?: 'text' | 'email' | 'url' | 'password' | 'tel' | 'search' | 'file';
10199
+ type?: 'text' | 'email' | 'url' | 'password' | 'tel' | 'search' | 'file' | 'number';
10212
10200
  /** 开始内容 */
10213
10201
  startContent?: string;
10214
10202
  /** 结束内容 */
@@ -10243,7 +10231,7 @@ interface InputProps extends ComponentProps {
10243
10231
  * 分隔线
10244
10232
  */
10245
10233
  interface DividerProps extends ComponentProps {
10246
- componentType: ComponentType.DIVIDER;
10234
+ componentType: 'divider';
10247
10235
  /** 是否透明 */
10248
10236
  transparent?: boolean;
10249
10237
  /** 方向 */
@@ -10254,7 +10242,7 @@ interface DividerProps extends ComponentProps {
10254
10242
  * 开关类型
10255
10243
  */
10256
10244
  interface SwitchProps extends ComponentProps {
10257
- componentType: ComponentType.SWITCH;
10245
+ componentType: 'switch';
10258
10246
  /** 开始文本 */
10259
10247
  startText?: string;
10260
10248
  /** 结束文本 */
@@ -10286,7 +10274,7 @@ type Children = InputProps | SwitchProps | DividerProps;
10286
10274
  /**
10287
10275
  * 手风琴(折叠面板) 类型
10288
10276
  */
10289
- interface Accordion extends ComponentProps {
10277
+ interface Accordion$1 extends ComponentProps {
10290
10278
  /** 子组件 */
10291
10279
  children?: AccordionItemProps[];
10292
10280
  /** 标题 */
@@ -10341,7 +10329,7 @@ interface Accordion extends ComponentProps {
10341
10329
  * 手风琴子组件类型 `也就是每一项手风琴`
10342
10330
  */
10343
10331
  interface AccordionItemProps extends ComponentProps {
10344
- componentType: ComponentType.ACCORDION_ITEM;
10332
+ componentType: 'accordion-item';
10345
10333
  /** 子组件 */
10346
10334
  children?: Children[];
10347
10335
  /** 标题 */
@@ -10367,18 +10355,950 @@ interface AccordionItemProps extends ComponentProps {
10367
10355
  disableIndicatorAnimation?: boolean;
10368
10356
  }
10369
10357
  /** 手风琴 */
10370
- interface AccordionProps extends Accordion {
10371
- componentType: ComponentType.ACCORDION;
10358
+ interface AccordionProps extends Accordion$1 {
10359
+ componentType: 'accordion';
10372
10360
  }
10373
10361
  /**
10374
10362
  * 手风琴Pro
10375
10363
  */
10376
- interface AccordionProProps extends Accordion {
10377
- componentType: ComponentType.ACCORDION_PRO;
10364
+ interface AccordionProProps extends Accordion$1 {
10365
+ componentType: 'accordion-pro';
10378
10366
  /** 渲染数据 */
10379
10367
  data: Record<string, any>[];
10380
10368
  }
10381
10369
 
10370
+ declare class Component<T extends Record<string, any>> {
10371
+ _config: unknown;
10372
+ _componentType: ComponentType;
10373
+ constructor(componentType: ComponentType);
10374
+ /**
10375
+ * 转换为JSON字符串
10376
+ */
10377
+ toString(): string;
10378
+ /**
10379
+ * 转换为JSON对象
10380
+ */
10381
+ toJSON(): T;
10382
+ }
10383
+
10384
+ declare class Input extends Component<InputProps> {
10385
+ _config: InputProps;
10386
+ constructor(key: string);
10387
+ /**
10388
+ * 内部属性 仅在`options`中可手动设置,其他方法请不要调用
10389
+ */
10390
+ _type(dataType: InputDataType): this;
10391
+ /**
10392
+ * 设置标签
10393
+ */
10394
+ label(label: string): this;
10395
+ /**
10396
+ * 设置占位符
10397
+ */
10398
+ placeholder(placeholder: string): this;
10399
+ /**
10400
+ * 设置验证规则
10401
+ */
10402
+ validate(rules: ValidationRule | ValidationRule[]): this;
10403
+ /**
10404
+ * 设置大小
10405
+ * @param size 大小
10406
+ * @returns 输入框构建器
10407
+ */
10408
+ size(size: 'sm' | 'md' | 'lg'): this;
10409
+ /**
10410
+ * 设置颜色
10411
+ */
10412
+ color(color: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger'): this;
10413
+ /**
10414
+ * 设置是否必填
10415
+ */
10416
+ required(required?: boolean): this;
10417
+ /**
10418
+ * 设置清除按钮
10419
+ */
10420
+ clearable(clearable?: boolean): this;
10421
+ /**
10422
+ * 设置描述
10423
+ */
10424
+ description(description: string): this;
10425
+ /**
10426
+ * 自定义参数
10427
+ */
10428
+ options(options: InputProps): this;
10429
+ }
10430
+ /**
10431
+ * 输入框
10432
+ */
10433
+ declare const input: {
10434
+ /**
10435
+ * 创建基础输入框
10436
+ * @param key 唯一标识符
10437
+ */
10438
+ create: (key: string) => Input;
10439
+ /**
10440
+ * 字符串
10441
+ * @param key 唯一标识符
10442
+ */
10443
+ string: (key: string) => Input;
10444
+ /**
10445
+ * 数字
10446
+ * @param key 唯一标识符
10447
+ */
10448
+ number: (key: string) => Input;
10449
+ /**
10450
+ * 布尔值
10451
+ * @param key 唯一标识符
10452
+ */
10453
+ boolean: (key: string) => Input;
10454
+ /**
10455
+ * 日期
10456
+ * @param key 唯一标识符
10457
+ */
10458
+ date: (key: string) => Input;
10459
+ /**
10460
+ * 时间
10461
+ * @param key 唯一标识符
10462
+ */
10463
+ time: (key: string) => Input;
10464
+ /**
10465
+ * 日期时间
10466
+ * @param key 唯一标识符
10467
+ */
10468
+ datetime: (key: string) => Input;
10469
+ /**
10470
+ * 邮箱
10471
+ * @param key 唯一标识符
10472
+ */
10473
+ email: (key: string) => Input;
10474
+ /**
10475
+ * URL
10476
+ * @param key 唯一标识符
10477
+ */
10478
+ url: (key: string) => Input;
10479
+ /**
10480
+ * 电话
10481
+ * @param key 唯一标识符
10482
+ */
10483
+ tel: (key: string) => Input;
10484
+ /**
10485
+ * 密码
10486
+ * @param key 唯一标识符
10487
+ */
10488
+ password: (key: string) => Input;
10489
+ /**
10490
+ * 颜色
10491
+ * @param key 唯一标识符
10492
+ */
10493
+ color: (key: string) => Input;
10494
+ /**
10495
+ * JSON
10496
+ * @param key 唯一标识符
10497
+ */
10498
+ json: (key: string) => Input;
10499
+ /**
10500
+ * 自定义参数
10501
+ * @param key 键
10502
+ * @param options 参数
10503
+ * @returns 输入框构建器
10504
+ */
10505
+ options: (key: string, options: InputProps) => Input;
10506
+ };
10507
+
10508
+ declare class Divider extends Component<DividerProps> {
10509
+ _config: DividerProps;
10510
+ constructor();
10511
+ /**
10512
+ * 设置透明
10513
+ * @param transparent 是否透明 默认不透明
10514
+ */
10515
+ transparent(transparent: boolean): this;
10516
+ /**
10517
+ * 设置竖向分隔线
10518
+ * @param orientation 是否使用竖向分隔线 默认使用横向
10519
+ */
10520
+ vertical(orientation: boolean): this;
10521
+ /**
10522
+ * 转换为 JSON 对象
10523
+ * @returns JSON 对象
10524
+ */
10525
+ toJSON(): DividerProps;
10526
+ }
10527
+ /**
10528
+ * 获取分隔线组件
10529
+ * @returns 分隔线组件
10530
+ */
10531
+ declare const divider: Divider;
10532
+
10533
+ declare class Switch extends Component<SwitchProps> {
10534
+ _config: SwitchProps;
10535
+ constructor(key: string);
10536
+ /**
10537
+ * 设置开始文本
10538
+ * @param text 开始文本
10539
+ */
10540
+ startText: (text: string) => this;
10541
+ /**
10542
+ * 设置结束文本
10543
+ * @param text 结束文本
10544
+ */
10545
+ endText: (text: string) => this;
10546
+ /**
10547
+ * 设置大小
10548
+ * @param size 大小
10549
+ */
10550
+ size: (size: "sm" | "md" | "lg") => this;
10551
+ /**
10552
+ * 设置颜色
10553
+ * @param color 颜色
10554
+ */
10555
+ color: (color: "default" | "primary" | "secondary" | "success" | "warning" | "danger") => this;
10556
+ /**
10557
+ * 设置开关图标
10558
+ * @param icon 图标
10559
+ */
10560
+ thumbIcon: (icon: string) => this;
10561
+ /**
10562
+ * 设置开始内容图标
10563
+ * @param icon 图标
10564
+ */
10565
+ startContent: (icon: string) => this;
10566
+ /**
10567
+ * 设置结束内容图标
10568
+ * @param icon 图标
10569
+ */
10570
+ endContent: (icon: string) => this;
10571
+ /**
10572
+ * 设置是否被选中(只读)
10573
+ * @param selected 是否被选中
10574
+ */
10575
+ selected: (selected?: boolean) => this;
10576
+ /**
10577
+ * 设置默认选中状态
10578
+ * @param selected 是否默认选中
10579
+ */
10580
+ defaultSelected: (selected?: boolean) => this;
10581
+ /**
10582
+ * 设置是否只读
10583
+ * @param readonly 是否只读
10584
+ */
10585
+ readonly: (readonly?: boolean) => this;
10586
+ /**
10587
+ * 设置是否禁用
10588
+ * @param disabled 是否禁用
10589
+ */
10590
+ disabled: (disabled?: boolean) => this;
10591
+ /**
10592
+ * 设置是否禁用动画
10593
+ * @param disable 是否禁用动画
10594
+ */
10595
+ disableAnimation: (disable?: boolean) => this;
10596
+ /**
10597
+ * 自定义参数
10598
+ * @param options 参数
10599
+ */
10600
+ options: (options: SwitchProps) => this;
10601
+ }
10602
+ /**
10603
+ * 开关组件
10604
+ */
10605
+ declare const switchComponent: {
10606
+ /**
10607
+ * 创建基础开关
10608
+ * @param key 唯一标识符
10609
+ */
10610
+ create: (key: string) => Switch;
10611
+ /**
10612
+ * 自定义参数
10613
+ * @param key 唯一标识符
10614
+ * @param options 参数
10615
+ */
10616
+ options: (key: string, options: SwitchProps) => Switch;
10617
+ };
10618
+
10619
+ declare const components: {
10620
+ /** 分隔线 */
10621
+ divider: {
10622
+ _config: DividerProps;
10623
+ transparent(transparent: boolean): /*elided*/ any;
10624
+ vertical(orientation: boolean): /*elided*/ any;
10625
+ toJSON(): DividerProps;
10626
+ _componentType: ComponentType;
10627
+ toString(): string;
10628
+ };
10629
+ /** 输入框 */
10630
+ input: {
10631
+ create: (key: string) => {
10632
+ _config: InputProps;
10633
+ _type(dataType: InputDataType): /*elided*/ any;
10634
+ label(label: string): /*elided*/ any;
10635
+ placeholder(placeholder: string): /*elided*/ any;
10636
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10637
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10638
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10639
+ required(required?: boolean): /*elided*/ any;
10640
+ clearable(clearable?: boolean): /*elided*/ any;
10641
+ description(description: string): /*elided*/ any;
10642
+ options(options: InputProps): /*elided*/ any;
10643
+ _componentType: ComponentType;
10644
+ toString(): string;
10645
+ toJSON(): InputProps;
10646
+ };
10647
+ string: (key: string) => {
10648
+ _config: InputProps;
10649
+ _type(dataType: InputDataType): /*elided*/ any;
10650
+ label(label: string): /*elided*/ any;
10651
+ placeholder(placeholder: string): /*elided*/ any;
10652
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10653
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10654
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10655
+ required(required?: boolean): /*elided*/ any;
10656
+ clearable(clearable?: boolean): /*elided*/ any;
10657
+ description(description: string): /*elided*/ any;
10658
+ options(options: InputProps): /*elided*/ any;
10659
+ _componentType: ComponentType;
10660
+ toString(): string;
10661
+ toJSON(): InputProps;
10662
+ };
10663
+ number: (key: string) => {
10664
+ _config: InputProps;
10665
+ _type(dataType: InputDataType): /*elided*/ any;
10666
+ label(label: string): /*elided*/ any;
10667
+ placeholder(placeholder: string): /*elided*/ any;
10668
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10669
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10670
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10671
+ required(required?: boolean): /*elided*/ any;
10672
+ clearable(clearable?: boolean): /*elided*/ any;
10673
+ description(description: string): /*elided*/ any;
10674
+ options(options: InputProps): /*elided*/ any;
10675
+ _componentType: ComponentType;
10676
+ toString(): string;
10677
+ toJSON(): InputProps;
10678
+ };
10679
+ boolean: (key: string) => {
10680
+ _config: InputProps;
10681
+ _type(dataType: InputDataType): /*elided*/ any;
10682
+ label(label: string): /*elided*/ any;
10683
+ placeholder(placeholder: string): /*elided*/ any;
10684
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10685
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10686
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10687
+ required(required?: boolean): /*elided*/ any;
10688
+ clearable(clearable?: boolean): /*elided*/ any;
10689
+ description(description: string): /*elided*/ any;
10690
+ options(options: InputProps): /*elided*/ any;
10691
+ _componentType: ComponentType;
10692
+ toString(): string;
10693
+ toJSON(): InputProps;
10694
+ };
10695
+ date: (key: string) => {
10696
+ _config: InputProps;
10697
+ _type(dataType: InputDataType): /*elided*/ any;
10698
+ label(label: string): /*elided*/ any;
10699
+ placeholder(placeholder: string): /*elided*/ any;
10700
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10701
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10702
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10703
+ required(required?: boolean): /*elided*/ any;
10704
+ clearable(clearable?: boolean): /*elided*/ any;
10705
+ description(description: string): /*elided*/ any;
10706
+ options(options: InputProps): /*elided*/ any;
10707
+ _componentType: ComponentType;
10708
+ toString(): string;
10709
+ toJSON(): InputProps;
10710
+ };
10711
+ time: (key: string) => {
10712
+ _config: InputProps;
10713
+ _type(dataType: InputDataType): /*elided*/ any;
10714
+ label(label: string): /*elided*/ any;
10715
+ placeholder(placeholder: string): /*elided*/ any;
10716
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10717
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10718
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10719
+ required(required?: boolean): /*elided*/ any;
10720
+ clearable(clearable?: boolean): /*elided*/ any;
10721
+ description(description: string): /*elided*/ any;
10722
+ options(options: InputProps): /*elided*/ any;
10723
+ _componentType: ComponentType;
10724
+ toString(): string;
10725
+ toJSON(): InputProps;
10726
+ };
10727
+ datetime: (key: string) => {
10728
+ _config: InputProps;
10729
+ _type(dataType: InputDataType): /*elided*/ any;
10730
+ label(label: string): /*elided*/ any;
10731
+ placeholder(placeholder: string): /*elided*/ any;
10732
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10733
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10734
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10735
+ required(required?: boolean): /*elided*/ any;
10736
+ clearable(clearable?: boolean): /*elided*/ any;
10737
+ description(description: string): /*elided*/ any;
10738
+ options(options: InputProps): /*elided*/ any;
10739
+ _componentType: ComponentType;
10740
+ toString(): string;
10741
+ toJSON(): InputProps;
10742
+ };
10743
+ email: (key: string) => {
10744
+ _config: InputProps;
10745
+ _type(dataType: InputDataType): /*elided*/ any;
10746
+ label(label: string): /*elided*/ any;
10747
+ placeholder(placeholder: string): /*elided*/ any;
10748
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10749
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10750
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10751
+ required(required?: boolean): /*elided*/ any;
10752
+ clearable(clearable?: boolean): /*elided*/ any;
10753
+ description(description: string): /*elided*/ any;
10754
+ options(options: InputProps): /*elided*/ any;
10755
+ _componentType: ComponentType;
10756
+ toString(): string;
10757
+ toJSON(): InputProps;
10758
+ };
10759
+ url: (key: string) => {
10760
+ _config: InputProps;
10761
+ _type(dataType: InputDataType): /*elided*/ any;
10762
+ label(label: string): /*elided*/ any;
10763
+ placeholder(placeholder: string): /*elided*/ any;
10764
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10765
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10766
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10767
+ required(required?: boolean): /*elided*/ any;
10768
+ clearable(clearable?: boolean): /*elided*/ any;
10769
+ description(description: string): /*elided*/ any;
10770
+ options(options: InputProps): /*elided*/ any;
10771
+ _componentType: ComponentType;
10772
+ toString(): string;
10773
+ toJSON(): InputProps;
10774
+ };
10775
+ tel: (key: string) => {
10776
+ _config: InputProps;
10777
+ _type(dataType: InputDataType): /*elided*/ any;
10778
+ label(label: string): /*elided*/ any;
10779
+ placeholder(placeholder: string): /*elided*/ any;
10780
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10781
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10782
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10783
+ required(required?: boolean): /*elided*/ any;
10784
+ clearable(clearable?: boolean): /*elided*/ any;
10785
+ description(description: string): /*elided*/ any;
10786
+ options(options: InputProps): /*elided*/ any;
10787
+ _componentType: ComponentType;
10788
+ toString(): string;
10789
+ toJSON(): InputProps;
10790
+ };
10791
+ password: (key: string) => {
10792
+ _config: InputProps;
10793
+ _type(dataType: InputDataType): /*elided*/ any;
10794
+ label(label: string): /*elided*/ any;
10795
+ placeholder(placeholder: string): /*elided*/ any;
10796
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10797
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10798
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10799
+ required(required?: boolean): /*elided*/ any;
10800
+ clearable(clearable?: boolean): /*elided*/ any;
10801
+ description(description: string): /*elided*/ any;
10802
+ options(options: InputProps): /*elided*/ any;
10803
+ _componentType: ComponentType;
10804
+ toString(): string;
10805
+ toJSON(): InputProps;
10806
+ };
10807
+ color: (key: string) => {
10808
+ _config: InputProps;
10809
+ _type(dataType: InputDataType): /*elided*/ any;
10810
+ label(label: string): /*elided*/ any;
10811
+ placeholder(placeholder: string): /*elided*/ any;
10812
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10813
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10814
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10815
+ required(required?: boolean): /*elided*/ any;
10816
+ clearable(clearable?: boolean): /*elided*/ any;
10817
+ description(description: string): /*elided*/ any;
10818
+ options(options: InputProps): /*elided*/ any;
10819
+ _componentType: ComponentType;
10820
+ toString(): string;
10821
+ toJSON(): InputProps;
10822
+ };
10823
+ json: (key: string) => {
10824
+ _config: InputProps;
10825
+ _type(dataType: InputDataType): /*elided*/ any;
10826
+ label(label: string): /*elided*/ any;
10827
+ placeholder(placeholder: string): /*elided*/ any;
10828
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10829
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10830
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10831
+ required(required?: boolean): /*elided*/ any;
10832
+ clearable(clearable?: boolean): /*elided*/ any;
10833
+ description(description: string): /*elided*/ any;
10834
+ options(options: InputProps): /*elided*/ any;
10835
+ _componentType: ComponentType;
10836
+ toString(): string;
10837
+ toJSON(): InputProps;
10838
+ };
10839
+ options: (key: string, options: InputProps) => {
10840
+ _config: InputProps;
10841
+ _type(dataType: InputDataType): /*elided*/ any;
10842
+ label(label: string): /*elided*/ any;
10843
+ placeholder(placeholder: string): /*elided*/ any;
10844
+ validate(rules: ValidationRule | ValidationRule[]): /*elided*/ any;
10845
+ size(size: "sm" | "md" | "lg"): /*elided*/ any;
10846
+ color(color: "default" | "primary" | "secondary" | "success" | "warning" | "danger"): /*elided*/ any;
10847
+ required(required?: boolean): /*elided*/ any;
10848
+ clearable(clearable?: boolean): /*elided*/ any;
10849
+ description(description: string): /*elided*/ any;
10850
+ options(options: InputProps): /*elided*/ any;
10851
+ _componentType: ComponentType;
10852
+ toString(): string;
10853
+ toJSON(): InputProps;
10854
+ };
10855
+ };
10856
+ /** 开关 */
10857
+ switch: {
10858
+ create: (key: string) => {
10859
+ _config: SwitchProps;
10860
+ startText: (text: string) => /*elided*/ any;
10861
+ endText: (text: string) => /*elided*/ any;
10862
+ size: (size: "sm" | "md" | "lg") => /*elided*/ any;
10863
+ color: (color: "default" | "primary" | "secondary" | "success" | "warning" | "danger") => /*elided*/ any;
10864
+ thumbIcon: (icon: string) => /*elided*/ any;
10865
+ startContent: (icon: string) => /*elided*/ any;
10866
+ endContent: (icon: string) => /*elided*/ any;
10867
+ selected: (selected?: boolean) => /*elided*/ any;
10868
+ defaultSelected: (selected?: boolean) => /*elided*/ any;
10869
+ readonly: (readonly?: boolean) => /*elided*/ any;
10870
+ disabled: (disabled?: boolean) => /*elided*/ any;
10871
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
10872
+ options: (options: SwitchProps) => /*elided*/ any;
10873
+ _componentType: ComponentType;
10874
+ toString(): string;
10875
+ toJSON(): SwitchProps;
10876
+ };
10877
+ options: (key: string, options: SwitchProps) => {
10878
+ _config: SwitchProps;
10879
+ startText: (text: string) => /*elided*/ any;
10880
+ endText: (text: string) => /*elided*/ any;
10881
+ size: (size: "sm" | "md" | "lg") => /*elided*/ any;
10882
+ color: (color: "default" | "primary" | "secondary" | "success" | "warning" | "danger") => /*elided*/ any;
10883
+ thumbIcon: (icon: string) => /*elided*/ any;
10884
+ startContent: (icon: string) => /*elided*/ any;
10885
+ endContent: (icon: string) => /*elided*/ any;
10886
+ selected: (selected?: boolean) => /*elided*/ any;
10887
+ defaultSelected: (selected?: boolean) => /*elided*/ any;
10888
+ readonly: (readonly?: boolean) => /*elided*/ any;
10889
+ disabled: (disabled?: boolean) => /*elided*/ any;
10890
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
10891
+ options: (options: SwitchProps) => /*elided*/ any;
10892
+ _componentType: ComponentType;
10893
+ toString(): string;
10894
+ toJSON(): SwitchProps;
10895
+ };
10896
+ };
10897
+ /** 手风琴 */
10898
+ accordion: {
10899
+ create: (key: string) => {
10900
+ _config: AccordionProps;
10901
+ title: (title: string) => /*elided*/ any;
10902
+ children: (children: AccordionItem[]) => /*elided*/ any;
10903
+ variant: (variant: AccordionProps["variant"]) => /*elided*/ any;
10904
+ selectionMode: (mode: AccordionProps["selectionMode"]) => /*elided*/ any;
10905
+ selectionBehavior: (behavior: AccordionProps["selectionBehavior"]) => /*elided*/ any;
10906
+ compact: (isCompact?: boolean) => /*elided*/ any;
10907
+ disabled: (isDisabled?: boolean) => /*elided*/ any;
10908
+ showDivider: (show?: boolean) => /*elided*/ any;
10909
+ hideIndicator: (hide?: boolean) => /*elided*/ any;
10910
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
10911
+ disableIndicatorAnimation: (disable?: boolean) => /*elided*/ any;
10912
+ disallowEmptySelection: (disallow?: boolean) => /*elided*/ any;
10913
+ keepContentMounted: (keep?: boolean) => /*elided*/ any;
10914
+ fullWidth: (full?: boolean) => /*elided*/ any;
10915
+ disabledKeys: (keys: string[]) => /*elided*/ any;
10916
+ selectedKeys: (keys: string[]) => /*elided*/ any;
10917
+ defaultSelectedKeys: (keys: string[]) => /*elided*/ any;
10918
+ options: (options: AccordionProps) => /*elided*/ any;
10919
+ toJSON: () => AccordionProps;
10920
+ _componentType: ComponentType;
10921
+ toString(): string;
10922
+ };
10923
+ default: (key: string) => {
10924
+ _config: AccordionProps;
10925
+ title: (title: string) => /*elided*/ any;
10926
+ children: (children: AccordionItem[]) => /*elided*/ any;
10927
+ variant: (variant: AccordionProps["variant"]) => /*elided*/ any;
10928
+ selectionMode: (mode: AccordionProps["selectionMode"]) => /*elided*/ any;
10929
+ selectionBehavior: (behavior: AccordionProps["selectionBehavior"]) => /*elided*/ any;
10930
+ compact: (isCompact?: boolean) => /*elided*/ any;
10931
+ disabled: (isDisabled?: boolean) => /*elided*/ any;
10932
+ showDivider: (show?: boolean) => /*elided*/ any;
10933
+ hideIndicator: (hide?: boolean) => /*elided*/ any;
10934
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
10935
+ disableIndicatorAnimation: (disable?: boolean) => /*elided*/ any;
10936
+ disallowEmptySelection: (disallow?: boolean) => /*elided*/ any;
10937
+ keepContentMounted: (keep?: boolean) => /*elided*/ any;
10938
+ fullWidth: (full?: boolean) => /*elided*/ any;
10939
+ disabledKeys: (keys: string[]) => /*elided*/ any;
10940
+ selectedKeys: (keys: string[]) => /*elided*/ any;
10941
+ defaultSelectedKeys: (keys: string[]) => /*elided*/ any;
10942
+ options: (options: AccordionProps) => /*elided*/ any;
10943
+ toJSON: () => AccordionProps;
10944
+ _componentType: ComponentType;
10945
+ toString(): string;
10946
+ };
10947
+ options: (key: string, options: AccordionProps) => {
10948
+ _config: AccordionProps;
10949
+ title: (title: string) => /*elided*/ any;
10950
+ children: (children: AccordionItem[]) => /*elided*/ any;
10951
+ variant: (variant: AccordionProps["variant"]) => /*elided*/ any;
10952
+ selectionMode: (mode: AccordionProps["selectionMode"]) => /*elided*/ any;
10953
+ selectionBehavior: (behavior: AccordionProps["selectionBehavior"]) => /*elided*/ any;
10954
+ compact: (isCompact?: boolean) => /*elided*/ any;
10955
+ disabled: (isDisabled?: boolean) => /*elided*/ any;
10956
+ showDivider: (show?: boolean) => /*elided*/ any;
10957
+ hideIndicator: (hide?: boolean) => /*elided*/ any;
10958
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
10959
+ disableIndicatorAnimation: (disable?: boolean) => /*elided*/ any;
10960
+ disallowEmptySelection: (disallow?: boolean) => /*elided*/ any;
10961
+ keepContentMounted: (keep?: boolean) => /*elided*/ any;
10962
+ fullWidth: (full?: boolean) => /*elided*/ any;
10963
+ disabledKeys: (keys: string[]) => /*elided*/ any;
10964
+ selectedKeys: (keys: string[]) => /*elided*/ any;
10965
+ defaultSelectedKeys: (keys: string[]) => /*elided*/ any;
10966
+ options: (options: AccordionProps) => /*elided*/ any;
10967
+ toJSON: () => AccordionProps;
10968
+ _componentType: ComponentType;
10969
+ toString(): string;
10970
+ };
10971
+ createItem: (key: string) => AccordionItem;
10972
+ };
10973
+ /** 手风琴Pro */
10974
+ accordionPro: {
10975
+ create: (key: string, data: Record<string, any>[]) => {
10976
+ data: (data: Record<string, any>[]) => /*elided*/ any;
10977
+ _config: AccordionProProps;
10978
+ title: (title: string) => /*elided*/ any;
10979
+ children: (children: AccordionItem[]) => /*elided*/ any;
10980
+ variant: (variant: AccordionProps["variant"]) => /*elided*/ any;
10981
+ selectionMode: (mode: AccordionProps["selectionMode"]) => /*elided*/ any;
10982
+ selectionBehavior: (behavior: AccordionProps["selectionBehavior"]) => /*elided*/ any;
10983
+ compact: (isCompact?: boolean) => /*elided*/ any;
10984
+ disabled: (isDisabled?: boolean) => /*elided*/ any;
10985
+ showDivider: (show?: boolean) => /*elided*/ any;
10986
+ hideIndicator: (hide?: boolean) => /*elided*/ any;
10987
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
10988
+ disableIndicatorAnimation: (disable?: boolean) => /*elided*/ any;
10989
+ disallowEmptySelection: (disallow?: boolean) => /*elided*/ any;
10990
+ keepContentMounted: (keep?: boolean) => /*elided*/ any;
10991
+ fullWidth: (full?: boolean) => /*elided*/ any;
10992
+ disabledKeys: (keys: string[]) => /*elided*/ any;
10993
+ selectedKeys: (keys: string[]) => /*elided*/ any;
10994
+ defaultSelectedKeys: (keys: string[]) => /*elided*/ any;
10995
+ options: (options: AccordionProProps) => /*elided*/ any;
10996
+ toJSON: () => AccordionProProps;
10997
+ _componentType: ComponentType;
10998
+ toString(): string;
10999
+ };
11000
+ default: (key: string) => {
11001
+ data: (data: Record<string, any>[]) => /*elided*/ any;
11002
+ _config: AccordionProProps;
11003
+ title: (title: string) => /*elided*/ any;
11004
+ children: (children: AccordionItem[]) => /*elided*/ any;
11005
+ variant: (variant: AccordionProps["variant"]) => /*elided*/ any;
11006
+ selectionMode: (mode: AccordionProps["selectionMode"]) => /*elided*/ any;
11007
+ selectionBehavior: (behavior: AccordionProps["selectionBehavior"]) => /*elided*/ any;
11008
+ compact: (isCompact?: boolean) => /*elided*/ any;
11009
+ disabled: (isDisabled?: boolean) => /*elided*/ any;
11010
+ showDivider: (show?: boolean) => /*elided*/ any;
11011
+ hideIndicator: (hide?: boolean) => /*elided*/ any;
11012
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
11013
+ disableIndicatorAnimation: (disable?: boolean) => /*elided*/ any;
11014
+ disallowEmptySelection: (disallow?: boolean) => /*elided*/ any;
11015
+ keepContentMounted: (keep?: boolean) => /*elided*/ any;
11016
+ fullWidth: (full?: boolean) => /*elided*/ any;
11017
+ disabledKeys: (keys: string[]) => /*elided*/ any;
11018
+ selectedKeys: (keys: string[]) => /*elided*/ any;
11019
+ defaultSelectedKeys: (keys: string[]) => /*elided*/ any;
11020
+ options: (options: AccordionProProps) => /*elided*/ any;
11021
+ toJSON: () => AccordionProProps;
11022
+ _componentType: ComponentType;
11023
+ toString(): string;
11024
+ };
11025
+ options: (key: string, options: AccordionProProps) => {
11026
+ data: (data: Record<string, any>[]) => /*elided*/ any;
11027
+ _config: AccordionProProps;
11028
+ title: (title: string) => /*elided*/ any;
11029
+ children: (children: AccordionItem[]) => /*elided*/ any;
11030
+ variant: (variant: AccordionProps["variant"]) => /*elided*/ any;
11031
+ selectionMode: (mode: AccordionProps["selectionMode"]) => /*elided*/ any;
11032
+ selectionBehavior: (behavior: AccordionProps["selectionBehavior"]) => /*elided*/ any;
11033
+ compact: (isCompact?: boolean) => /*elided*/ any;
11034
+ disabled: (isDisabled?: boolean) => /*elided*/ any;
11035
+ showDivider: (show?: boolean) => /*elided*/ any;
11036
+ hideIndicator: (hide?: boolean) => /*elided*/ any;
11037
+ disableAnimation: (disable?: boolean) => /*elided*/ any;
11038
+ disableIndicatorAnimation: (disable?: boolean) => /*elided*/ any;
11039
+ disallowEmptySelection: (disallow?: boolean) => /*elided*/ any;
11040
+ keepContentMounted: (keep?: boolean) => /*elided*/ any;
11041
+ fullWidth: (full?: boolean) => /*elided*/ any;
11042
+ disabledKeys: (keys: string[]) => /*elided*/ any;
11043
+ selectedKeys: (keys: string[]) => /*elided*/ any;
11044
+ defaultSelectedKeys: (keys: string[]) => /*elided*/ any;
11045
+ options: (options: AccordionProProps) => /*elided*/ any;
11046
+ toJSON: () => AccordionProProps;
11047
+ _componentType: ComponentType;
11048
+ toString(): string;
11049
+ };
11050
+ };
11051
+ /** 手风琴项 */
11052
+ accordionItem: {
11053
+ create: (key: string) => AccordionItem;
11054
+ };
11055
+ };
11056
+ type ComponentsClass = typeof divider | ReturnType<typeof input.create> | ReturnType<typeof switchComponent.create>;
11057
+
11058
+ type AccordionType<T extends 'accordion' | 'accordion-pro'> = T extends 'accordion' ? AccordionProps : AccordionProProps;
11059
+ declare class AccordionBase<T extends 'accordion' | 'accordion-pro'> extends Component<AccordionType<T>> {
11060
+ _config: AccordionType<T>;
11061
+ constructor(key: string, componentType: T);
11062
+ /**
11063
+ * 设置标题
11064
+ * @param title - 标题文本
11065
+ */
11066
+ title: (title: string) => this;
11067
+ /**
11068
+ * 设置子组件
11069
+ * @param children - 子组件数组
11070
+ */
11071
+ children: (children: AccordionItem[]) => this;
11072
+ /**
11073
+ * 设置样式变体
11074
+ * @param variant - 样式类型
11075
+ */
11076
+ variant: (variant: AccordionProps["variant"]) => this;
11077
+ /**
11078
+ * 设置选择模式
11079
+ * @param mode - 选择模式
11080
+ * - none: 无
11081
+ * - single: 单选
11082
+ * - multiple: 多选
11083
+ */
11084
+ selectionMode: (mode: AccordionProps["selectionMode"]) => this;
11085
+ /**
11086
+ * 设置选择行为
11087
+ * @param behavior - 选择行为
11088
+ * - toggle: 切换
11089
+ * - replace: 替换
11090
+ */
11091
+ selectionBehavior: (behavior: AccordionProps["selectionBehavior"]) => this;
11092
+ /**
11093
+ * 设置是否紧凑模式
11094
+ * @param isCompact - 是否紧凑
11095
+ */
11096
+ compact: (isCompact?: boolean) => this;
11097
+ /**
11098
+ * 设置是否禁用
11099
+ * @param isDisabled - 是否禁用
11100
+ */
11101
+ disabled: (isDisabled?: boolean) => this;
11102
+ /**
11103
+ * 设置是否显示分隔线
11104
+ * @param show - 是否显示
11105
+ */
11106
+ showDivider: (show?: boolean) => this;
11107
+ /**
11108
+ * 设置是否隐藏指示器
11109
+ * @param hide - 是否隐藏
11110
+ */
11111
+ hideIndicator: (hide?: boolean) => this;
11112
+ /**
11113
+ * 设置是否禁用动画
11114
+ * @param disable - 是否禁用
11115
+ */
11116
+ disableAnimation: (disable?: boolean) => this;
11117
+ /**
11118
+ * 设置是否禁用指示器动画
11119
+ * @param disable - 是否禁用
11120
+ */
11121
+ disableIndicatorAnimation: (disable?: boolean) => this;
11122
+ /**
11123
+ * 设置是否不允许空选择
11124
+ * @param disallow - 是否不允许
11125
+ */
11126
+ disallowEmptySelection: (disallow?: boolean) => this;
11127
+ /**
11128
+ * 设置是否保持内容挂载
11129
+ * @param keep - 是否保持
11130
+ */
11131
+ keepContentMounted: (keep?: boolean) => this;
11132
+ /**
11133
+ * 设置是否全宽
11134
+ * @param full - 是否全宽
11135
+ */
11136
+ fullWidth: (full?: boolean) => this;
11137
+ /**
11138
+ * 设置禁用的键
11139
+ * @param keys - 禁用的键数组
11140
+ */
11141
+ disabledKeys: (keys: string[]) => this;
11142
+ /**
11143
+ * 设置选中项
11144
+ * @param keys - 选中的键数组
11145
+ */
11146
+ selectedKeys: (keys: string[]) => this;
11147
+ /**
11148
+ * 设置默认选中项
11149
+ * @param keys - 默认选中的键数组
11150
+ */
11151
+ defaultSelectedKeys: (keys: string[]) => this;
11152
+ /**
11153
+ * 自定义配置
11154
+ * @param options - 配置选项
11155
+ */
11156
+ options: (options: AccordionType<T>) => this;
11157
+ /**
11158
+ * 转换为JSON对象
11159
+ * @description 手风琴比较特殊 需要子组件也进行转换
11160
+ */
11161
+ toJSON: () => AccordionType<T>;
11162
+ }
11163
+ declare class Accordion extends AccordionBase<'accordion'> {
11164
+ constructor(key: string);
11165
+ }
11166
+ declare class AccordionPro extends AccordionBase<'accordion-pro'> {
11167
+ constructor(key: string);
11168
+ /**
11169
+ * 设置渲染数据
11170
+ * @param data - 渲染数据
11171
+ */
11172
+ data: (data: Record<string, any>[]) => this;
11173
+ }
11174
+ /**
11175
+ * 手风琴子组件
11176
+ */
11177
+ declare class AccordionItem extends Component<AccordionItemProps> {
11178
+ _config: AccordionItemProps;
11179
+ constructor(key: string);
11180
+ /**
11181
+ * 设置子组件
11182
+ * @param children - 子组件数组
11183
+ */
11184
+ children: (children: ComponentsClass | ComponentsClass[]) => this;
11185
+ /**
11186
+ * 设置标题
11187
+ * @param title - 标题文本
11188
+ */
11189
+ title: (title: string) => this;
11190
+ /**
11191
+ * 设置副标题
11192
+ * @param subtitle - 副标题文本
11193
+ */
11194
+ subtitle: (subtitle: string) => this;
11195
+ /**
11196
+ * 设置是否显示指示器
11197
+ * @param hide - 是否隐藏
11198
+ */
11199
+ hideIndicator: (hide?: boolean) => this;
11200
+ /**
11201
+ * 设置是否紧凑模式
11202
+ * @param isCompact - 是否紧凑
11203
+ */
11204
+ compact: (isCompact?: boolean) => this;
11205
+ /**
11206
+ * 设置是否禁用
11207
+ * @param isDisabled - 是否禁用
11208
+ */
11209
+ disabled: (isDisabled?: boolean) => this;
11210
+ /**
11211
+ * 设置是否保持内容挂载
11212
+ * @param keep - 是否保持
11213
+ */
11214
+ keepContentMounted: (keep?: boolean) => this;
11215
+ /**
11216
+ * 设置是否禁用动画
11217
+ * @param disable - 是否禁用
11218
+ */
11219
+ disableAnimation: (disable?: boolean) => this;
11220
+ /**
11221
+ * 设置是否禁用指示器动画
11222
+ * @param disable - 是否禁用
11223
+ */
11224
+ disableIndicatorAnimation: (disable?: boolean) => this;
11225
+ /**
11226
+ * 自定义配置
11227
+ * @param options - 配置选项
11228
+ */
11229
+ options: (options: AccordionItemProps) => this;
11230
+ /**
11231
+ * 转换为JSON对象
11232
+ * @description 手风琴比较特殊 需要子组件也进行转换
11233
+ */
11234
+ toJSON: () => AccordionItemProps;
11235
+ }
11236
+ /**
11237
+ * 手风琴组件构建器
11238
+ */
11239
+ declare const accordion: {
11240
+ /**
11241
+ * 创建基础手风琴组件
11242
+ * @param key - 唯一标识符
11243
+ */
11244
+ create: (key: string) => Accordion;
11245
+ /**
11246
+ * 创建默认配置的手风琴组件
11247
+ * @param key - 唯一标识符
11248
+ */
11249
+ default: (key: string) => Accordion;
11250
+ /**
11251
+ * 使用自定义配置创建手风琴组件
11252
+ * @param key - 唯一标识符
11253
+ * @param options - 配置选项
11254
+ */
11255
+ options: (key: string, options: AccordionProps) => Accordion;
11256
+ /**
11257
+ * 创建手风琴子项
11258
+ * @param key - 唯一标识符
11259
+ */
11260
+ createItem: (key: string) => AccordionItem;
11261
+ };
11262
+ /**
11263
+ * 手风琴Pro组件构建器
11264
+ */
11265
+ declare const accordionPro: {
11266
+ /**
11267
+ * 创建基础手风琴组件
11268
+ * @param key - 唯一标识符
11269
+ */
11270
+ create: (key: string, data: Record<string, any>[]) => AccordionPro;
11271
+ /**
11272
+ * 创建默认配置的手风琴组件
11273
+ * @param key - 唯一标识符
11274
+ */
11275
+ default: (key: string) => AccordionPro;
11276
+ /**
11277
+ * 使用自定义配置创建手风琴组件
11278
+ * @param key - 唯一标识符
11279
+ * @param options - 配置选项
11280
+ */
11281
+ options: (key: string, options: AccordionProProps) => AccordionPro;
11282
+ };
11283
+ /**
11284
+ * 手风琴子组件构建器
11285
+ */
11286
+ declare const accordionItem: {
11287
+ /**
11288
+ * 创建手风琴子项
11289
+ * @param key - 唯一标识符
11290
+ */
11291
+ create: (key: string) => AccordionItem;
11292
+ };
11293
+
11294
+ /**
11295
+ * 获取插件
11296
+ * @param type 获取插件的方式
11297
+ * @param isInfo 是否获取插件详细信息 否则返回插件名称列表
11298
+ * @param isForce 是否强制更新缓存
11299
+ */
11300
+ declare const getPlugins: <T extends boolean = false>(type: GetPluginType, isInfo?: T, isForce?: boolean) => Promise<GetPluginReturn<T>>;
11301
+
10382
11302
  /**
10383
11303
  * 登录号信息
10384
11304
  */
@@ -10631,4 +11551,4 @@ declare let level: ReturnType<typeof createLevelDB>;
10631
11551
  */
10632
11552
  declare const start: () => Promise<void>;
10633
11553
 
10634
- export { type Accept, type AccordionItemProps, type AccordionProProps, type AccordionProps, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type ArrayField, type AtElement, type AtSegment, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, type Cache, type CacheEntry, type CheckboxField, type CmdFnc, type Command, type CommandClass, type ComponentProps, ComponentType, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DbStreamStatus, type DbStreams, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DividerField, type DividerProps, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, type ElementTypes, type Elements, type Env, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, FILE_CHANGE, type FaceElement, type FaceSegment, type FieldType, type FileElement, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type FormField, type ForwardOptions, type ForwardSegment, type FriendContact, type FriendData, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendRequestOptions, type FriendSender, type GetAtAllCountResponse, type GetBot, type GetGroupFileListResponse, type GetGroupFileSystemInfoResponse, type GetGroupHighlightsResponse, type GetGroupInfo, type GetGroupMemberInfo, type GetGroupMuteListResponse, type GetMsg, type GetPluginReturn, type GetPluginType, type GiftElement, type GoToOptions, GroupAdminChangedNotice, type GroupAdminChangedOptions, GroupApplyRequest, type GroupApplyRequestOptions, GroupCardChangedNotice, type GroupCardChangedOptions, type GroupContact, type GroupData, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, type GroupMemberData, GroupMemberDecreaseNotice, type GroupMemberDecreaseOptions, GroupMemberIncreaseNotice, type GroupMemberIncreaseOptions, type GroupMemberInfo, GroupMemberTitleUpdatedNotice, type GroupMemberUniqueTitleChangedOptions, GroupMessage, type GroupMessageOptions, GroupMessageReactionNotice, type GroupMessageReactionOptions, GroupNotice, type GroupNoticeEventMap, GroupPokeNotice, type GroupPokeOptions, GroupRecallNotice, type GroupRecallOptions, type GroupRequestEventMap, type GroupSender, GroupSignInNotice, type GroupSignInOptions, type GroupTempContact, GroupTempMessage, type GroupTempMessageOptions, type GroupTempSender, GroupWholeBanNotice, type GroupWholeBanOptions, type Groups, type GroupsObjectValue, type GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type ImageElement, type ImageSegment, InputDataType, type InputProps, type JsonElement, type JsonSegment, type KarinButton, type KeyboardElement, type LocationElement, type LocationSegment, type Log, type Logger, type LoggerExpand, type LoggerLevel, type LoggerOptions, type LongMsgElement, type MarkdownElement, type MarkdownTplElement, type MarketFaceElement, type Message$2 as Message, MessageBase, type MessageEventMap, type MessageEventSub, type MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NodeElement, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, type NumberField, type OB11AllEvent, OB11ApiAction, type OB11ApiParams, type OB11ApiRequest, OB11Event, type OB11EventBase, type OB11FriendSender, type OB11GroupMessage, type OB11GroupSender, type OB11GroupTempMessage, type OB11Message, OB11MessageSubType, OB11MessageType, type OB11Meta, type OB11NodeSegment, type OB11Notice, type OB11NoticeBaseType, OB11NoticeType, type OB11OtherFriendMessage, type OB11PrivateMessage, type OB11Request, type OB11RequestBaseType, OB11RequestType, type OB11Segment, type OB11SegmentBase, type OB11SegmentType, OB11Sex, type OB11serInfo, type ObjectArrayField, type ObjectField, type OneBot11FriendAdd, type OneBot11FriendRecall, type OneBot11FriendRequest, type OneBot11GroupAdmin, type OneBot11GroupBan, type OneBot11GroupCard, type OneBot11GroupDecrease, type OneBot11GroupEssence, type OneBot11GroupIncrease, type OneBot11GroupMessageReaction, type OneBot11GroupMessageReactionLagrange, type OneBot11GroupRecall, type OneBot11GroupRequest, type OneBot11GroupUpload, type OneBot11Heartbeat, type OneBot11Honor, type OneBot11Lifecycle, type OneBot11LuckyKing, type OneBot11Poke, type OnlinePluginInfo, type Option, type Options, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginLists, type PluginOptions, type PluginRule, type PluginUpdateInfo, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PrivatesObjectValue, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, type RadioField, type RawElement, type ReadyMusicElement, ReceiveLikeNotice, type ReceiveLikeOptions, type RecordElement, type RecordSegment, type Redis, type Render, type RenderResult, Renderer, type Renders, type Reply, type ReplyElement, type ReplySegment, type Request, RequestBase, type RequestEventMap, type RequestEventSub, type RequestOptions, type RequireFunction, type RequireFunctionSync, type RequireOptions, type Role, type RpsElement, type RpsSegment, SEND_MSG, type SandBoxAccountInfo, type SandboxMsgRecord, type SandboxSendApi, type SandboxSendSendFriendMsg, type SandboxSendSendGroupMsg, type SandboxSendSendMsg, type Scene, type ScreenshotClip, type ScreenshotOptions, type SectionField, type Segment, type SelectField, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type SwitchField, type SwitchProps, type Task, type TextElement, type TextField, type TextSegment, type TitleField, type UnregisterBot, type UserInfo, type ValidationRule, type ValueType, type VideoElement, type VideoSegment, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createDirectMessage, createFriendDecreaseNotice, createFriendIncreaseNotice, createFriendMessage, createGroupAdminChangedNotice, createGroupApplyRequest, createGroupCardChangedNotice, createGroupFileUploadedNotice, createGroupHlightsChangedNotice, createGroupHonorChangedNotice, createGroupInviteRequest, createGroupLuckKingNotice, createGroupMemberAddNotice, createGroupMemberBanNotice, createGroupMemberDelNotice, createGroupMemberTitleUpdatedNotice, createGroupMessage, createGroupMessageReactionNotice, createGroupPokeNotice, createGroupRecallNotice, createGroupSignInNotice, createGroupTempMessage, createGroupWholeBanNotice, createGuildMessage, createInnerLogger, createPluginDir, createPrivateApplyRequest, createPrivateFileUploadedNotice, createPrivatePokeNotice, createPrivateRecallNotice, createRawMessage, createReceiveLikeNotice, debug, karin as default, downFile, errorToString, exec, existToMkdir, existToMkdirSync, exists, existsSync, ffmpeg, ffplay, ffprobe, fs as file, fileToUrl, fileToUrlHandlerKey, filesByExt, formatTime$1 as formatTime, index$3 as fs, getAllBot, getAllBotID, getAllBotList, getBot, getBotCount, getCommit, getFiles, getHash, getPid, getPkgVersion, getPluginInfo, getPlugins, getRelPath, getRemotePkgVersion, getRender, getRenderCount, getRenderList, getRequestIp, getTime, handler$1 as handler, importModule, initOneBot, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, level, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, requireFile, requireFileSync, restart, restartDirect, rmSync, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, start, stream, stringifyError, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, write, writeJson, writeJsonSync, yaml };
11554
+ export { type Accept, AccordionItem, type AccordionItemProps, type AccordionProProps, type AccordionProps, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type ArrayField, type AtElement, type AtSegment, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, type Cache, type CacheEntry, type CheckboxField, type Children, type CmdFnc, type Command, type CommandClass, type ComponentProps, type ComponentType, type ComponentsClass, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DbStreamStatus, type DbStreams, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DividerField, type DividerProps, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, type ElementTypes, type Elements, type Env, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, FILE_CHANGE, type FaceElement, type FaceSegment, type FieldType, type FileElement, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type FormField, type ForwardOptions, type ForwardSegment, type FriendContact, type FriendData, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendRequestOptions, type FriendSender, type GetAtAllCountResponse, type GetBot, type GetGroupFileListResponse, type GetGroupFileSystemInfoResponse, type GetGroupHighlightsResponse, type GetGroupInfo, type GetGroupMemberInfo, type GetGroupMuteListResponse, type GetMsg, type GetPluginReturn, type GetPluginType, type GiftElement, type GoToOptions, GroupAdminChangedNotice, type GroupAdminChangedOptions, GroupApplyRequest, type GroupApplyRequestOptions, GroupCardChangedNotice, type GroupCardChangedOptions, type GroupContact, type GroupData, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, type GroupMemberData, GroupMemberDecreaseNotice, type GroupMemberDecreaseOptions, GroupMemberIncreaseNotice, type GroupMemberIncreaseOptions, type GroupMemberInfo, GroupMemberTitleUpdatedNotice, type GroupMemberUniqueTitleChangedOptions, GroupMessage, type GroupMessageOptions, GroupMessageReactionNotice, type GroupMessageReactionOptions, GroupNotice, type GroupNoticeEventMap, GroupPokeNotice, type GroupPokeOptions, GroupRecallNotice, type GroupRecallOptions, type GroupRequestEventMap, type GroupSender, GroupSignInNotice, type GroupSignInOptions, type GroupTempContact, GroupTempMessage, type GroupTempMessageOptions, type GroupTempSender, GroupWholeBanNotice, type GroupWholeBanOptions, type Groups, type GroupsObjectValue, type GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type ImageElement, type ImageSegment, InputDataType, type InputProps, type JsonElement, type JsonSegment, type KarinButton, type KeyboardElement, type LocationElement, type LocationSegment, type Log, type Logger, type LoggerExpand, type LoggerLevel, type LoggerOptions, type LongMsgElement, type MarkdownElement, type MarkdownTplElement, type MarketFaceElement, type Message$2 as Message, MessageBase, type MessageEventMap, type MessageEventSub, type MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NodeElement, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, type NumberField, type OB11AllEvent, OB11ApiAction, type OB11ApiParams, type OB11ApiRequest, OB11Event, type OB11EventBase, type OB11FriendSender, type OB11GroupMessage, type OB11GroupSender, type OB11GroupTempMessage, type OB11Message, OB11MessageSubType, OB11MessageType, type OB11Meta, type OB11NodeSegment, type OB11Notice, type OB11NoticeBaseType, OB11NoticeType, type OB11OtherFriendMessage, type OB11PrivateMessage, type OB11Request, type OB11RequestBaseType, OB11RequestType, type OB11Segment, type OB11SegmentBase, type OB11SegmentType, OB11Sex, type OB11serInfo, type ObjectArrayField, type ObjectField, type OneBot11FriendAdd, type OneBot11FriendRecall, type OneBot11FriendRequest, type OneBot11GroupAdmin, type OneBot11GroupBan, type OneBot11GroupCard, type OneBot11GroupDecrease, type OneBot11GroupEssence, type OneBot11GroupIncrease, type OneBot11GroupMessageReaction, type OneBot11GroupMessageReactionLagrange, type OneBot11GroupRecall, type OneBot11GroupRequest, type OneBot11GroupUpload, type OneBot11Heartbeat, type OneBot11Honor, type OneBot11Lifecycle, type OneBot11LuckyKing, type OneBot11Poke, type OnlinePluginInfo, type Option, type Options, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginLists, type PluginOptions, type PluginRule, type PluginUpdateInfo, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PrivatesObjectValue, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, type RadioField, type RawElement, type ReadyMusicElement, ReceiveLikeNotice, type ReceiveLikeOptions, type RecordElement, type RecordSegment, type Redis, type Render, type RenderResult, Renderer, type Renders, type Reply, type ReplyElement, type ReplySegment, type Request, RequestBase, type RequestEventMap, type RequestEventSub, type RequestOptions, type RequireFunction, type RequireFunctionSync, type RequireOptions, type Role, type RpsElement, type RpsSegment, SEND_MSG, type SandBoxAccountInfo, type SandboxMsgRecord, type SandboxSendApi, type SandboxSendSendFriendMsg, type SandboxSendSendGroupMsg, type SandboxSendSendMsg, type Scene, type ScreenshotClip, type ScreenshotOptions, type SectionField, type Segment, type SelectField, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type SwitchField, type SwitchProps, type Task, type TextElement, type TextField, type TextSegment, type TitleField, type UnregisterBot, type UserInfo, type ValidationRule, type ValueType, type VideoElement, type VideoSegment, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, accordion, accordionItem, accordionPro, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, components, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createDirectMessage, createFriendDecreaseNotice, createFriendIncreaseNotice, createFriendMessage, createGroupAdminChangedNotice, createGroupApplyRequest, createGroupCardChangedNotice, createGroupFileUploadedNotice, createGroupHlightsChangedNotice, createGroupHonorChangedNotice, createGroupInviteRequest, createGroupLuckKingNotice, createGroupMemberAddNotice, createGroupMemberBanNotice, createGroupMemberDelNotice, createGroupMemberTitleUpdatedNotice, createGroupMessage, createGroupMessageReactionNotice, createGroupPokeNotice, createGroupRecallNotice, createGroupSignInNotice, createGroupTempMessage, createGroupWholeBanNotice, createGuildMessage, createInnerLogger, createPluginDir, createPrivateApplyRequest, createPrivateFileUploadedNotice, createPrivatePokeNotice, createPrivateRecallNotice, createRawMessage, createReceiveLikeNotice, debug, karin as default, divider, downFile, errorToString, exec, existToMkdir, existToMkdirSync, exists, existsSync, ffmpeg, ffplay, ffprobe, fs as file, fileToUrl, fileToUrlHandlerKey, filesByExt, formatTime$1 as formatTime, index$3 as fs, getAllBot, getAllBotID, getAllBotList, getBot, getBotCount, getCommit, getFiles, getHash, getPid, getPkgVersion, getPluginInfo, getPlugins, getRelPath, getRemotePkgVersion, getRender, getRenderCount, getRenderList, getRequestIp, getTime, handler$1 as handler, importModule, initOneBot, input, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, level, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, requireFile, requireFileSync, restart, restartDirect, rmSync, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, start, stream, stringifyError, switchComponent, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, write, writeJson, writeJsonSync, yaml };