1/* 2 * Copyright (c) 2022-2024 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 * function that returns item main size by index. 23 * 24 * @typedef { function } GetItemMainSizeByIndex 25 * @param { number } index - the index of FlowItem 26 * @returns { number } main size of the FlowItem at index 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @crossplatform 29 * @atomicservice 30 * @since 12 31 */ 32declare type GetItemMainSizeByIndex = (index: number) => number; 33 34/** 35 * Defines the water flow section options. 36 * 37 * @syscap SystemCapability.ArkUI.ArkUI.Full 38 * @crossplatform 39 * @atomicservice 40 * @since 12 41*/ 42declare class SectionOptions { 43 /** 44 * The number of FlowItems in this section. 45 * 46 * @type { number } itemsCount - the number of FlowItems in this section 47 * @syscap SystemCapability.ArkUI.ArkUI.Full 48 * @crossplatform 49 * @atomicservice 50 * @since 12 51 */ 52 itemsCount: number; 53 54 /** 55 * The columns of this section in vertical layout, or rows in horizontal layout. 56 * 57 * @type { ?number } crossCount - cross count of this section 58 * @default 1 one column in vertical layout, or one row in horizontal layout 59 * @syscap SystemCapability.ArkUI.ArkUI.Full 60 * @crossplatform 61 * @atomicservice 62 * @since 12 63 */ 64 crossCount?: number; 65 66 /** 67 * Asks the developer for the main size in vp of the flow item with the specified index. 68 * The water flow layout uses the size measured after the flow item is created if not set. 69 * 70 * @type { ?GetItemMainSizeByIndex } onGetItemMainSizeByIndex - function that returns item main size by index 71 * @syscap SystemCapability.ArkUI.ArkUI.Full 72 * @crossplatform 73 * @atomicservice 74 * @since 12 75 */ 76 onGetItemMainSizeByIndex?: GetItemMainSizeByIndex; 77 78 /** 79 * Set the spacing between columns of this section. 80 * 81 * @type { ?Dimension } columnsGap - column gap of this section 82 * same with columnsGap of WaterFlow if not set 83 * @syscap SystemCapability.ArkUI.ArkUI.Full 84 * @crossplatform 85 * @atomicservice 86 * @since 12 87 */ 88 columnsGap?: Dimension; 89 90 /** 91 * Set the spacing between rows of this section. 92 * 93 * @type { ?Dimension } rowsGap - row gap of this section 94 * same with rowsGap of WaterFlow if not set 95 * @syscap SystemCapability.ArkUI.ArkUI.Full 96 * @crossplatform 97 * @atomicservice 98 * @since 12 99 */ 100 rowsGap?: Dimension; 101 102 /** 103 * Outer margin of this section. 104 * 105 * @type { ?(Margin | Dimension) } margin - outer margin of this section 106 * @default {top: 0, right: 0, bottom: 0, left: 0} 107 * @syscap SystemCapability.ArkUI.ArkUI.Full 108 * @crossplatform 109 * @atomicservice 110 * @since 12 111 */ 112 margin?: Margin | Dimension; 113} 114 115/** 116 * Indicates the sections of WaterFlow. 117 * 118 * @syscap SystemCapability.ArkUI.ArkUI.Full 119 * @crossplatform 120 * @atomicservice 121 * @since 12 122 */ 123declare class WaterFlowSections { 124 /** 125 * Creates an instance of WaterFlowSections. 126 * 127 * @syscap SystemCapability.ArkUI.ArkUI.Full 128 * @crossplatform 129 * @atomicservice 130 * @since 12 131 */ 132 constructor(); 133 134 /** 135 * Changes sections in the WaterFlow by removing or replacing existing elements and/or adding new elements in place. 136 * 137 * @param { number } start - Zero-based index at which to start changing the sections. 138 * @param { number } [deleteCount] - Indicating the number of sections in the WaterFlow to remove from start. 139 * @param { Array<SectionOptions> } [sections] - The new sections to add to the WaterFlow, beginning from start. 140 * @returns { boolean } Whether the splice was successful. 141 * @syscap SystemCapability.ArkUI.ArkUI.Full 142 * @crossplatform 143 * @atomicservice 144 * @since 12 145 */ 146 splice(start: number, deleteCount?: number, sections?: Array<SectionOptions>): boolean; 147 148 /** 149 * Pushes a new section to the end of WaterFlow. 150 * 151 * @param { SectionOptions } section - new section options. 152 * @returns { boolean } Whether the push was successful. 153 * @syscap SystemCapability.ArkUI.ArkUI.Full 154 * @crossplatform 155 * @atomicservice 156 * @since 12 157 */ 158 push(section: SectionOptions): boolean; 159 160 /** 161 * Updates section at specified section index. 162 * 163 * @param { number } sectionIndex - index of section to be updated. 164 * @param { SectionOptions } section - new section options. 165 * @returns { boolean } Whether the update was successful. 166 * @syscap SystemCapability.ArkUI.ArkUI.Full 167 * @crossplatform 168 * @atomicservice 169 * @since 12 170 */ 171 update(sectionIndex:number, section: SectionOptions): boolean; 172 173 /** 174 * Obtains all the section options in the WaterFlow. 175 * 176 * @returns { Array<SectionOptions> } Returns all the section options in the WaterFlow. 177 * @syscap SystemCapability.ArkUI.ArkUI.Full 178 * @crossplatform 179 * @atomicservice 180 * @since 12 181 */ 182 values(): Array<SectionOptions>; 183 184 /** 185 * Obtains the section counts in the WaterFlow. 186 * 187 * @returns { number } Returns section counts in the WaterFlow. 188 * @syscap SystemCapability.ArkUI.ArkUI.Full 189 * @crossplatform 190 * @atomicservice 191 * @since 12 192 */ 193 length(): number; 194} 195 196/** 197 * Declare layout modes of WaterFlow. 198 * 199 * @enum { number } 200 * @syscap SystemCapability.ArkUI.ArkUI.Full 201 * @crossplatform 202 * @atomicservice 203 * @since 12 204 */ 205declare enum WaterFlowLayoutMode { 206 /** 207 * Top-down Layout mode. Positions of new items depend on items above. 208 * 209 * @syscap SystemCapability.ArkUI.ArkUI.Full 210 * @crossplatform 211 * @atomicservice 212 * @since 12 213 */ 214 ALWAYS_TOP_DOWN = 0, 215 216 /** 217 * Sliding window mode. Only maintains layout information of items currently in viewport. 218 * 219 * @syscap SystemCapability.ArkUI.ArkUI.Full 220 * @crossplatform 221 * @atomicservice 222 * @since 12 223 */ 224 SLIDING_WINDOW = 1, 225} 226 227/** 228 * Defines the water flow options. 229 * 230 * @interface WaterFlowOptions 231 * @syscap SystemCapability.ArkUI.ArkUI.Full 232 * @since 9 233 */ 234/** 235 * Defines the water flow options. 236 * 237 * @interface WaterFlowOptions 238 * @syscap SystemCapability.ArkUI.ArkUI.Full 239 * @crossplatform 240 * @since 10 241 */ 242/** 243 * Defines the water flow options. 244 * 245 * @interface WaterFlowOptions 246 * @syscap SystemCapability.ArkUI.ArkUI.Full 247 * @crossplatform 248 * @atomicservice 249 * @since 11 250 */ 251declare interface WaterFlowOptions { 252 /** 253 * Describes the water flow footer. 254 * 255 * @type { ?CustomBuilder } 256 * @syscap SystemCapability.ArkUI.ArkUI.Full 257 * @since 9 258 */ 259 /** 260 * Describes the water flow footer. 261 * 262 * @type { ?CustomBuilder } 263 * @syscap SystemCapability.ArkUI.ArkUI.Full 264 * @crossplatform 265 * @since 10 266 */ 267 /** 268 * Describes the water flow footer. 269 * 270 * @type { ?CustomBuilder } 271 * @syscap SystemCapability.ArkUI.ArkUI.Full 272 * @crossplatform 273 * @atomicservice 274 * @since 11 275 */ 276 footer?: CustomBuilder; 277 278 /** 279 * Describes the water flow scroller. 280 * 281 * @type { ?Scroller } 282 * @syscap SystemCapability.ArkUI.ArkUI.Full 283 * @since 9 284 */ 285 /** 286 * Describes the water flow scroller. 287 * 288 * @type { ?Scroller } 289 * @syscap SystemCapability.ArkUI.ArkUI.Full 290 * @crossplatform 291 * @since 10 292 */ 293 /** 294 * Describes the water flow scroller. 295 * 296 * @type { ?Scroller } 297 * @syscap SystemCapability.ArkUI.ArkUI.Full 298 * @crossplatform 299 * @atomicservice 300 * @since 11 301 */ 302 scroller?: Scroller; 303 304 /** 305 * Describes the sections with different cross count that compose the water flow. 306 * 307 * @type { ?WaterFlowSections } sections - sections with different cross count 308 * @syscap SystemCapability.ArkUI.ArkUI.Full 309 * @crossplatform 310 * @atomicservice 311 * @since 12 312 */ 313 sections?: WaterFlowSections; 314 315 /** 316 * Describes the layout mode. 317 * 318 * @type { ?WaterFlowLayoutMode } 319 * @syscap SystemCapability.ArkUI.ArkUI.Full 320 * @crossplatform 321 * @atomicservice 322 * @since 12 323 */ 324 layoutMode?: WaterFlowLayoutMode; 325} 326 327/** 328 * Defines the water flow interface. 329 * 330 * @interface WaterFlowInterface 331 * @syscap SystemCapability.ArkUI.ArkUI.Full 332 * @since 9 333 */ 334/** 335 * Defines the water flow interface. 336 * 337 * @interface WaterFlowInterface 338 * @syscap SystemCapability.ArkUI.ArkUI.Full 339 * @crossplatform 340 * @since 10 341 */ 342/** 343 * Defines the water flow interface. 344 * 345 * @interface WaterFlowInterface 346 * @syscap SystemCapability.ArkUI.ArkUI.Full 347 * @crossplatform 348 * @atomicservice 349 * @since 11 350 */ 351interface WaterFlowInterface { 352 /** 353 * WaterFlow is returned when the parameter is transferred. Only support api: scrollToIndex 354 * 355 * @param { WaterFlowOptions } options 356 * @returns { WaterFlowAttribute } 357 * @syscap SystemCapability.ArkUI.ArkUI.Full 358 * @since 9 359 */ 360 /** 361 * WaterFlow is returned when the parameter is transferred. Only support api: scrollToIndex 362 * 363 * @param { WaterFlowOptions } options 364 * @returns { WaterFlowAttribute } 365 * @syscap SystemCapability.ArkUI.ArkUI.Full 366 * @crossplatform 367 * @since 10 368 */ 369 /** 370 * WaterFlow is returned when the parameter is transferred. Only support api: scrollToIndex 371 * 372 * @param { WaterFlowOptions } options 373 * @returns { WaterFlowAttribute } 374 * @syscap SystemCapability.ArkUI.ArkUI.Full 375 * @crossplatform 376 * @atomicservice 377 * @since 11 378 */ 379 (options?: WaterFlowOptions): WaterFlowAttribute; 380} 381 382/** 383 * Defines the water flow attribute. 384 * 385 * @extends CommonMethod<WaterFlowAttribute> 386 * @syscap SystemCapability.ArkUI.ArkUI.Full 387 * @since 9 388 */ 389/** 390 * Defines the water flow attribute. 391 * 392 * @extends CommonMethod<WaterFlowAttribute> 393 * @syscap SystemCapability.ArkUI.ArkUI.Full 394 * @crossplatform 395 * @since 10 396 */ 397/** 398 * Defines the water flow attribute. 399 * 400 * @extends ScrollableCommonMethod<WaterFlowAttribute> 401 * @syscap SystemCapability.ArkUI.ArkUI.Full 402 * @crossplatform 403 * @atomicservice 404 * @since 11 405 */ 406declare class WaterFlowAttribute extends ScrollableCommonMethod<WaterFlowAttribute> { 407 /** 408 * This parameter specifies the number of columns in the current waterflow. 409 * 410 * @param { string } value 411 * @returns { WaterFlowAttribute } 412 * @syscap SystemCapability.ArkUI.ArkUI.Full 413 * @since 9 414 */ 415 /** 416 * This parameter specifies the number of columns in the current waterflow. 417 * 418 * @param { string } value 419 * @returns { WaterFlowAttribute } 420 * @syscap SystemCapability.ArkUI.ArkUI.Full 421 * @crossplatform 422 * @since 10 423 */ 424 /** 425 * This parameter specifies the number of columns in the current waterflow. 426 * 427 * @param { string } value 428 * @returns { WaterFlowAttribute } 429 * @syscap SystemCapability.ArkUI.ArkUI.Full 430 * @crossplatform 431 * @atomicservice 432 * @since 11 433 */ 434 columnsTemplate(value: string): WaterFlowAttribute; 435 436 /** 437 * This parameter specifies the min or max size of each item. 438 * 439 * @param { ConstraintSizeOptions } value 440 * @returns { WaterFlowAttribute } 441 * @syscap SystemCapability.ArkUI.ArkUI.Full 442 * @since 9 443 */ 444 /** 445 * This parameter specifies the min or max size of each item. 446 * 447 * @param { ConstraintSizeOptions } value 448 * @returns { WaterFlowAttribute } 449 * @syscap SystemCapability.ArkUI.ArkUI.Full 450 * @crossplatform 451 * @since 10 452 */ 453 /** 454 * This parameter specifies the min or max size of each item. 455 * 456 * @param { ConstraintSizeOptions } value 457 * @returns { WaterFlowAttribute } 458 * @syscap SystemCapability.ArkUI.ArkUI.Full 459 * @crossplatform 460 * @atomicservice 461 * @since 11 462 */ 463 itemConstraintSize(value: ConstraintSizeOptions): WaterFlowAttribute; 464 465 /** 466 * Set the number of rows in the current waterflow. 467 * 468 * @param { string } value 469 * @returns { WaterFlowAttribute } 470 * @syscap SystemCapability.ArkUI.ArkUI.Full 471 * @since 9 472 */ 473 /** 474 * Set the number of rows in the current waterflow. 475 * 476 * @param { string } value 477 * @returns { WaterFlowAttribute } 478 * @syscap SystemCapability.ArkUI.ArkUI.Full 479 * @crossplatform 480 * @since 10 481 */ 482 /** 483 * Set the number of rows in the current waterflow. 484 * 485 * @param { string } value 486 * @returns { WaterFlowAttribute } 487 * @syscap SystemCapability.ArkUI.ArkUI.Full 488 * @crossplatform 489 * @atomicservice 490 * @since 11 491 */ 492 rowsTemplate(value: string): WaterFlowAttribute; 493 494 /** 495 * Set the spacing between columns. 496 * 497 * @param { Length } value 498 * @returns { WaterFlowAttribute } 499 * @syscap SystemCapability.ArkUI.ArkUI.Full 500 * @since 9 501 */ 502 /** 503 * Set the spacing between columns. 504 * 505 * @param { Length } value 506 * @returns { WaterFlowAttribute } 507 * @syscap SystemCapability.ArkUI.ArkUI.Full 508 * @crossplatform 509 * @since 10 510 */ 511 /** 512 * Set the spacing between columns. 513 * 514 * @param { Length } value 515 * @returns { WaterFlowAttribute } 516 * @syscap SystemCapability.ArkUI.ArkUI.Full 517 * @crossplatform 518 * @atomicservice 519 * @since 11 520 */ 521 columnsGap(value: Length): WaterFlowAttribute; 522 523 /** 524 * Set the spacing between rows. 525 * 526 * @param { Length } value 527 * @returns { WaterFlowAttribute } 528 * @syscap SystemCapability.ArkUI.ArkUI.Full 529 * @since 9 530 */ 531 /** 532 * Set the spacing between rows. 533 * 534 * @param { Length } value 535 * @returns { WaterFlowAttribute } 536 * @syscap SystemCapability.ArkUI.ArkUI.Full 537 * @crossplatform 538 * @since 10 539 */ 540 /** 541 * Set the spacing between rows. 542 * 543 * @param { Length } value 544 * @returns { WaterFlowAttribute } 545 * @syscap SystemCapability.ArkUI.ArkUI.Full 546 * @crossplatform 547 * @atomicservice 548 * @since 11 549 */ 550 rowsGap(value: Length): WaterFlowAttribute; 551 552 /** 553 * Control layout direction of the WaterFlow. 554 * 555 * @param { FlexDirection } value 556 * @returns { WaterFlowAttribute } 557 * @syscap SystemCapability.ArkUI.ArkUI.Full 558 * @since 9 559 */ 560 /** 561 * Control layout direction of the WaterFlow. 562 * 563 * @param { FlexDirection } value 564 * @returns { WaterFlowAttribute } 565 * @syscap SystemCapability.ArkUI.ArkUI.Full 566 * @crossplatform 567 * @since 10 568 */ 569 /** 570 * Control layout direction of the WaterFlow. 571 * 572 * @param { FlexDirection } value 573 * @returns { WaterFlowAttribute } 574 * @syscap SystemCapability.ArkUI.ArkUI.Full 575 * @crossplatform 576 * @atomicservice 577 * @since 11 578 */ 579 layoutDirection(value: FlexDirection): WaterFlowAttribute; 580 581 /** 582 * Called to setting the nested scroll options. 583 * 584 * @param { NestedScrollOptions } value - options for nested scrolling. 585 * @returns { WaterFlowAttribute } the attribute of the water flow. 586 * @syscap SystemCapability.ArkUI.ArkUI.Full 587 * @since 10 588 */ 589 /** 590 * Called to setting the nested scroll options. 591 * 592 * @param { NestedScrollOptions } value - options for nested scrolling. 593 * @returns { WaterFlowAttribute } the attribute of the water flow. 594 * @syscap SystemCapability.ArkUI.ArkUI.Full 595 * @crossplatform 596 * @atomicservice 597 * @since 11 598 */ 599 nestedScroll(value: NestedScrollOptions): WaterFlowAttribute; 600 601 /** 602 * Called when setting whether to enable scroll by gesture or mouse. 603 * @param { boolean } value 604 * @returns { WaterFlowAttribute } The attribute of the waterflow 605 * @syscap SystemCapability.ArkUI.ArkUI.Full 606 * @crossplatform 607 * @since 10 608 */ 609 /** 610 * Called when setting whether to enable scroll by gesture or mouse. 611 * @param { boolean } value 612 * @returns { WaterFlowAttribute } The attribute of the waterflow 613 * @syscap SystemCapability.ArkUI.ArkUI.Full 614 * @crossplatform 615 * @atomicservice 616 * @since 11 617 */ 618 enableScrollInteraction(value: boolean): WaterFlowAttribute; 619 620 /** 621 * Called to setting the friction. 622 * @param { number | Resource } value - options for scrolling friction. 623 * @returns { WaterFlowAttribute } the attribute of the water flow. 624 * @syscap SystemCapability.ArkUI.ArkUI.Full 625 * @crossplatform 626 * @since 10 627 */ 628 /** 629 * Called to setting the friction. 630 * @param { number | Resource } value - options for scrolling friction. 631 * @returns { WaterFlowAttribute } the attribute of the water flow. 632 * @syscap SystemCapability.ArkUI.ArkUI.Full 633 * @crossplatform 634 * @atomicservice 635 * @since 11 636 */ 637 friction(value: number | Resource): WaterFlowAttribute; 638 639 /** 640 * Called to set number of flow items to be preloaded (cached) in LazyForEach. 641 * @param { number } value - number of flow items to be preloaded (cached). 642 * @returns { WaterFlowAttribute } the attribute of the water flow. 643 * @syscap SystemCapability.ArkUI.ArkUI.Full 644 * @crossplatform 645 * @since 11 646 */ 647 /** 648 * Called to set number of flow items to be preloaded (cached) in LazyForEach. 649 * @param { number } value - number of flow items to be preloaded (cached). 650 * @returns { WaterFlowAttribute } the attribute of the water flow. 651 * @syscap SystemCapability.ArkUI.ArkUI.Full 652 * @crossplatform 653 * @atomicservice 654 * @since 12 655 */ 656 cachedCount(value: number): WaterFlowAttribute; 657 658 /** 659 * Called when the water flow begins to arrive. 660 * 661 * @param { function } event 662 * @returns { WaterFlowAttribute } 663 * @syscap SystemCapability.ArkUI.ArkUI.Full 664 * @since 9 665 */ 666 /** 667 * Called when the water flow begins to arrive. 668 * 669 * @param { function } event 670 * @returns { WaterFlowAttribute } 671 * @syscap SystemCapability.ArkUI.ArkUI.Full 672 * @crossplatform 673 * @since 10 674 */ 675 /** 676 * Called when the water flow begins to arrive. 677 * 678 * @param { function } event 679 * @returns { WaterFlowAttribute } 680 * @syscap SystemCapability.ArkUI.ArkUI.Full 681 * @crossplatform 682 * @atomicservice 683 * @since 11 684 */ 685 onReachStart(event: () => void): WaterFlowAttribute; 686 687 /** 688 * Called when the water flow reaches the end. 689 * 690 * @param { function } event 691 * @returns { WaterFlowAttribute } 692 * @syscap SystemCapability.ArkUI.ArkUI.Full 693 * @since 9 694 */ 695 /** 696 * Called when the water flow reaches the end. 697 * 698 * @param { function } event 699 * @returns { WaterFlowAttribute } 700 * @syscap SystemCapability.ArkUI.ArkUI.Full 701 * @crossplatform 702 * @since 10 703 */ 704 /** 705 * Called when the water flow reaches the end. 706 * 707 * @param { function } event 708 * @returns { WaterFlowAttribute } 709 * @syscap SystemCapability.ArkUI.ArkUI.Full 710 * @crossplatform 711 * @atomicservice 712 * @since 11 713 */ 714 onReachEnd(event: () => void): WaterFlowAttribute; 715 716 /** 717 * Called when scrolling begin each frame. 718 * 719 * @param { function } event 720 * @returns { WaterFlowAttribute } the attribute of the water flow. 721 * @syscap SystemCapability.ArkUI.ArkUI.Full 722 * @crossplatform 723 * @since 10 724 */ 725 /** 726 * Called when scrolling begin each frame. 727 * 728 * @param { function } event 729 * @returns { WaterFlowAttribute } the attribute of the water flow. 730 * @syscap SystemCapability.ArkUI.ArkUI.Full 731 * @crossplatform 732 * @atomicservice 733 * @since 11 734 */ 735 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): WaterFlowAttribute; 736 737 /** 738 * Called when the first or last item displayed in the waterflow changes. 739 * 740 * @param { function } event - Callback function, triggered when the first or last item 741 * displayed in the waterflow changes. 742 * "first": the index of the first item displayed in the waterflow, 743 * "last": the index of the last item displayed in the waterflow. 744 * @returns { WaterFlowAttribute } the attribute of the water flow. 745 * @syscap SystemCapability.ArkUI.ArkUI.Full 746 * @crossplatform 747 * @atomicservice 748 * @since 11 749 */ 750 onScrollIndex(event: (first: number, last: number) => void): WaterFlowAttribute; 751} 752 753/** 754 * Defines WaterFlow Component. 755 * 756 * @syscap SystemCapability.ArkUI.ArkUI.Full 757 * @since 9 758 */ 759/** 760 * Defines WaterFlow Component. 761 * 762 * @syscap SystemCapability.ArkUI.ArkUI.Full 763 * @crossplatform 764 * @since 10 765 */ 766/** 767 * Defines WaterFlow Component. 768 * 769 * @syscap SystemCapability.ArkUI.ArkUI.Full 770 * @crossplatform 771 * @atomicservice 772 * @since 11 773 */ 774declare const WaterFlow: WaterFlowInterface; 775 776/** 777 * Defines WaterFlow Component instance. 778 * 779 * @syscap SystemCapability.ArkUI.ArkUI.Full 780 * @since 9 781 */ 782/** 783 * Defines WaterFlow Component instance. 784 * 785 * @syscap SystemCapability.ArkUI.ArkUI.Full 786 * @crossplatform 787 * @since 10 788 */ 789/** 790 * Defines WaterFlow Component instance. 791 * 792 * @syscap SystemCapability.ArkUI.ArkUI.Full 793 * @crossplatform 794 * @atomicservice 795 * @since 11 796 */ 797declare const WaterFlowInstance: WaterFlowAttribute; 798