1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit ArkUI 19 */ 20 21/** 22 * Enumerates the data operation types. 23 * 24 * @enum { string } 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @crossplatform 27 * @atomicservice 28 * @since 12 29 */ 30declare enum DataOperationType { 31 /** 32 * Data addition. 33 * 34 * @syscap SystemCapability.ArkUI.ArkUI.Full 35 * @crossplatform 36 * @atomicservice 37 * @since 12 38 */ 39 ADD = 'add', 40 41 /** 42 * Data deletion. 43 * 44 * @syscap SystemCapability.ArkUI.ArkUI.Full 45 * @crossplatform 46 * @atomicservice 47 * @since 12 48 */ 49 DELETE = 'delete', 50 51 /** 52 * Data exchange. 53 * 54 * @syscap SystemCapability.ArkUI.ArkUI.Full 55 * @crossplatform 56 * @atomicservice 57 * @since 12 58 */ 59 EXCHANGE = 'exchange', 60 61 /** 62 * Data movement. 63 * 64 * @syscap SystemCapability.ArkUI.ArkUI.Full 65 * @crossplatform 66 * @atomicservice 67 * @since 12 68 */ 69 MOVE = 'move', 70 71 /** 72 * Data change. 73 * 74 * @syscap SystemCapability.ArkUI.ArkUI.Full 75 * @crossplatform 76 * @atomicservice 77 * @since 12 78 */ 79 CHANGE = 'change', 80 81 /** 82 * Data reloading. 83 * 84 * @syscap SystemCapability.ArkUI.ArkUI.Full 85 * @crossplatform 86 * @atomicservice 87 * @since 12 88 */ 89 RELOAD = 'reload' 90} 91 92/** 93 * Represents an operation for adding data. 94 * 95 * @interface DataAddOperation 96 * @syscap SystemCapability.ArkUI.ArkUI.Full 97 * @crossplatform 98 * @atomicservice 99 * @since 12 100 */ 101interface DataAddOperation { 102 /** 103 * Type of data addition. 104 * 105 * @type { DataOperationType.ADD } 106 * @syscap SystemCapability.ArkUI.ArkUI.Full 107 * @crossplatform 108 * @atomicservice 109 * @since 12 110 */ 111 type: DataOperationType.ADD, 112 113 /** 114 * Index at which to insert the data record. 115 * 116 * @type { number } 117 * @syscap SystemCapability.ArkUI.ArkUI.Full 118 * @crossplatform 119 * @atomicservice 120 * @since 12 121 */ 122 index: number, 123 124 /** 125 * Number of data records to insert. Default value: 1. 126 * 127 * @type { ?number } 128 * @default 1 129 * @syscap SystemCapability.ArkUI.ArkUI.Full 130 * @crossplatform 131 * @atomicservice 132 * @since 12 133 */ 134 count?: number, 135 136 /** 137 * Keys to assign to the inserted data records. 138 * 139 * @type { ?(string | Array<string>) } 140 * @syscap SystemCapability.ArkUI.ArkUI.Full 141 * @crossplatform 142 * @atomicservice 143 * @since 12 144 */ 145 key?: string | Array<string> 146} 147 148/** 149 * Represents an operation for deleting data. 150 * 151 * @interface DataDeleteOperation 152 * @syscap SystemCapability.ArkUI.ArkUI.Full 153 * @crossplatform 154 * @atomicservice 155 * @since 12 156 */ 157interface DataDeleteOperation { 158 /** 159 * Type of data deletion. 160 * 161 * @type { DataOperationType.DELETE } 162 * @syscap SystemCapability.ArkUI.ArkUI.Full 163 * @crossplatform 164 * @atomicservice 165 * @since 12 166 */ 167 type: DataOperationType.DELETE, 168 169 /** 170 * Index at which to start deleting data. 171 * 172 * @type { number } 173 * @syscap SystemCapability.ArkUI.ArkUI.Full 174 * @crossplatform 175 * @atomicservice 176 * @since 12 177 */ 178 index: number, 179 180 /** 181 * Number of data records to delete. Default value: 1. 182 * 183 * @type { ?number } 184 * @default 1 185 * @syscap SystemCapability.ArkUI.ArkUI.Full 186 * @crossplatform 187 * @atomicservice 188 * @since 12 189 */ 190 count?: number 191} 192 193/** 194 * Represents an operation for changing data. 195 * 196 * @interface DataChangeOperation 197 * @syscap SystemCapability.ArkUI.ArkUI.Full 198 * @crossplatform 199 * @atomicservice 200 * @since 12 201 */ 202interface DataChangeOperation { 203 /** 204 * Type of data change. 205 * 206 * @type { DataOperationType.CHANGE } 207 * @syscap SystemCapability.ArkUI.ArkUI.Full 208 * @crossplatform 209 * @atomicservice 210 * @since 12 211 */ 212 type: DataOperationType.CHANGE, 213 214 /** 215 * Index of the data to be changed. 216 * 217 * @type { number } 218 * @syscap SystemCapability.ArkUI.ArkUI.Full 219 * @crossplatform 220 * @atomicservice 221 * @since 12 222 */ 223 index: number, 224 225 /** 226 * New key to assign to the changed data. The original key is used by default. 227 * 228 * @type { ?string } 229 * @syscap SystemCapability.ArkUI.ArkUI.Full 230 * @crossplatform 231 * @atomicservice 232 * @since 12 233 */ 234 key?: string 235} 236 237/** 238 * Defines position of moved data. 239 * 240 * @interface MoveIndex 241 * @syscap SystemCapability.ArkUI.ArkUI.Full 242 * @crossplatform 243 * @atomicservice 244 * @since 12 245 */ 246interface MoveIndex { 247 /** 248 * Start position for the movement. 249 * 250 * @type { number } 251 * @syscap SystemCapability.ArkUI.ArkUI.Full 252 * @crossplatform 253 * @atomicservice 254 * @since 12 255 */ 256 from: number; 257 /** 258 * End position for the movement. 259 * 260 * @type { number } 261 * @syscap SystemCapability.ArkUI.ArkUI.Full 262 * @crossplatform 263 * @atomicservice 264 * @since 12 265 */ 266 to: number; 267} 268 269/** 270 * Defines position of exchange data. 271 * 272 * @interface ExchangeIndex 273 * @syscap SystemCapability.ArkUI.ArkUI.Full 274 * @crossplatform 275 * @atomicservice 276 * @since 12 277 */ 278interface ExchangeIndex { 279 /** 280 * First position for the exchange. 281 * 282 * @type { number } 283 * @syscap SystemCapability.ArkUI.ArkUI.Full 284 * @crossplatform 285 * @atomicservice 286 * @since 12 287 */ 288 start: number; 289 /** 290 * Second position for the exchange. 291 * 292 * @type { number } 293 * @syscap SystemCapability.ArkUI.ArkUI.Full 294 * @crossplatform 295 * @atomicservice 296 * @since 12 297 */ 298 end: number; 299} 300 301/** 302 * Defines new key of exchange data. 303 * 304 * @interface ExchangeKey 305 * @syscap SystemCapability.ArkUI.ArkUI.Full 306 * @crossplatform 307 * @atomicservice 308 * @since 12 309 */ 310interface ExchangeKey { 311 /** 312 * New key to assign to the first position in the exchange. The original key is used by default. 313 * 314 * @type { string } 315 * @syscap SystemCapability.ArkUI.ArkUI.Full 316 * @crossplatform 317 * @atomicservice 318 * @since 12 319 */ 320 start: string; 321 /** 322 * New key to assign to the second position in the exchange. The original key is used by default. 323 * 324 * @type { string } 325 * @syscap SystemCapability.ArkUI.ArkUI.Full 326 * @crossplatform 327 * @atomicservice 328 * @since 12 329 */ 330 end: string; 331} 332 333/** 334 * Represents an operation for moving data. 335 * 336 * @interface DataMoveOperation 337 * @syscap SystemCapability.ArkUI.ArkUI.Full 338 * @crossplatform 339 * @atomicservice 340 * @since 12 341 */ 342interface DataMoveOperation { 343 /** 344 * Type of data movement. 345 * 346 * @type { DataOperationType.MOVE } 347 * @syscap SystemCapability.ArkUI.ArkUI.Full 348 * @crossplatform 349 * @atomicservice 350 * @since 12 351 */ 352 type: DataOperationType.MOVE, 353 354 /** 355 * Positions for the movement. 356 * 357 * @type { MoveIndex } 358 * @syscap SystemCapability.ArkUI.ArkUI.Full 359 * @crossplatform 360 * @atomicservice 361 * @since 12 362 */ 363 index: MoveIndex, 364 365 /** 366 * New key to assign to the moved data. The original key is used by default. 367 * 368 * @type { ?string } 369 * @syscap SystemCapability.ArkUI.ArkUI.Full 370 * @crossplatform 371 * @atomicservice 372 * @since 12 373 */ 374 key?: string 375} 376 377/** 378 * Represents an operation for exchanging data. 379 * 380 * @interface DataExchangeOperation 381 * @syscap SystemCapability.ArkUI.ArkUI.Full 382 * @crossplatform 383 * @atomicservice 384 * @since 12 385 */ 386 interface DataExchangeOperation { 387 /** 388 * Type of data exchange. 389 * 390 * @type { DataOperationType.EXCHANGE } 391 * @syscap SystemCapability.ArkUI.ArkUI.Full 392 * @crossplatform 393 * @atomicservice 394 * @since 12 395 */ 396 type: DataOperationType.EXCHANGE, 397 398 /** 399 * Positions for the exchange. 400 * 401 * @type { ExchangeIndex } 402 * @syscap SystemCapability.ArkUI.ArkUI.Full 403 * @crossplatform 404 * @atomicservice 405 * @since 12 406 */ 407 index: ExchangeIndex, 408 409 /** 410 * New keys to assign to the exchanged data. The original keys are used by default. 411 * 412 * @type { ?ExchangeKey } 413 * @syscap SystemCapability.ArkUI.ArkUI.Full 414 * @crossplatform 415 * @atomicservice 416 * @since 12 417 */ 418 key?: ExchangeKey 419} 420 421/** 422 * Represents an operation for reloading data. 423 * If the onDatasetChange event contains a DataOperationType.RELOAD operation, 424 * all other operations in the event are ineffective.In such cases, the framework will 425 * call keygenerator to perform a comparison of keys with their corresponding values. 426 * 427 * @interface DataReloadOperation 428 * @syscap SystemCapability.ArkUI.ArkUI.Full 429 * @crossplatform 430 * @atomicservice 431 * @since 12 432 */ 433interface DataReloadOperation { 434 /** 435 * Type of data reloading. 436 * 437 * @type { DataOperationType.RELOAD } 438 * @syscap SystemCapability.ArkUI.ArkUI.Full 439 * @crossplatform 440 * @atomicservice 441 * @since 12 442 */ 443 type: DataOperationType.RELOAD 444} 445 446/** 447 * All data operation type 448 * 449 * @typedef { DataAddOperation | DataDeleteOperation | DataChangeOperation |DataMoveOperation | DataExchangeOperation | DataReloadOperation } 450 * @syscap SystemCapability.ArkUI.ArkUI.Full 451 * @crossplatform 452 * @atomicservice 453 * @since 12 454 */ 455declare type DataOperation = 456 DataAddOperation | DataDeleteOperation | DataChangeOperation | DataMoveOperation | DataExchangeOperation | DataReloadOperation; 457 458/** 459 * Listener for data changes. 460 * 461 * @interface DataChangeListener 462 * @syscap SystemCapability.ArkUI.ArkUI.Full 463 * @since 7 464 */ 465/** 466 * Listener for data changes. 467 * 468 * @interface DataChangeListener 469 * @syscap SystemCapability.ArkUI.ArkUI.Full 470 * @crossplatform 471 * @since 10 472 */ 473/** 474 * Listener for data changes. 475 * 476 * @interface DataChangeListener 477 * @syscap SystemCapability.ArkUI.ArkUI.Full 478 * @crossplatform 479 * @atomicservice 480 * @since 11 481 */ 482declare interface DataChangeListener { 483 /** 484 * Invoked when all data is reloaded. For data items whose key remains unchanged, 485 * the original child component is used. For data items whose key changes, a new child component is created. 486 * 487 * @syscap SystemCapability.ArkUI.ArkUI.Full 488 * @since 7 489 */ 490 /** 491 * Invoked when all data is reloaded. For data items whose key remains unchanged, 492 * the original child component is used. For data items whose key changes, a new child component is created. 493 * 494 * @syscap SystemCapability.ArkUI.ArkUI.Full 495 * @crossplatform 496 * @since 10 497 */ 498 /** 499 * Invoked when all data is reloaded. For data items whose key remains unchanged, 500 * the original child component is used. For data items whose key changes, a new child component is created. 501 * 502 * @syscap SystemCapability.ArkUI.ArkUI.Full 503 * @crossplatform 504 * @atomicservice 505 * @since 11 506 */ 507 onDataReloaded(): void; 508 509 /** 510 * Invoked when data is added to the position indicated by the specified index. 511 * 512 * @param { number } index 513 * @syscap SystemCapability.ArkUI.ArkUI.Full 514 * @since 7 515 * @deprecated since 8 516 * @useinstead onDataAdd 517 */ 518 onDataAdded(index: number): void; 519 520 /** 521 * Invoked when data is added to the position indicated by the specified index. 522 * 523 * @param { number } index 524 * @syscap SystemCapability.ArkUI.ArkUI.Full 525 * @since 8 526 */ 527 /** 528 * Invoked when data is added to the position indicated by the specified index. 529 * 530 * @param { number } index 531 * @syscap SystemCapability.ArkUI.ArkUI.Full 532 * @crossplatform 533 * @since 10 534 */ 535 /** 536 * Invoked when data is added to the position indicated by the specified index. 537 * 538 * @param { number } index 539 * @syscap SystemCapability.ArkUI.ArkUI.Full 540 * @crossplatform 541 * @atomicservice 542 * @since 11 543 */ 544 onDataAdd(index: number): void; 545 546 /** 547 * Invoked when data is moved, that is, when data is swapped between the from and to positions. 548 * 549 * @param { number } from 550 * @param { number } to 551 * @syscap SystemCapability.ArkUI.ArkUI.Full 552 * @since 7 553 * @deprecated since 8 554 * @useinstead onDataMove 555 */ 556 onDataMoved(from: number, to: number): void; 557 558 /** 559 * Invoked when data is moved, that is, when data is swapped between the **from** and **to** positions. 560 * 561 * @param { number } from 562 * @param { number } to 563 * @syscap SystemCapability.ArkUI.ArkUI.Full 564 * @since 8 565 */ 566 /** 567 * Invoked when data is moved, that is, when data is swapped between the **from** and **to** positions. 568 * 569 * @param { number } from 570 * @param { number } to 571 * @syscap SystemCapability.ArkUI.ArkUI.Full 572 * @crossplatform 573 * @since 10 574 */ 575 /** 576 * Invoked when data is moved, that is, when data is swapped between the **from** and **to** positions. 577 * 578 * @param { number } from 579 * @param { number } to 580 * @syscap SystemCapability.ArkUI.ArkUI.Full 581 * @crossplatform 582 * @atomicservice 583 * @since 11 584 */ 585 onDataMove(from: number, to: number): void; 586 587 /** 588 * Invoked when data is deleted from the position indicated by the specified index. 589 * LazyForEach will update the displayed content accordingly. 590 * 591 * @param { number } index 592 * @syscap SystemCapability.ArkUI.ArkUI.Full 593 * @since 7 594 * @deprecated since 8 595 * @useinstead onDataDelete 596 */ 597 onDataDeleted(index: number): void; 598 599 /** 600 * Invoked when data is deleted from the position indicated by the specified index. 601 * LazyForEach will update the displayed content accordingly. 602 * 603 * @param { number } index 604 * @syscap SystemCapability.ArkUI.ArkUI.Full 605 * @since 8 606 */ 607 /** 608 * Invoked when data is deleted from the position indicated by the specified index. 609 * LazyForEach will update the displayed content accordingly. 610 * 611 * @param { number } index 612 * @syscap SystemCapability.ArkUI.ArkUI.Full 613 * @crossplatform 614 * @since 10 615 */ 616 /** 617 * Invoked when data is deleted from the position indicated by the specified index. 618 * LazyForEach will update the displayed content accordingly. 619 * 620 * @param { number } index 621 * @syscap SystemCapability.ArkUI.ArkUI.Full 622 * @crossplatform 623 * @atomicservice 624 * @since 11 625 */ 626 onDataDelete(index: number): void; 627 628 /** 629 * Invoked when data in the position indicated by the specified index is changed. 630 * 631 * @param { number } index 632 * @syscap SystemCapability.ArkUI.ArkUI.Full 633 * @since 7 634 * @deprecated since 8 635 * @useinstead onDataChange 636 */ 637 onDataChanged(index: number): void; 638 639 /** 640 * Invoked when data in the position indicated by the specified index is changed. 641 * 642 * @param { number } index 643 * @syscap SystemCapability.ArkUI.ArkUI.Full 644 * @since 8 645 */ 646 /** 647 * Invoked when data in the position indicated by the specified index is changed. 648 * 649 * @param { number } index 650 * @syscap SystemCapability.ArkUI.ArkUI.Full 651 * @crossplatform 652 * @since 10 653 */ 654 /** 655 * Invoked when data in the position indicated by the specified index is changed. 656 * 657 * @param { number } index 658 * @syscap SystemCapability.ArkUI.ArkUI.Full 659 * @crossplatform 660 * @atomicservice 661 * @since 11 662 */ 663 onDataChange(index: number): void; 664 665 /** 666 * Invoked when data is processed in batches to notify the component of refreshing. 667 * 668 * @param { DataOperation[] } dataOperations 669 * @syscap SystemCapability.ArkUI.ArkUI.Full 670 * @crossplatform 671 * @atomicservice 672 * @since 12 673 */ 674 onDatasetChange(dataOperations: DataOperation[]): void; 675} 676 677/** 678 * Developers need to implement this interface to provide data to LazyForEach component. 679 * 680 * @interface IDataSource 681 * @syscap SystemCapability.ArkUI.ArkUI.Full 682 * @since 7 683 */ 684/** 685 * Developers need to implement this interface to provide data to LazyForEach component. 686 * 687 * @interface IDataSource 688 * @syscap SystemCapability.ArkUI.ArkUI.Full 689 * @crossplatform 690 * @since 10 691 */ 692/** 693 * Developers need to implement this interface to provide data to LazyForEach component. 694 * 695 * @interface IDataSource 696 * @syscap SystemCapability.ArkUI.ArkUI.Full 697 * @crossplatform 698 * @atomicservice 699 * @since 11 700 */ 701declare interface IDataSource { 702 /** 703 * Obtains the total number of data items. 704 * 705 * @returns { number } 706 * @syscap SystemCapability.ArkUI.ArkUI.Full 707 * @since 7 708 */ 709 /** 710 * Obtains the total number of data items. 711 * 712 * @returns { number } 713 * @syscap SystemCapability.ArkUI.ArkUI.Full 714 * @crossplatform 715 * @since 10 716 */ 717 /** 718 * Obtains the total number of data items. 719 * 720 * @returns { number } 721 * @syscap SystemCapability.ArkUI.ArkUI.Full 722 * @crossplatform 723 * @atomicservice 724 * @since 11 725 */ 726 totalCount(): number; 727 728 /** 729 * Obtains the data item that matches the specified index. 730 * 731 * @param { number } index 732 * @returns { any } 733 * @syscap SystemCapability.ArkUI.ArkUI.Full 734 * @since 7 735 */ 736 /** 737 * Obtains the data item that matches the specified index. 738 * 739 * @param { number } index 740 * @returns { any } 741 * @syscap SystemCapability.ArkUI.ArkUI.Full 742 * @crossplatform 743 * @since 10 744 */ 745 /** 746 * Obtains the data item that matches the specified index. 747 * 748 * @param { number } index 749 * @returns { any } 750 * @syscap SystemCapability.ArkUI.ArkUI.Full 751 * @crossplatform 752 * @atomicservice 753 * @since 11 754 */ 755 getData(index: number): any; 756 757 /** 758 * Registers a listener for data changes. 759 * 760 * @param { DataChangeListener } listener 761 * @syscap SystemCapability.ArkUI.ArkUI.Full 762 * @since 7 763 */ 764 /** 765 * Registers a listener for data changes. 766 * 767 * @param { DataChangeListener } listener 768 * @syscap SystemCapability.ArkUI.ArkUI.Full 769 * @crossplatform 770 * @since 10 771 */ 772 /** 773 * Registers a listener for data changes. 774 * 775 * @param { DataChangeListener } listener 776 * @syscap SystemCapability.ArkUI.ArkUI.Full 777 * @crossplatform 778 * @atomicservice 779 * @since 11 780 */ 781 registerDataChangeListener(listener: DataChangeListener): void; 782 783 /** 784 * Unregisters the listener for data changes. 785 * 786 * @param { DataChangeListener } listener 787 * @syscap SystemCapability.ArkUI.ArkUI.Full 788 * @since 7 789 */ 790 /** 791 * Unregisters the listener for data changes. 792 * 793 * @param { DataChangeListener } listener 794 * @syscap SystemCapability.ArkUI.ArkUI.Full 795 * @crossplatform 796 * @since 10 797 */ 798 /** 799 * Unregisters the listener for data changes. 800 * 801 * @param { DataChangeListener } listener 802 * @syscap SystemCapability.ArkUI.ArkUI.Full 803 * @crossplatform 804 * @atomicservice 805 * @since 11 806 */ 807 unregisterDataChangeListener(listener: DataChangeListener): void; 808} 809 810/** 811 * declare ForEachAttribute 812 * 813 * @extends DynamicNode<LazyForEachAttribute> 814 * @syscap SystemCapability.ArkUI.ArkUI.Full 815 * @crossplatform 816 * @atomicservice 817 * @since 12 818 */ 819declare class LazyForEachAttribute extends DynamicNode<LazyForEachAttribute> { 820} 821/** 822 * Lazy loading. 823 * 824 * @interface LazyForEachInterface 825 * @syscap SystemCapability.ArkUI.ArkUI.Full 826 * @since 7 827 */ 828/** 829 * Lazy loading. 830 * 831 * @interface LazyForEachInterface 832 * @syscap SystemCapability.ArkUI.ArkUI.Full 833 * @crossplatform 834 * @since 10 835 */ 836/** 837 * Lazy loading. 838 * 839 * @interface LazyForEachInterface 840 * @syscap SystemCapability.ArkUI.ArkUI.Full 841 * @crossplatform 842 * @atomicservice 843 * @since 11 844 */ 845interface LazyForEachInterface { 846 /** 847 * Enter the value to obtain the LazyForEach. 848 * 849 * @param { IDataSource } dataSource 850 * @param { function } itemGenerator 851 * @param { function } keyGenerator 852 * @returns { LazyForEachInterface } 853 * @syscap SystemCapability.ArkUI.ArkUI.Full 854 * @since 7 855 */ 856 /** 857 * Enter the value to obtain the LazyForEach. 858 * 859 * @param { IDataSource } dataSource 860 * @param { function } itemGenerator 861 * @param { function } keyGenerator 862 * @returns { LazyForEachInterface } 863 * @syscap SystemCapability.ArkUI.ArkUI.Full 864 * @crossplatform 865 * @since 10 866 */ 867 /** 868 * Enter the value to obtain the LazyForEach. 869 * 870 * @param { IDataSource } dataSource 871 * @param { function } itemGenerator 872 * @param { function } keyGenerator 873 * @returns { LazyForEachInterface } 874 * @syscap SystemCapability.ArkUI.ArkUI.Full 875 * @crossplatform 876 * @atomicservice 877 * @since 11 878 */ 879 /** 880 * Enter the value to obtain the LazyForEach. 881 * 882 * @param { IDataSource } dataSource 883 * @param { function } itemGenerator 884 * @param { function } keyGenerator 885 * @returns { LazyForEachAttribute } 886 * @syscap SystemCapability.ArkUI.ArkUI.Full 887 * @crossplatform 888 * @atomicservice 889 * @since 12 890 */ 891 ( 892 dataSource: IDataSource, 893 itemGenerator: (item: any, index: number) => void, 894 keyGenerator?: (item: any, index: number) => string 895 ): LazyForEachAttribute; 896} 897 898/** 899 * Defines LazyForEach Component. 900 * 901 * @syscap SystemCapability.ArkUI.ArkUI.Full 902 * @since 7 903 */ 904/** 905 * Defines LazyForEach Component. 906 * 907 * @syscap SystemCapability.ArkUI.ArkUI.Full 908 * @crossplatform 909 * @since 10 910 */ 911/** 912 * Defines LazyForEach Component. 913 * 914 * @syscap SystemCapability.ArkUI.ArkUI.Full 915 * @crossplatform 916 * @atomicservice 917 * @since 11 918 */ 919declare const LazyForEach: LazyForEachInterface; 920