@xpadev-net/niconicomments 0.2.67 → 0.2.69

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.
Files changed (3) hide show
  1. package/dist/bundle.d.ts +655 -402
  2. package/dist/bundle.js +310 -153
  3. package/package.json +16 -16
package/dist/bundle.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- // Generated by dts-bundle-generator v9.0.0
1
+ // Generated by dts-bundle-generator v9.2.1
2
2
 
3
3
  /**
4
4
  * Issue reason type.
5
5
  */
6
- export type IssueReason = "any" | "array" | "bigint" | "blob" | "boolean" | "date" | "function" | "instance" | "map" | "number" | "object" | "record" | "set" | "special" | "string" | "symbol" | "tuple" | "undefined" | "unknown" | "type";
6
+ export type IssueReason = "any" | "array" | "bigint" | "blob" | "boolean" | "date" | "intersect" | "function" | "instance" | "map" | "number" | "object" | "record" | "set" | "special" | "string" | "symbol" | "tuple" | "undefined" | "union" | "unknown" | "variant" | "type";
7
7
  /**
8
8
  * Issue origin type.
9
9
  */
@@ -81,6 +81,10 @@ export type Issues = [
81
81
  * Error message type.
82
82
  */
83
83
  export type ErrorMessage = string | (() => string);
84
+ /**
85
+ * Maybe readonly type.
86
+ */
87
+ export type MaybeReadonly<T> = Readonly<T> | T;
84
88
  /**
85
89
  * Resolve type.
86
90
  *
@@ -418,11 +422,11 @@ export type EnumSchemaAsync<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> =
418
422
  /**
419
423
  * Intersect options async type.
420
424
  */
421
- export type IntersectOptionsAsync = [
425
+ export type IntersectOptionsAsync = MaybeReadonly<[
422
426
  BaseSchema | BaseSchemaAsync,
423
427
  BaseSchema | BaseSchemaAsync,
424
428
  ...(BaseSchema[] | BaseSchemaAsync[])
425
- ];
429
+ ]>;
426
430
  /**
427
431
  * Intersect input type.
428
432
  */
@@ -444,11 +448,11 @@ export type IntersectOutput<TIntersectOptions extends IntersectOptions | Interse
444
448
  /**
445
449
  * Intersect options type.
446
450
  */
447
- export type IntersectOptions = [
451
+ export type IntersectOptions = MaybeReadonly<[
448
452
  BaseSchema,
449
453
  BaseSchema,
450
454
  ...BaseSchema[]
451
- ];
455
+ ]>;
452
456
  /**
453
457
  * Intersect schema type.
454
458
  */
@@ -465,6 +469,10 @@ export type IntersectSchema<TOptions extends IntersectOptions, TOutput = Interse
465
469
  * The error message.
466
470
  */
467
471
  message: ErrorMessage;
472
+ /**
473
+ * The validation and transformation pipeline.
474
+ */
475
+ pipe: Pipe<IntersectInput<TOptions>> | undefined;
468
476
  };
469
477
  /**
470
478
  * Literal type.
@@ -525,7 +533,7 @@ export type NeverSchemaAsync = BaseSchemaAsync<never> & {
525
533
  /**
526
534
  * Nullable schema type.
527
535
  */
528
- export type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & {
536
+ export type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & {
529
537
  /**
530
538
  * The schema type.
531
539
  */
@@ -556,6 +564,40 @@ export type NumberSchema<TOutput = number> = BaseSchema<number, TOutput> & {
556
564
  */
557
565
  pipe: Pipe<number> | undefined;
558
566
  };
567
+ /**
568
+ * Optional schema type.
569
+ */
570
+ export type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & {
571
+ /**
572
+ * The schema type.
573
+ */
574
+ type: "optional";
575
+ /**
576
+ * The wrapped schema.
577
+ */
578
+ wrapped: TWrapped;
579
+ /**
580
+ * Returns the default value.
581
+ */
582
+ default: TDefault;
583
+ };
584
+ /**
585
+ * Optional schema async type.
586
+ */
587
+ export type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & {
588
+ /**
589
+ * The schema type.
590
+ */
591
+ type: "optional";
592
+ /**
593
+ * The wrapped schema.
594
+ */
595
+ wrapped: TWrapped;
596
+ /**
597
+ * Returns the default value.
598
+ */
599
+ default: TDefault;
600
+ };
559
601
  /**
560
602
  * Object entries async type.
561
603
  */
@@ -572,35 +614,39 @@ export type ObjectPathItem = {
572
614
  /**
573
615
  * Required object keys type.
574
616
  */
575
- export type RequiredKeys<TObject extends object> = {
576
- [TKey in keyof TObject]: undefined extends TObject[TKey] ? never : TKey;
577
- }[keyof TObject];
617
+ export type RequiredKeys<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends EntriesInput<TEntries> | EntriesOutput<TEntries>> = {
618
+ [TKey in keyof TEntries]: TEntries[TKey] extends OptionalSchema<any, any> | OptionalSchemaAsync<any, any> ? undefined extends TObject[TKey] ? never : TKey : TKey;
619
+ }[keyof TEntries];
578
620
  /**
579
621
  * Optional object keys type.
580
622
  */
581
- export type OptionalKeys<TObject extends object> = {
582
- [TKey in keyof TObject]: undefined extends TObject[TKey] ? TKey : never;
583
- }[keyof TObject];
623
+ export type OptionalKeys<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends EntriesInput<TEntries> | EntriesOutput<TEntries>> = {
624
+ [TKey in keyof TEntries]: TEntries[TKey] extends OptionalSchema<any, any> | OptionalSchemaAsync<any, any> ? undefined extends TObject[TKey] ? TKey : never : never;
625
+ }[keyof TEntries];
626
+ /**
627
+ * Entries input inference type.
628
+ */
629
+ export type EntriesInput<TEntries extends ObjectEntries | ObjectEntriesAsync> = {
630
+ [TKey in keyof TEntries]: Input<TEntries[TKey]>;
631
+ };
632
+ /**
633
+ * Entries output inference type.
634
+ */
635
+ export type EntriesOutput<TEntries extends ObjectEntries | ObjectEntriesAsync> = {
636
+ [TKey in keyof TEntries]: Output<TEntries[TKey]>;
637
+ };
584
638
  /**
585
639
  * Object with question marks type.
586
640
  */
587
- export type WithQuestionMarks<TObject extends object> = Pick<TObject, RequiredKeys<TObject>> & Partial<Pick<TObject, OptionalKeys<TObject>>>;
641
+ export type WithQuestionMarks<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends EntriesInput<TEntries> | EntriesOutput<TEntries>> = Pick<TObject, RequiredKeys<TEntries, TObject>> & Partial<Pick<TObject, OptionalKeys<TEntries, TObject>>>;
588
642
  /**
589
643
  * Object input inference type.
590
644
  */
591
- export type ObjectInput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<{
592
- [TKey in keyof TEntries]: Input<TEntries[TKey]>;
593
- }>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<{
594
- [TKey in keyof TEntries]: Input<TEntries[TKey]>;
595
- }>> & Record<string, Input<TRest>> : never;
645
+ export type ObjectInput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesInput<TEntries>>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesInput<TEntries>>> & Record<string, Input<TRest>> : never;
596
646
  /**
597
647
  * Object output inference type.
598
648
  */
599
- export type ObjectOutput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<{
600
- [TKey in keyof TEntries]: Output<TEntries[TKey]>;
601
- }>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<{
602
- [TKey in keyof TEntries]: Output<TEntries[TKey]>;
603
- }>> & Record<string, Output<TRest>> : never;
649
+ export type ObjectOutput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesOutput<TEntries>>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesOutput<TEntries>>> & Record<string, Output<TRest>> : never;
604
650
  /**
605
651
  * Object entries type.
606
652
  */
@@ -630,33 +676,10 @@ export type ObjectSchema<TEntries extends ObjectEntries, TRest extends BaseSchem
630
676
  */
631
677
  pipe: Pipe<ObjectOutput<TEntries, TRest>> | undefined;
632
678
  };
633
- /**
634
- * Optional schema type.
635
- */
636
- export type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & {
637
- /**
638
- * The schema type.
639
- */
640
- type: "optional";
641
- /**
642
- * The wrapped schema.
643
- */
644
- wrapped: TWrapped;
645
- /**
646
- * Returns the default value.
647
- */
648
- default: TDefault;
649
- };
650
679
  /**
651
680
  * Picklist options type.
652
681
  */
653
- export type PicklistOptions<TOption extends string = string> = Readonly<[
654
- TOption,
655
- ...TOption[]
656
- ]> | [
657
- TOption,
658
- ...TOption[]
659
- ];
682
+ export type PicklistOptions = MaybeReadonly<string[]>;
660
683
  /**
661
684
  * Picklist schema type.
662
685
  */
@@ -691,6 +714,48 @@ export type PicklistSchemaAsync<TOptions extends PicklistOptions, TOutput = TOpt
691
714
  */
692
715
  message: ErrorMessage;
693
716
  };
717
+ /**
718
+ * Special schema type.
719
+ */
720
+ export type SpecialSchema<TInput, TOutput = TInput> = BaseSchema<TInput, TOutput> & {
721
+ /**
722
+ * The schema type.
723
+ */
724
+ type: "special";
725
+ /**
726
+ * The type check function.
727
+ */
728
+ check: (input: unknown) => boolean;
729
+ /**
730
+ * The error message.
731
+ */
732
+ message: ErrorMessage;
733
+ /**
734
+ * The validation and transformation pipeline.
735
+ */
736
+ pipe: Pipe<TInput> | undefined;
737
+ };
738
+ /**
739
+ * Special schema async type.
740
+ */
741
+ export type SpecialSchemaAsync<TInput, TOutput = TInput> = BaseSchemaAsync<TInput, TOutput> & {
742
+ /**
743
+ * The schema type.
744
+ */
745
+ type: "special";
746
+ /**
747
+ * The type check function.
748
+ */
749
+ check: (input: unknown) => boolean | Promise<boolean>;
750
+ /**
751
+ * The error message.
752
+ */
753
+ message: ErrorMessage;
754
+ /**
755
+ * The validation and transformation pipeline.
756
+ */
757
+ pipe: PipeAsync<TInput> | undefined;
758
+ };
694
759
  /**
695
760
  * String schema type.
696
761
  */
@@ -728,11 +793,7 @@ export type StringSchemaAsync<TOutput = string> = BaseSchemaAsync<string, TOutpu
728
793
  /**
729
794
  * Union options type.
730
795
  */
731
- export type UnionOptions = [
732
- BaseSchema,
733
- BaseSchema,
734
- ...BaseSchema[]
735
- ];
796
+ export type UnionOptions = MaybeReadonly<BaseSchema[]>;
736
797
  /**
737
798
  * Union schema type.
738
799
  */
@@ -749,15 +810,15 @@ export type UnionSchema<TOptions extends UnionOptions, TOutput = Output<TOptions
749
810
  * The error message.
750
811
  */
751
812
  message: ErrorMessage;
813
+ /**
814
+ * The validation and transformation pipeline.
815
+ */
816
+ pipe: Pipe<Input<TOptions[number]>> | undefined;
752
817
  };
753
818
  /**
754
819
  * Union options async type.
755
820
  */
756
- export type UnionOptionsAsync = [
757
- BaseSchema | BaseSchemaAsync,
758
- BaseSchema | BaseSchemaAsync,
759
- ...(BaseSchema[] | BaseSchemaAsync[])
760
- ];
821
+ export type UnionOptionsAsync = MaybeReadonly<(BaseSchema | BaseSchemaAsync)[]>;
761
822
  /**
762
823
  * Union schema async type.
763
824
  */
@@ -774,11 +835,15 @@ export type UnionSchemaAsync<TOptions extends UnionOptionsAsync, TOutput = Outpu
774
835
  * The error message.
775
836
  */
776
837
  message: ErrorMessage;
838
+ /**
839
+ * The validation and transformation pipeline.
840
+ */
841
+ pipe: PipeAsync<Input<TOptions[number]>> | undefined;
777
842
  };
778
843
  /**
779
844
  * Record key type.
780
845
  */
781
- export type RecordKeyAsync = EnumSchema<any, string | number | symbol> | EnumSchemaAsync<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | PicklistSchemaAsync<any, string | number | symbol> | StringSchema<string | number | symbol> | StringSchemaAsync<string | number | symbol> | UnionSchema<any, string | number | symbol> | UnionSchemaAsync<any, string | number | symbol>;
846
+ export type RecordKeyAsync = EnumSchema<any, string | number | symbol> | EnumSchemaAsync<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | PicklistSchemaAsync<any, string | number | symbol> | SpecialSchema<any, string | number | symbol> | SpecialSchemaAsync<any, string | number | symbol> | StringSchema<string | number | symbol> | StringSchemaAsync<string | number | symbol> | UnionSchema<any, string | number | symbol> | UnionSchemaAsync<any, string | number | symbol>;
782
847
  /**
783
848
  * Record path item type.
784
849
  */
@@ -803,7 +868,7 @@ export type RecordOutput<TKey extends RecordKey | RecordKeyAsync, TValue extends
803
868
  /**
804
869
  * Record key type.
805
870
  */
806
- export type RecordKey = EnumSchema<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | StringSchema<string | number | symbol> | UnionSchema<any, string | number | symbol>;
871
+ export type RecordKey = EnumSchema<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | SpecialSchema<any, string | number | symbol> | StringSchema<string | number | symbol> | UnionSchema<any, string | number | symbol>;
807
872
  /**
808
873
  * Record schema type.
809
874
  */
@@ -896,41 +961,6 @@ export type DefaultCommand = {
896
961
  font?: CommentFont;
897
962
  loc?: CommentLoc;
898
963
  };
899
- export interface IRenderer {
900
- readonly canvas: HTMLCanvasElement;
901
- readonly video?: HTMLVideoElement;
902
- destroy(): void;
903
- drawVideo(enableLegacyPip: boolean): void;
904
- getFont(): string;
905
- getFillStyle(): string | CanvasGradient | CanvasPattern;
906
- setScale(scale: number, arg1?: number): void;
907
- fillRect(x: number, y: number, width: number, height: number): void;
908
- strokeRect(x: number, y: number, width: number, height: number): void;
909
- fillText(text: string, x: number, y: number): void;
910
- strokeText(text: string, x: number, y: number): void;
911
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
912
- clearRect(x: number, y: number, width: number, height: number): void;
913
- setFont(font: string): void;
914
- setFillStyle(color: string): void;
915
- setStrokeStyle(color: string): void;
916
- setLineWidth(width: number): void;
917
- setGlobalAlpha(alpha: number): void;
918
- setSize(width: number, height: number): void;
919
- getSize(): {
920
- width: number;
921
- height: number;
922
- };
923
- measureText(text: string): TextMetrics;
924
- beginPath(): void;
925
- closePath(): void;
926
- moveTo(x: number, y: number): void;
927
- lineTo(x: number, y: number): void;
928
- stroke(): void;
929
- save(): void;
930
- restore(): void;
931
- getCanvas(): IRenderer;
932
- drawImage(image: IRenderer, x: number, y: number, width?: number, height?: number): void;
933
- }
934
964
  declare class BaseComment implements IComment {
935
965
  protected readonly renderer: IRenderer;
936
966
  protected cacheKey: string;
@@ -1210,11 +1240,7 @@ export interface CommentEventMap {
1210
1240
  jump: JumpEvent;
1211
1241
  }
1212
1242
  export type Platform = "win7" | "win8_1" | "win" | "mac10_9" | "mac10_11" | "mac" | "other";
1213
- export declare const ZHTML5Fonts: UnionSchema<[
1214
- LiteralSchema<"gothic", "gothic">,
1215
- LiteralSchema<"mincho", "mincho">,
1216
- LiteralSchema<"defont", "defont">
1217
- ], "defont" | "mincho" | "gothic">;
1243
+ export declare const ZHTML5Fonts: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic">)[], "defont" | "mincho" | "gothic">;
1218
1244
  export type HTML5Fonts = Output<typeof ZHTML5Fonts>;
1219
1245
  export type FontItem = {
1220
1246
  font: string;
@@ -1303,55 +1329,52 @@ export declare const ZApiChat: ObjectSchema<{
1303
1329
  deleted: number;
1304
1330
  }>;
1305
1331
  export type ApiChat = Output<typeof ZApiChat>;
1306
- export declare const ZRawApiResponse: UnionSchema<[
1307
- ObjectSchema<{
1308
- chat: ObjectSchema<{
1309
- thread: OptionalSchema<StringSchema<string>, "", string>;
1310
- no: OptionalSchema<NumberSchema<number>, 0, number>;
1311
- vpos: NumberSchema<number>;
1312
- date: OptionalSchema<NumberSchema<number>, 0, number>;
1313
- date_usec: OptionalSchema<NumberSchema<number>, 0, number>;
1314
- nicoru: OptionalSchema<NumberSchema<number>, 0, number>;
1315
- premium: OptionalSchema<NumberSchema<number>, 0, number>;
1316
- anonymity: OptionalSchema<NumberSchema<number>, 0, number>;
1317
- user_id: OptionalSchema<StringSchema<string>, "", string>;
1318
- mail: OptionalSchema<StringSchema<string>, "", string>;
1319
- content: StringSchema<string>;
1320
- deleted: OptionalSchema<NumberSchema<number>, 0, number>;
1321
- }, undefined, {
1322
- content: string;
1323
- vpos: number;
1324
- date: number;
1325
- date_usec: number;
1326
- premium: number;
1327
- mail: string;
1328
- user_id: string;
1329
- thread: string;
1330
- no: number;
1331
- nicoru: number;
1332
- anonymity: number;
1333
- deleted: number;
1334
- }>;
1332
+ export declare const ZRawApiResponse: UnionSchema<(ObjectSchema<{
1333
+ chat: ObjectSchema<{
1334
+ thread: OptionalSchema<StringSchema<string>, "", string>;
1335
+ no: OptionalSchema<NumberSchema<number>, 0, number>;
1336
+ vpos: NumberSchema<number>;
1337
+ date: OptionalSchema<NumberSchema<number>, 0, number>;
1338
+ date_usec: OptionalSchema<NumberSchema<number>, 0, number>;
1339
+ nicoru: OptionalSchema<NumberSchema<number>, 0, number>;
1340
+ premium: OptionalSchema<NumberSchema<number>, 0, number>;
1341
+ anonymity: OptionalSchema<NumberSchema<number>, 0, number>;
1342
+ user_id: OptionalSchema<StringSchema<string>, "", string>;
1343
+ mail: OptionalSchema<StringSchema<string>, "", string>;
1344
+ content: StringSchema<string>;
1345
+ deleted: OptionalSchema<NumberSchema<number>, 0, number>;
1335
1346
  }, undefined, {
1336
- chat: {
1337
- content: string;
1338
- vpos: number;
1339
- date: number;
1340
- date_usec: number;
1341
- premium: number;
1342
- mail: string;
1343
- user_id: string;
1344
- thread: string;
1345
- no: number;
1346
- nicoru: number;
1347
- anonymity: number;
1348
- deleted: number;
1349
- };
1350
- }>,
1351
- RecordSchema<StringSchema<string>, UnknownSchema<unknown>, {
1352
- [x: string]: unknown;
1353
- }>
1354
- ], {
1347
+ content: string;
1348
+ vpos: number;
1349
+ date: number;
1350
+ date_usec: number;
1351
+ premium: number;
1352
+ mail: string;
1353
+ user_id: string;
1354
+ thread: string;
1355
+ no: number;
1356
+ nicoru: number;
1357
+ anonymity: number;
1358
+ deleted: number;
1359
+ }>;
1360
+ }, undefined, {
1361
+ chat: {
1362
+ content: string;
1363
+ vpos: number;
1364
+ date: number;
1365
+ date_usec: number;
1366
+ premium: number;
1367
+ mail: string;
1368
+ user_id: string;
1369
+ thread: string;
1370
+ no: number;
1371
+ nicoru: number;
1372
+ anonymity: number;
1373
+ deleted: number;
1374
+ };
1375
+ }> | RecordSchema<StringSchema<string>, UnknownSchema<unknown>, {
1376
+ [x: string]: unknown;
1377
+ }>)[], {
1355
1378
  chat: {
1356
1379
  content: string;
1357
1380
  vpos: number;
@@ -1496,6 +1519,7 @@ export declare const ZV1Thread: ObjectSchema<{
1496
1519
  isMyPost: boolean;
1497
1520
  }[]>;
1498
1521
  }, undefined, {
1522
+ id: unknown;
1499
1523
  fork: string;
1500
1524
  commentCount: number;
1501
1525
  comments: {
@@ -1513,10 +1537,188 @@ export declare const ZV1Thread: ObjectSchema<{
1513
1537
  source: string;
1514
1538
  isMyPost: boolean;
1515
1539
  }[];
1516
- id?: unknown;
1517
1540
  }>;
1518
1541
  export type V1Thread = Output<typeof ZV1Thread>;
1519
1542
  export type v1Thread = V1Thread;
1543
+ export declare const ZXml2jsChatItem: ObjectSchema<{
1544
+ _: StringSchema<string>;
1545
+ $: ObjectSchema<{
1546
+ no: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
1547
+ vpos: StringSchema<string>;
1548
+ date: OptionalSchema<StringSchema<string>, "0", string>;
1549
+ date_usec: OptionalSchema<StringSchema<string>, "0", string>;
1550
+ user_id: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
1551
+ owner: OptionalSchema<StringSchema<string>, "", string>;
1552
+ premium: OptionalSchema<StringSchema<string>, "", string>;
1553
+ mail: OptionalSchema<StringSchema<string>, "", string>;
1554
+ }, undefined, {
1555
+ owner: string;
1556
+ vpos: string;
1557
+ date: string;
1558
+ date_usec: string;
1559
+ premium: string;
1560
+ mail: string;
1561
+ user_id?: string | undefined;
1562
+ no?: string | undefined;
1563
+ }>;
1564
+ }, undefined, {
1565
+ _: string;
1566
+ $: {
1567
+ owner: string;
1568
+ vpos: string;
1569
+ date: string;
1570
+ date_usec: string;
1571
+ premium: string;
1572
+ mail: string;
1573
+ user_id?: string | undefined;
1574
+ no?: string | undefined;
1575
+ };
1576
+ }>;
1577
+ export type Xml2jsChatItem = Output<typeof ZXml2jsChatItem>;
1578
+ export declare const ZXml2jsChat: ObjectSchema<{
1579
+ chat: ArraySchema<ObjectSchema<{
1580
+ _: StringSchema<string>;
1581
+ $: ObjectSchema<{
1582
+ no: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
1583
+ vpos: StringSchema<string>;
1584
+ date: OptionalSchema<StringSchema<string>, "0", string>;
1585
+ date_usec: OptionalSchema<StringSchema<string>, "0", string>;
1586
+ user_id: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
1587
+ owner: OptionalSchema<StringSchema<string>, "", string>;
1588
+ premium: OptionalSchema<StringSchema<string>, "", string>;
1589
+ mail: OptionalSchema<StringSchema<string>, "", string>;
1590
+ }, undefined, {
1591
+ owner: string;
1592
+ vpos: string;
1593
+ date: string;
1594
+ date_usec: string;
1595
+ premium: string;
1596
+ mail: string;
1597
+ user_id?: string | undefined;
1598
+ no?: string | undefined;
1599
+ }>;
1600
+ }, undefined, {
1601
+ _: string;
1602
+ $: {
1603
+ owner: string;
1604
+ vpos: string;
1605
+ date: string;
1606
+ date_usec: string;
1607
+ premium: string;
1608
+ mail: string;
1609
+ user_id?: string | undefined;
1610
+ no?: string | undefined;
1611
+ };
1612
+ }>, {
1613
+ _: string;
1614
+ $: {
1615
+ owner: string;
1616
+ vpos: string;
1617
+ date: string;
1618
+ date_usec: string;
1619
+ premium: string;
1620
+ mail: string;
1621
+ user_id?: string | undefined;
1622
+ no?: string | undefined;
1623
+ };
1624
+ }[]>;
1625
+ }, undefined, {
1626
+ chat: {
1627
+ _: string;
1628
+ $: {
1629
+ owner: string;
1630
+ vpos: string;
1631
+ date: string;
1632
+ date_usec: string;
1633
+ premium: string;
1634
+ mail: string;
1635
+ user_id?: string | undefined;
1636
+ no?: string | undefined;
1637
+ };
1638
+ }[];
1639
+ }>;
1640
+ export type Xml2jsChat = Output<typeof ZXml2jsChat>;
1641
+ export declare const ZXml2jsPacket: ObjectSchema<{
1642
+ packet: ObjectSchema<{
1643
+ chat: ArraySchema<ObjectSchema<{
1644
+ _: StringSchema<string>;
1645
+ $: ObjectSchema<{
1646
+ no: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
1647
+ vpos: StringSchema<string>;
1648
+ date: OptionalSchema<StringSchema<string>, "0", string>;
1649
+ date_usec: OptionalSchema<StringSchema<string>, "0", string>;
1650
+ user_id: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
1651
+ owner: OptionalSchema<StringSchema<string>, "", string>;
1652
+ premium: OptionalSchema<StringSchema<string>, "", string>;
1653
+ mail: OptionalSchema<StringSchema<string>, "", string>;
1654
+ }, undefined, {
1655
+ owner: string;
1656
+ vpos: string;
1657
+ date: string;
1658
+ date_usec: string;
1659
+ premium: string;
1660
+ mail: string;
1661
+ user_id?: string | undefined;
1662
+ no?: string | undefined;
1663
+ }>;
1664
+ }, undefined, {
1665
+ _: string;
1666
+ $: {
1667
+ owner: string;
1668
+ vpos: string;
1669
+ date: string;
1670
+ date_usec: string;
1671
+ premium: string;
1672
+ mail: string;
1673
+ user_id?: string | undefined;
1674
+ no?: string | undefined;
1675
+ };
1676
+ }>, {
1677
+ _: string;
1678
+ $: {
1679
+ owner: string;
1680
+ vpos: string;
1681
+ date: string;
1682
+ date_usec: string;
1683
+ premium: string;
1684
+ mail: string;
1685
+ user_id?: string | undefined;
1686
+ no?: string | undefined;
1687
+ };
1688
+ }[]>;
1689
+ }, undefined, {
1690
+ chat: {
1691
+ _: string;
1692
+ $: {
1693
+ owner: string;
1694
+ vpos: string;
1695
+ date: string;
1696
+ date_usec: string;
1697
+ premium: string;
1698
+ mail: string;
1699
+ user_id?: string | undefined;
1700
+ no?: string | undefined;
1701
+ };
1702
+ }[];
1703
+ }>;
1704
+ }, undefined, {
1705
+ packet: {
1706
+ chat: {
1707
+ _: string;
1708
+ $: {
1709
+ owner: string;
1710
+ vpos: string;
1711
+ date: string;
1712
+ date_usec: string;
1713
+ premium: string;
1714
+ mail: string;
1715
+ user_id?: string | undefined;
1716
+ no?: string | undefined;
1717
+ };
1718
+ }[];
1719
+ };
1720
+ }>;
1721
+ export type Xml2jsPacket = Output<typeof ZXml2jsPacket>;
1520
1722
  export interface IComment {
1521
1723
  comment: FormattedCommentWithSize;
1522
1724
  invisible: boolean;
@@ -1535,6 +1737,10 @@ export interface IComment {
1535
1737
  draw: (vpos: number, showCollision: boolean, cursor?: Position) => void;
1536
1738
  isHovered: (cursor?: Position, posX?: number, posY?: number) => boolean;
1537
1739
  }
1740
+ export interface InputParser {
1741
+ key: string[];
1742
+ parse: (input: unknown) => FormattedComment[];
1743
+ }
1538
1744
  export interface IPluginConstructor {
1539
1745
  id: string;
1540
1746
  new (Canvas: IRenderer, comments: IComment[]): IPlugin;
@@ -1548,8 +1754,9 @@ export type IPluginList = {
1548
1754
  instance: IPlugin;
1549
1755
  canvas: IRenderer;
1550
1756
  }[];
1551
- export type InputFormatType = "XMLDocument" | "niconicome" | "formatted" | "legacy" | "legacyOwner" | "owner" | "v1" | "empty" | "default";
1552
- export type InputFormat = XMLDocument | FormattedComment[] | FormattedLegacyComment[] | RawApiResponse[] | OwnerComment[] | V1Thread[] | string | undefined;
1757
+ export declare const ZInputFormatType: UnionSchema<(LiteralSchema<"XMLDocument", "XMLDocument"> | LiteralSchema<"niconicome", "niconicome"> | LiteralSchema<"xml2js", "xml2js"> | LiteralSchema<"formatted", "formatted"> | LiteralSchema<"legacy", "legacy"> | LiteralSchema<"legacyOwner", "legacyOwner"> | LiteralSchema<"owner", "owner"> | LiteralSchema<"v1", "v1"> | LiteralSchema<"empty", "empty"> | LiteralSchema<"default", "default">)[], "default" | "XMLDocument" | "niconicome" | "xml2js" | "formatted" | "legacy" | "legacyOwner" | "owner" | "v1" | "empty">;
1758
+ export type InputFormatType = Output<typeof ZInputFormatType>;
1759
+ export type InputFormat = XMLDocument | Xml2jsPacket | FormattedComment[] | FormattedLegacyComment[] | RawApiResponse[] | OwnerComment[] | V1Thread[] | string | undefined;
1553
1760
  export type ModeType = "default" | "html5" | "flash";
1554
1761
  export type BaseOptions = {
1555
1762
  config: Config;
@@ -1569,6 +1776,41 @@ export type BaseOptions = {
1569
1776
  export type Options = Partial<BaseOptions>;
1570
1777
  export type inputFormatType = InputFormatType;
1571
1778
  export type inputFormat = InputFormat;
1779
+ export interface IRenderer {
1780
+ readonly canvas: HTMLCanvasElement;
1781
+ readonly video?: HTMLVideoElement;
1782
+ destroy(): void;
1783
+ drawVideo(enableLegacyPip: boolean): void;
1784
+ getFont(): string;
1785
+ getFillStyle(): string | CanvasGradient | CanvasPattern;
1786
+ setScale(scale: number, arg1?: number): void;
1787
+ fillRect(x: number, y: number, width: number, height: number): void;
1788
+ strokeRect(x: number, y: number, width: number, height: number): void;
1789
+ fillText(text: string, x: number, y: number): void;
1790
+ strokeText(text: string, x: number, y: number): void;
1791
+ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
1792
+ clearRect(x: number, y: number, width: number, height: number): void;
1793
+ setFont(font: string): void;
1794
+ setFillStyle(color: string): void;
1795
+ setStrokeStyle(color: string): void;
1796
+ setLineWidth(width: number): void;
1797
+ setGlobalAlpha(alpha: number): void;
1798
+ setSize(width: number, height: number): void;
1799
+ getSize(): {
1800
+ width: number;
1801
+ height: number;
1802
+ };
1803
+ measureText(text: string): TextMetrics;
1804
+ beginPath(): void;
1805
+ closePath(): void;
1806
+ moveTo(x: number, y: number): void;
1807
+ lineTo(x: number, y: number): void;
1808
+ stroke(): void;
1809
+ save(): void;
1810
+ restore(): void;
1811
+ getCanvas(): IRenderer;
1812
+ drawImage(image: IRenderer, x: number, y: number, width?: number, height?: number): void;
1813
+ }
1572
1814
  export type FormattedCommentWithFont = {
1573
1815
  id: number;
1574
1816
  vpos: number;
@@ -1635,36 +1877,18 @@ export type ParseCommandAndNicoScriptResult = {
1635
1877
  long: number;
1636
1878
  button?: ButtonParams;
1637
1879
  };
1638
- export declare const ZCommentFont: UnionSchema<[
1639
- LiteralSchema<"defont", "defont">,
1640
- LiteralSchema<"mincho", "mincho">,
1641
- LiteralSchema<"gothic", "gothic">,
1642
- LiteralSchema<"gulim", "gulim">,
1643
- LiteralSchema<"simsun", "simsun">
1644
- ], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
1880
+ export declare const ZCommentFont: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
1645
1881
  export type CommentFont = Output<typeof ZCommentFont>;
1646
- export declare const ZCommentHTML5Font: UnionSchema<[
1647
- LiteralSchema<"defont", "defont">,
1648
- LiteralSchema<"mincho", "mincho">,
1649
- LiteralSchema<"gothic", "gothic">
1650
- ], "defont" | "mincho" | "gothic">;
1882
+ export declare const ZCommentHTML5Font: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic">)[], "defont" | "mincho" | "gothic">;
1651
1883
  export type CommentHTML5Font = Output<typeof ZCommentHTML5Font>;
1652
- export declare const ZCommentFlashFont: UnionSchema<[
1653
- LiteralSchema<"defont", "defont">,
1654
- LiteralSchema<"gulim", "gulim">,
1655
- LiteralSchema<"simsun", "simsun">
1656
- ], "defont" | "gulim" | "simsun">;
1884
+ export declare const ZCommentFlashFont: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">;
1657
1885
  export type CommentFlashFont = Output<typeof ZCommentFlashFont>;
1658
1886
  export declare const ZCommentContentItemSpacer: ObjectSchema<{
1659
1887
  type: LiteralSchema<"spacer", "spacer">;
1660
1888
  char: StringSchema<string>;
1661
1889
  charWidth: NumberSchema<number>;
1662
1890
  isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1663
- font: OptionalSchema<UnionSchema<[
1664
- LiteralSchema<"defont", "defont">,
1665
- LiteralSchema<"gulim", "gulim">,
1666
- LiteralSchema<"simsun", "simsun">
1667
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1891
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1668
1892
  count: NumberSchema<number>;
1669
1893
  }, undefined, {
1670
1894
  type: "spacer";
@@ -1679,11 +1903,7 @@ export declare const ZCommentContentItemText: ObjectSchema<{
1679
1903
  content: StringSchema<string>;
1680
1904
  slicedContent: ArraySchema<StringSchema<string>, string[]>;
1681
1905
  isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1682
- font: OptionalSchema<UnionSchema<[
1683
- LiteralSchema<"defont", "defont">,
1684
- LiteralSchema<"gulim", "gulim">,
1685
- LiteralSchema<"simsun", "simsun">
1686
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1906
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1687
1907
  width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
1688
1908
  }, undefined, {
1689
1909
  type: "text";
@@ -1694,17 +1914,57 @@ export declare const ZCommentContentItemText: ObjectSchema<{
1694
1914
  width?: number[] | undefined;
1695
1915
  }>;
1696
1916
  export type CommentContentItemText = Output<typeof ZCommentContentItemText>;
1697
- export declare const ZCommentContentItem: UnionSchema<[
1698
- ObjectSchema<{
1917
+ export declare const ZCommentContentItem: UnionSchema<(ObjectSchema<{
1918
+ type: LiteralSchema<"spacer", "spacer">;
1919
+ char: StringSchema<string>;
1920
+ charWidth: NumberSchema<number>;
1921
+ isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1922
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1923
+ count: NumberSchema<number>;
1924
+ }, undefined, {
1925
+ type: "spacer";
1926
+ char: string;
1927
+ charWidth: number;
1928
+ count: number;
1929
+ isButton?: boolean | undefined;
1930
+ font?: "defont" | "gulim" | "simsun" | undefined;
1931
+ }> | ObjectSchema<{
1932
+ type: LiteralSchema<"text", "text">;
1933
+ content: StringSchema<string>;
1934
+ slicedContent: ArraySchema<StringSchema<string>, string[]>;
1935
+ isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1936
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1937
+ width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
1938
+ }, undefined, {
1939
+ type: "text";
1940
+ content: string;
1941
+ slicedContent: string[];
1942
+ isButton?: boolean | undefined;
1943
+ font?: "defont" | "gulim" | "simsun" | undefined;
1944
+ width?: number[] | undefined;
1945
+ }>)[], {
1946
+ type: "spacer";
1947
+ char: string;
1948
+ charWidth: number;
1949
+ count: number;
1950
+ isButton?: boolean | undefined;
1951
+ font?: "defont" | "gulim" | "simsun" | undefined;
1952
+ } | {
1953
+ type: "text";
1954
+ content: string;
1955
+ slicedContent: string[];
1956
+ isButton?: boolean | undefined;
1957
+ font?: "defont" | "gulim" | "simsun" | undefined;
1958
+ width?: number[] | undefined;
1959
+ }>;
1960
+ export type CommentContentItem = Output<typeof ZCommentContentItem>;
1961
+ export declare const ZCommentMeasuredContentItemText: IntersectSchema<[
1962
+ UnionSchema<(ObjectSchema<{
1699
1963
  type: LiteralSchema<"spacer", "spacer">;
1700
1964
  char: StringSchema<string>;
1701
1965
  charWidth: NumberSchema<number>;
1702
1966
  isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1703
- font: OptionalSchema<UnionSchema<[
1704
- LiteralSchema<"defont", "defont">,
1705
- LiteralSchema<"gulim", "gulim">,
1706
- LiteralSchema<"simsun", "simsun">
1707
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1967
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1708
1968
  count: NumberSchema<number>;
1709
1969
  }, undefined, {
1710
1970
  type: "spacer";
@@ -1713,17 +1973,12 @@ export declare const ZCommentContentItem: UnionSchema<[
1713
1973
  count: number;
1714
1974
  isButton?: boolean | undefined;
1715
1975
  font?: "defont" | "gulim" | "simsun" | undefined;
1716
- }>,
1717
- ObjectSchema<{
1976
+ }> | ObjectSchema<{
1718
1977
  type: LiteralSchema<"text", "text">;
1719
1978
  content: StringSchema<string>;
1720
1979
  slicedContent: ArraySchema<StringSchema<string>, string[]>;
1721
1980
  isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1722
- font: OptionalSchema<UnionSchema<[
1723
- LiteralSchema<"defont", "defont">,
1724
- LiteralSchema<"gulim", "gulim">,
1725
- LiteralSchema<"simsun", "simsun">
1726
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1981
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1727
1982
  width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
1728
1983
  }, undefined, {
1729
1984
  type: "text";
@@ -1732,64 +1987,7 @@ export declare const ZCommentContentItem: UnionSchema<[
1732
1987
  isButton?: boolean | undefined;
1733
1988
  font?: "defont" | "gulim" | "simsun" | undefined;
1734
1989
  width?: number[] | undefined;
1735
- }>
1736
- ], {
1737
- type: "spacer";
1738
- char: string;
1739
- charWidth: number;
1740
- count: number;
1741
- isButton?: boolean | undefined;
1742
- font?: "defont" | "gulim" | "simsun" | undefined;
1743
- } | {
1744
- type: "text";
1745
- content: string;
1746
- slicedContent: string[];
1747
- isButton?: boolean | undefined;
1748
- font?: "defont" | "gulim" | "simsun" | undefined;
1749
- width?: number[] | undefined;
1750
- }>;
1751
- export type CommentContentItem = Output<typeof ZCommentContentItem>;
1752
- export declare const ZCommentMeasuredContentItemText: IntersectSchema<[
1753
- UnionSchema<[
1754
- ObjectSchema<{
1755
- type: LiteralSchema<"spacer", "spacer">;
1756
- char: StringSchema<string>;
1757
- charWidth: NumberSchema<number>;
1758
- isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1759
- font: OptionalSchema<UnionSchema<[
1760
- LiteralSchema<"defont", "defont">,
1761
- LiteralSchema<"gulim", "gulim">,
1762
- LiteralSchema<"simsun", "simsun">
1763
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1764
- count: NumberSchema<number>;
1765
- }, undefined, {
1766
- type: "spacer";
1767
- char: string;
1768
- charWidth: number;
1769
- count: number;
1770
- isButton?: boolean | undefined;
1771
- font?: "defont" | "gulim" | "simsun" | undefined;
1772
- }>,
1773
- ObjectSchema<{
1774
- type: LiteralSchema<"text", "text">;
1775
- content: StringSchema<string>;
1776
- slicedContent: ArraySchema<StringSchema<string>, string[]>;
1777
- isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1778
- font: OptionalSchema<UnionSchema<[
1779
- LiteralSchema<"defont", "defont">,
1780
- LiteralSchema<"gulim", "gulim">,
1781
- LiteralSchema<"simsun", "simsun">
1782
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1783
- width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
1784
- }, undefined, {
1785
- type: "text";
1786
- content: string;
1787
- slicedContent: string[];
1788
- isButton?: boolean | undefined;
1789
- font?: "defont" | "gulim" | "simsun" | undefined;
1790
- width?: number[] | undefined;
1791
- }>
1792
- ], {
1990
+ }>)[], {
1793
1991
  type: "spacer";
1794
1992
  char: string;
1795
1993
  charWidth: number;
@@ -1826,104 +2024,86 @@ export declare const ZCommentMeasuredContentItemText: IntersectSchema<[
1826
2024
  }) & {
1827
2025
  width: number[];
1828
2026
  }>;
1829
- export declare const ZCommentMeasuredContentItem: UnionSchema<[
1830
- IntersectSchema<[
1831
- UnionSchema<[
1832
- ObjectSchema<{
1833
- type: LiteralSchema<"spacer", "spacer">;
1834
- char: StringSchema<string>;
1835
- charWidth: NumberSchema<number>;
1836
- isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1837
- font: OptionalSchema<UnionSchema<[
1838
- LiteralSchema<"defont", "defont">,
1839
- LiteralSchema<"gulim", "gulim">,
1840
- LiteralSchema<"simsun", "simsun">
1841
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1842
- count: NumberSchema<number>;
1843
- }, undefined, {
1844
- type: "spacer";
1845
- char: string;
1846
- charWidth: number;
1847
- count: number;
1848
- isButton?: boolean | undefined;
1849
- font?: "defont" | "gulim" | "simsun" | undefined;
1850
- }>,
1851
- ObjectSchema<{
1852
- type: LiteralSchema<"text", "text">;
1853
- content: StringSchema<string>;
1854
- slicedContent: ArraySchema<StringSchema<string>, string[]>;
1855
- isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1856
- font: OptionalSchema<UnionSchema<[
1857
- LiteralSchema<"defont", "defont">,
1858
- LiteralSchema<"gulim", "gulim">,
1859
- LiteralSchema<"simsun", "simsun">
1860
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1861
- width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
1862
- }, undefined, {
1863
- type: "text";
1864
- content: string;
1865
- slicedContent: string[];
1866
- isButton?: boolean | undefined;
1867
- font?: "defont" | "gulim" | "simsun" | undefined;
1868
- width?: number[] | undefined;
1869
- }>
1870
- ], {
1871
- type: "spacer";
1872
- char: string;
1873
- charWidth: number;
1874
- count: number;
1875
- isButton?: boolean | undefined;
1876
- font?: "defont" | "gulim" | "simsun" | undefined;
1877
- } | {
1878
- type: "text";
1879
- content: string;
1880
- slicedContent: string[];
1881
- isButton?: boolean | undefined;
1882
- font?: "defont" | "gulim" | "simsun" | undefined;
1883
- width?: number[] | undefined;
1884
- }>,
1885
- ObjectSchema<{
1886
- width: ArraySchema<NumberSchema<number>, number[]>;
1887
- }, undefined, {
1888
- width: number[];
1889
- }>
1890
- ], ({
2027
+ export declare const ZCommentMeasuredContentItem: UnionSchema<(ObjectSchema<{
2028
+ type: LiteralSchema<"spacer", "spacer">;
2029
+ char: StringSchema<string>;
2030
+ charWidth: NumberSchema<number>;
2031
+ isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
2032
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
2033
+ count: NumberSchema<number>;
2034
+ }, undefined, {
2035
+ type: "spacer";
2036
+ char: string;
2037
+ charWidth: number;
2038
+ count: number;
2039
+ isButton?: boolean | undefined;
2040
+ font?: "defont" | "gulim" | "simsun" | undefined;
2041
+ }> | IntersectSchema<[
2042
+ UnionSchema<(ObjectSchema<{
2043
+ type: LiteralSchema<"spacer", "spacer">;
2044
+ char: StringSchema<string>;
2045
+ charWidth: NumberSchema<number>;
2046
+ isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
2047
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
2048
+ count: NumberSchema<number>;
2049
+ }, undefined, {
1891
2050
  type: "spacer";
1892
2051
  char: string;
1893
2052
  charWidth: number;
1894
2053
  count: number;
1895
2054
  isButton?: boolean | undefined;
1896
2055
  font?: "defont" | "gulim" | "simsun" | undefined;
1897
- } | {
2056
+ }> | ObjectSchema<{
2057
+ type: LiteralSchema<"text", "text">;
2058
+ content: StringSchema<string>;
2059
+ slicedContent: ArraySchema<StringSchema<string>, string[]>;
2060
+ isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
2061
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
2062
+ width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
2063
+ }, undefined, {
1898
2064
  type: "text";
1899
2065
  content: string;
1900
2066
  slicedContent: string[];
1901
2067
  isButton?: boolean | undefined;
1902
2068
  font?: "defont" | "gulim" | "simsun" | undefined;
1903
2069
  width?: number[] | undefined;
1904
- }) & {
1905
- width: number[];
1906
- }>,
1907
- ObjectSchema<{
1908
- type: LiteralSchema<"spacer", "spacer">;
1909
- char: StringSchema<string>;
1910
- charWidth: NumberSchema<number>;
1911
- isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
1912
- font: OptionalSchema<UnionSchema<[
1913
- LiteralSchema<"defont", "defont">,
1914
- LiteralSchema<"gulim", "gulim">,
1915
- LiteralSchema<"simsun", "simsun">
1916
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
1917
- count: NumberSchema<number>;
1918
- }, undefined, {
2070
+ }>)[], {
1919
2071
  type: "spacer";
1920
2072
  char: string;
1921
2073
  charWidth: number;
1922
2074
  count: number;
1923
2075
  isButton?: boolean | undefined;
1924
2076
  font?: "defont" | "gulim" | "simsun" | undefined;
2077
+ } | {
2078
+ type: "text";
2079
+ content: string;
2080
+ slicedContent: string[];
2081
+ isButton?: boolean | undefined;
2082
+ font?: "defont" | "gulim" | "simsun" | undefined;
2083
+ width?: number[] | undefined;
2084
+ }>,
2085
+ ObjectSchema<{
2086
+ width: ArraySchema<NumberSchema<number>, number[]>;
2087
+ }, undefined, {
2088
+ width: number[];
1925
2089
  }>
1926
- ], {
2090
+ ], ({
2091
+ type: "spacer";
2092
+ char: string;
2093
+ charWidth: number;
2094
+ count: number;
2095
+ isButton?: boolean | undefined;
2096
+ font?: "defont" | "gulim" | "simsun" | undefined;
2097
+ } | {
2098
+ type: "text";
2099
+ content: string;
2100
+ slicedContent: string[];
2101
+ isButton?: boolean | undefined;
2102
+ font?: "defont" | "gulim" | "simsun" | undefined;
2103
+ width?: number[] | undefined;
2104
+ }) & {
2105
+ width: number[];
2106
+ }>)[], {
1927
2107
  type: "spacer";
1928
2108
  char: string;
1929
2109
  charWidth: number;
@@ -1953,17 +2133,9 @@ export type CommentContentIndex = {
1953
2133
  index: number;
1954
2134
  font: CommentFlashFontParsed;
1955
2135
  };
1956
- export declare const ZCommentSize: UnionSchema<[
1957
- LiteralSchema<"big", "big">,
1958
- LiteralSchema<"medium", "medium">,
1959
- LiteralSchema<"small", "small">
1960
- ], "big" | "medium" | "small">;
2136
+ export declare const ZCommentSize: UnionSchema<(LiteralSchema<"big", "big"> | LiteralSchema<"medium", "medium"> | LiteralSchema<"small", "small">)[], "big" | "medium" | "small">;
1961
2137
  export type CommentSize = Output<typeof ZCommentSize>;
1962
- export declare const ZCommentLoc: UnionSchema<[
1963
- LiteralSchema<"ue", "ue">,
1964
- LiteralSchema<"naka", "naka">,
1965
- LiteralSchema<"shita", "shita">
1966
- ], "ue" | "naka" | "shita">;
2138
+ export declare const ZCommentLoc: UnionSchema<(LiteralSchema<"ue", "ue"> | LiteralSchema<"naka", "naka"> | LiteralSchema<"shita", "shita">)[], "ue" | "naka" | "shita">;
1967
2139
  export type CommentLoc = Output<typeof ZCommentLoc>;
1968
2140
  export type Collision = {
1969
2141
  [key in CollisionPos]: CollisionItem;
@@ -1998,7 +2170,8 @@ export type NicoScriptReverse = {
1998
2170
  start: number;
1999
2171
  end: number;
2000
2172
  };
2001
- export type NicoScriptReverseTarget = "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168";
2173
+ export declare const ZNicoScriptReverseTarget: UnionSchema<(LiteralSchema<"\u30B3\u30E1", "\u30B3\u30E1"> | LiteralSchema<"\u6295\u30B3\u30E1", "\u6295\u30B3\u30E1"> | LiteralSchema<"\u5168", "\u5168">)[], "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168">;
2174
+ export type NicoScriptReverseTarget = Output<typeof ZNicoScriptReverseTarget>;
2002
2175
  export type NicoScriptReplace = {
2003
2176
  start: number;
2004
2177
  long: number | undefined;
@@ -2013,9 +2186,12 @@ export type NicoScriptReplace = {
2013
2186
  loc: CommentLoc | undefined;
2014
2187
  no: number;
2015
2188
  };
2016
- export type NicoScriptReplaceRange = "\u5358" | "\u5168";
2017
- export type NicoScriptReplaceTarget = "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168" | "\u542B\u307E\u306A\u3044" | "\u542B\u3080";
2018
- export type NicoScriptReplaceCondition = "\u5B8C\u5168\u4E00\u81F4" | "\u90E8\u5206\u4E00\u81F4";
2189
+ export declare const ZNicoScriptReplaceRange: UnionSchema<(LiteralSchema<"\u5168", "\u5168"> | LiteralSchema<"\u5358", "\u5358">)[], "\u5168" | "\u5358">;
2190
+ export type NicoScriptReplaceRange = Output<typeof ZNicoScriptReplaceRange>;
2191
+ export declare const ZNicoScriptReplaceTarget: UnionSchema<(LiteralSchema<"\u30B3\u30E1", "\u30B3\u30E1"> | LiteralSchema<"\u6295\u30B3\u30E1", "\u6295\u30B3\u30E1"> | LiteralSchema<"\u5168", "\u5168"> | LiteralSchema<"\u542B\u307E\u306A\u3044", "\u542B\u307E\u306A\u3044"> | LiteralSchema<"\u542B\u3080", "\u542B\u3080">)[], "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168" | "\u542B\u307E\u306A\u3044" | "\u542B\u3080">;
2192
+ export type NicoScriptReplaceTarget = Output<typeof ZNicoScriptReplaceTarget>;
2193
+ export declare const ZNicoScriptReplaceCondition: UnionSchema<(LiteralSchema<"\u90E8\u5206\u4E00\u81F4", "\u90E8\u5206\u4E00\u81F4"> | LiteralSchema<"\u5B8C\u5168\u4E00\u81F4", "\u5B8C\u5168\u4E00\u81F4">)[], "\u90E8\u5206\u4E00\u81F4" | "\u5B8C\u5168\u4E00\u81F4">;
2194
+ export type NicoScriptReplaceCondition = Output<typeof ZNicoScriptReplaceCondition>;
2019
2195
  export type NicoScriptBan = {
2020
2196
  start: number;
2021
2197
  end: number;
@@ -2079,53 +2255,36 @@ export type MeasureTextInput = FormattedCommentWithFont & {
2079
2255
  scale: number;
2080
2256
  };
2081
2257
  export declare const ZMeasureInput: ObjectSchema<{
2082
- font: UnionSchema<[
2083
- LiteralSchema<"defont", "defont">,
2084
- LiteralSchema<"mincho", "mincho">,
2085
- LiteralSchema<"gothic", "gothic">,
2086
- LiteralSchema<"gulim", "gulim">,
2087
- LiteralSchema<"simsun", "simsun">
2088
- ], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
2089
- content: ArraySchema<UnionSchema<[
2090
- ObjectSchema<{
2091
- type: LiteralSchema<"spacer", "spacer">;
2092
- char: StringSchema<string>;
2093
- charWidth: NumberSchema<number>;
2094
- isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
2095
- font: OptionalSchema<UnionSchema<[
2096
- LiteralSchema<"defont", "defont">,
2097
- LiteralSchema<"gulim", "gulim">,
2098
- LiteralSchema<"simsun", "simsun">
2099
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
2100
- count: NumberSchema<number>;
2101
- }, undefined, {
2102
- type: "spacer";
2103
- char: string;
2104
- charWidth: number;
2105
- count: number;
2106
- isButton?: boolean | undefined;
2107
- font?: "defont" | "gulim" | "simsun" | undefined;
2108
- }>,
2109
- ObjectSchema<{
2110
- type: LiteralSchema<"text", "text">;
2111
- content: StringSchema<string>;
2112
- slicedContent: ArraySchema<StringSchema<string>, string[]>;
2113
- isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
2114
- font: OptionalSchema<UnionSchema<[
2115
- LiteralSchema<"defont", "defont">,
2116
- LiteralSchema<"gulim", "gulim">,
2117
- LiteralSchema<"simsun", "simsun">
2118
- ], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
2119
- width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
2120
- }, undefined, {
2121
- type: "text";
2122
- content: string;
2123
- slicedContent: string[];
2124
- isButton?: boolean | undefined;
2125
- font?: "defont" | "gulim" | "simsun" | undefined;
2126
- width?: number[] | undefined;
2127
- }>
2128
- ], {
2258
+ font: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
2259
+ content: ArraySchema<UnionSchema<(ObjectSchema<{
2260
+ type: LiteralSchema<"spacer", "spacer">;
2261
+ char: StringSchema<string>;
2262
+ charWidth: NumberSchema<number>;
2263
+ isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
2264
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
2265
+ count: NumberSchema<number>;
2266
+ }, undefined, {
2267
+ type: "spacer";
2268
+ char: string;
2269
+ charWidth: number;
2270
+ count: number;
2271
+ isButton?: boolean | undefined;
2272
+ font?: "defont" | "gulim" | "simsun" | undefined;
2273
+ }> | ObjectSchema<{
2274
+ type: LiteralSchema<"text", "text">;
2275
+ content: StringSchema<string>;
2276
+ slicedContent: ArraySchema<StringSchema<string>, string[]>;
2277
+ isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
2278
+ font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
2279
+ width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
2280
+ }, undefined, {
2281
+ type: "text";
2282
+ content: string;
2283
+ slicedContent: string[];
2284
+ isButton?: boolean | undefined;
2285
+ font?: "defont" | "gulim" | "simsun" | undefined;
2286
+ width?: number[] | undefined;
2287
+ }>)[], {
2129
2288
  type: "spacer";
2130
2289
  char: string;
2131
2290
  charWidth: number;
@@ -2554,6 +2713,53 @@ declare const typeGuard: {
2554
2713
  };
2555
2714
  };
2556
2715
  xmlDocument: (i: unknown) => i is XMLDocument;
2716
+ xml2js: {
2717
+ packet: (i: unknown) => i is {
2718
+ packet: {
2719
+ chat: {
2720
+ _: string;
2721
+ $: {
2722
+ owner: string;
2723
+ vpos: string;
2724
+ date: string;
2725
+ date_usec: string;
2726
+ premium: string;
2727
+ mail: string;
2728
+ user_id?: string | undefined;
2729
+ no?: string | undefined;
2730
+ };
2731
+ }[];
2732
+ };
2733
+ };
2734
+ chat: (i: unknown) => i is {
2735
+ chat: {
2736
+ _: string;
2737
+ $: {
2738
+ owner: string;
2739
+ vpos: string;
2740
+ date: string;
2741
+ date_usec: string;
2742
+ premium: string;
2743
+ mail: string;
2744
+ user_id?: string | undefined;
2745
+ no?: string | undefined;
2746
+ };
2747
+ }[];
2748
+ };
2749
+ chatItem: (i: unknown) => i is {
2750
+ _: string;
2751
+ $: {
2752
+ owner: string;
2753
+ vpos: string;
2754
+ date: string;
2755
+ date_usec: string;
2756
+ premium: string;
2757
+ mail: string;
2758
+ user_id?: string | undefined;
2759
+ no?: string | undefined;
2760
+ };
2761
+ };
2762
+ };
2557
2763
  legacyOwner: {
2558
2764
  comments: (i: unknown) => i is string;
2559
2765
  };
@@ -2601,6 +2807,7 @@ declare const typeGuard: {
2601
2807
  isMyPost: boolean;
2602
2808
  }[];
2603
2809
  thread: (i: unknown) => i is {
2810
+ id: unknown;
2604
2811
  fork: string;
2605
2812
  commentCount: number;
2606
2813
  comments: {
@@ -2618,9 +2825,9 @@ declare const typeGuard: {
2618
2825
  source: string;
2619
2826
  isMyPost: boolean;
2620
2827
  }[];
2621
- id?: unknown;
2622
2828
  };
2623
2829
  threads: (i: unknown) => i is {
2830
+ id: unknown;
2624
2831
  fork: string;
2625
2832
  commentCount: number;
2626
2833
  comments: {
@@ -2638,17 +2845,16 @@ declare const typeGuard: {
2638
2845
  source: string;
2639
2846
  isMyPost: boolean;
2640
2847
  }[];
2641
- id?: unknown;
2642
2848
  }[];
2643
2849
  };
2644
2850
  nicoScript: {
2645
2851
  range: {
2646
- target: (i: unknown) => i is NicoScriptReverseTarget;
2852
+ target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168";
2647
2853
  };
2648
2854
  replace: {
2649
- range: (i: unknown) => i is NicoScriptReplaceRange;
2650
- target: (i: unknown) => i is NicoScriptReplaceTarget;
2651
- condition: (i: unknown) => i is NicoScriptReplaceCondition;
2855
+ range: (i: unknown) => i is "\u5168" | "\u5358";
2856
+ target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168" | "\u542B\u307E\u306A\u3044" | "\u542B\u3080";
2857
+ condition: (i: unknown) => i is "\u90E8\u5206\u4E00\u81F4" | "\u5B8C\u5168\u4E00\u81F4";
2652
2858
  };
2653
2859
  };
2654
2860
  comment: {
@@ -2952,6 +3158,53 @@ declare class NiconiComments {
2952
3158
  };
2953
3159
  };
2954
3160
  xmlDocument: (i: unknown) => i is XMLDocument;
3161
+ xml2js: {
3162
+ packet: (i: unknown) => i is {
3163
+ packet: {
3164
+ chat: {
3165
+ _: string;
3166
+ $: {
3167
+ owner: string;
3168
+ vpos: string;
3169
+ date: string;
3170
+ date_usec: string;
3171
+ premium: string;
3172
+ mail: string;
3173
+ user_id?: string | undefined;
3174
+ no?: string | undefined;
3175
+ };
3176
+ }[];
3177
+ };
3178
+ };
3179
+ chat: (i: unknown) => i is {
3180
+ chat: {
3181
+ _: string;
3182
+ $: {
3183
+ owner: string;
3184
+ vpos: string;
3185
+ date: string;
3186
+ date_usec: string;
3187
+ premium: string;
3188
+ mail: string;
3189
+ user_id?: string | undefined;
3190
+ no?: string | undefined;
3191
+ };
3192
+ }[];
3193
+ };
3194
+ chatItem: (i: unknown) => i is {
3195
+ _: string;
3196
+ $: {
3197
+ owner: string;
3198
+ vpos: string;
3199
+ date: string;
3200
+ date_usec: string;
3201
+ premium: string;
3202
+ mail: string;
3203
+ user_id?: string | undefined;
3204
+ no?: string | undefined;
3205
+ };
3206
+ };
3207
+ };
2955
3208
  legacyOwner: {
2956
3209
  comments: (i: unknown) => i is string;
2957
3210
  };
@@ -2999,6 +3252,7 @@ declare class NiconiComments {
2999
3252
  isMyPost: boolean;
3000
3253
  }[];
3001
3254
  thread: (i: unknown) => i is {
3255
+ id: unknown;
3002
3256
  fork: string;
3003
3257
  commentCount: number;
3004
3258
  comments: {
@@ -3016,9 +3270,9 @@ declare class NiconiComments {
3016
3270
  source: string;
3017
3271
  isMyPost: boolean;
3018
3272
  }[];
3019
- id?: unknown;
3020
3273
  };
3021
3274
  threads: (i: unknown) => i is {
3275
+ id: unknown;
3022
3276
  fork: string;
3023
3277
  commentCount: number;
3024
3278
  comments: {
@@ -3036,17 +3290,16 @@ declare class NiconiComments {
3036
3290
  source: string;
3037
3291
  isMyPost: boolean;
3038
3292
  }[];
3039
- id?: unknown;
3040
3293
  }[];
3041
3294
  };
3042
3295
  nicoScript: {
3043
3296
  range: {
3044
- target: (i: unknown) => i is NicoScriptReverseTarget;
3297
+ target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168";
3045
3298
  };
3046
3299
  replace: {
3047
- range: (i: unknown) => i is NicoScriptReplaceRange;
3048
- target: (i: unknown) => i is NicoScriptReplaceTarget;
3049
- condition: (i: unknown) => i is NicoScriptReplaceCondition;
3300
+ range: (i: unknown) => i is "\u5168" | "\u5358";
3301
+ target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168" | "\u542B\u307E\u306A\u3044" | "\u542B\u3080";
3302
+ condition: (i: unknown) => i is "\u90E8\u5206\u4E00\u81F4" | "\u5B8C\u5168\u4E00\u81F4";
3050
3303
  };
3051
3304
  };
3052
3305
  comment: {