• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 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 */
15declare type KNode = number | null;
16declare function getUINativeModule(): any;
17declare enum ModifierType {
18    ORIGIN = 0,
19    STATE = 1,
20    FRAME_NODE = 2,
21    EXPOSE_MODIFIER = 3,
22}
23declare class JsPointerClass {
24    invalid(): boolean;
25}
26declare class ArkLogConsole {
27  public static log(...args: Object[]): void;
28  public static debug(...args: Object[]): void;
29  public static info(...args: Object[]): void;
30  public static warn(...args: Object[]): void;
31  public static error(...args: Object[]): void;
32}
33interface Equable {
34    isEqual(value: Equable): boolean;
35}
36declare type AttributeModifierWithKey = ModifierWithKey<number | string | boolean | object>;
37declare class ModifierWithKey<T extends number | string | boolean | object> {
38    stageValue?: T;
39    value?: T;
40    constructor(value: T);
41    applyStage(node: KNode): boolean;
42    applyPeer(node: KNode, reset: boolean): void;
43    checkObjectDiff(): boolean;
44}
45declare class ArkComponent implements CommonMethod<CommonAttribute> {
46    _changed: boolean;
47    _modifiersWithKeys: Map<Symbol, AttributeModifierWithKey>;
48    nativePtr: KNode;
49    _weakPtr: JsPointerClass;
50    _classType: ModifierType | undefined;
51    _nativePtrChanged: boolean;
52    constructor(nativePtr: KNode, classType?: ModifierType);
53    initialize(...args: Object[]);
54    applyModifierPatch(): void;
55    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
56    outline(value: OutlineOptions): this;
57    outlineColor(value: ResourceColor | EdgeColors): this;
58    outlineRadius(value: Dimension | OutlineRadiuses): this;
59    outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this;
60    outlineWidth(value: Dimension | EdgeOutlineWidths): this;
61    width(value: Length): this;
62    height(value: Length): this;
63    expandSafeArea(types?: Array<SafeAreaType>, edges?: Array<SafeAreaEdge>): this;
64    backgroundEffect(options: BackgroundEffectOptions): this;
65    backgroundBrightness(params: BackgroundBrightnessOptions): this;
66    backgroundBrightnessInternal(params: BrightnessOptions): this;
67    foregroundBrightness(params: BrightnessOptions): this;
68    dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this;
69    responseRegion(value: Array<Rectangle> | Rectangle): this;
70    mouseResponseRegion(value: Array<Rectangle> | Rectangle): this;
71    size(value: SizeOptions): this;
72    constraintSize(value: ConstraintSizeOptions): this;
73    touchable(value: boolean): this;
74    hitTestBehavior(value: HitTestMode): this;
75    layoutWeight(value: number | string): this;
76    padding(value: Padding | Length): this;
77    margin(value: Margin | Length): this;
78    background(builder: CustomBuilder, options?: {
79        align?: Alignment;
80    }): this;
81    backgroundColor(value: ResourceColor): this;
82    backgroundImage(src: ResourceStr, repeat?: ImageRepeat): this;
83    backgroundImageSize(value: SizeOptions | ImageSize): this;
84    backgroundImagePosition(value: Position | Alignment): this;
85    backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this;
86    foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this;
87    opacity(value: number | Resource): this;
88    border(value: BorderOptions): this;
89    borderStyle(value: BorderStyle | EdgeStyles): this;
90    borderWidth(value: Length | EdgeWidths): this;
91    borderColor(value: ResourceColor | EdgeColors): this;
92    borderRadius(value: Length | BorderRadiuses): this;
93    borderImage(value: BorderImageOption): this;
94    foregroundColor(value: ResourceColor | ColoringStrategy): this;
95    onClick(event: (event?: ClickEvent) => void): this;
96    onHover(event: (isHover?: boolean, event?: HoverEvent) => void): this;
97    hoverEffect(value: HoverEffect): this;
98    onMouse(event: (event?: MouseEvent) => void): this;
99    onTouch(event: (event?: TouchEvent) => void): this;
100    onKeyEvent(event: (event?: KeyEvent) => void): this;
101    focusable(value: boolean): this;
102    onFocus(event: () => void): this;
103    onBlur(event: () => void): this;
104    tabIndex(index: number): this;
105    defaultFocus(value: boolean): this;
106    groupDefaultFocus(value: boolean): this;
107    focusOnTouch(value: boolean): this;
108    animation(value: AnimateParam): this;
109    transition(value: TransitionOptions | TransitionEffect): this;
110    gesture(gesture: GestureType, mask?: GestureMask): this;
111    priorityGesture(gesture: GestureType, mask?: GestureMask): this;
112    parallelGesture(gesture: GestureType, mask?: GestureMask): this;
113    blur(value: number): this;
114    linearGradientBlur(value: number, options: LinearGradientBlurOptions): this;
115    brightness(value: number): this;
116    contrast(value: number): this;
117    grayscale(value: number): this;
118    colorBlend(value: Color | string | Resource): this;
119    saturate(value: number): this;
120    sepia(value: number): this;
121    invert(value: number): this;
122    hueRotate(value: number | string): this;
123    useEffect(value: boolean): this;
124    backdropBlur(value: number): this;
125    renderGroup(value: boolean): this;
126    translate(value: TranslateOptions): this;
127    scale(value: ScaleOptions): this;
128    gridSpan(value: number): this;
129    gridOffset(value: number): this;
130    rotate(value: RotateOptions): this;
131    transform(value: object): this;
132    onAppear(event: () => void): this;
133    onDisAppear(event: () => void): this;
134    onAreaChange(event: (oldValue: Area, newValue: Area) => void): this;
135    visibility(value: Visibility): this;
136    flexGrow(value: number): this;
137    flexShrink(value: number): this;
138    flexBasis(value: number | string): this;
139    alignSelf(value: ItemAlign): this;
140    displayPriority(value: number): this;
141    zIndex(value: number): this;
142    sharedTransition(id: string, options?: sharedTransitionOptions): this;
143    direction(value: Direction): this;
144    align(value: Alignment): this;
145    position(value: Position): this;
146    markAnchor(value: Position): this;
147    offset(value: Position): this;
148    enabled(value: boolean): this;
149    useShadowBatching(value: boolean): this;
150    monopolizeEvents(value: boolean): this;
151    useSizeType(value: {
152        xs?: number | {
153            span: number;
154            offset: number;
155        };
156        sm?: number | {
157            span: number;
158            offset: number;
159        };
160        md?: number | {
161            span: number;
162            offset: number;
163        };
164        lg?: number | {
165            span: number;
166            offset: number;
167        };
168    }): this;
169    alignRules(value: AlignRuleOption): this;
170    aspectRatio(value: number): this;
171    clickEffect(value: ClickEffect | null): this;
172    onDragStart(event: (event?: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): this;
173    onDragEnter(event: (event?: DragEvent, extraParams?: string) => void): this;
174    onDragMove(event: (event?: DragEvent, extraParams?: string) => void): this;
175    onDragLeave(event: (event?: DragEvent, extraParams?: string) => void): this;
176    onDrop(event: (event?: DragEvent, extraParams?: string) => void): this;
177    onDragEnd(event: (event: DragEvent, extraParams?: string) => void): this;
178    onPreDrag(event: (preDragStatus: PreDragStatus) => void): this;
179    allowDrop(value: Array<UniformDataType>): this;
180    draggable(value: boolean): this;
181    dragPreview(value: CustomBuilder | DragItemInfo | string): this;
182    overlay(value: string | CustomBuilder, options?: {
183        align?: Alignment;
184        offset?: {
185            x?: number;
186            y?: number;
187        };
188    }): this;
189    linearGradient(value: {
190        angle?: number | string;
191        direction?: GradientDirection;
192        colors: Array<any>;
193        repeating?: boolean;
194    }): this;
195    sweepGradient(value: {
196        center: Array<any>;
197        start?: number | string;
198        end?: number | string;
199        rotation?: number | string;
200        colors: Array<any>;
201        repeating?: boolean;
202    }): this;
203    radialGradient(value: {
204        center: Array<any>;
205        radius: number | string;
206        colors: Array<any>;
207        repeating?: boolean;
208    }): this;
209    motionPath(value: MotionPathOptions): this;
210    shadow(value: ShadowOptions | ShadowStyle): this;
211    mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this;
212    key(value: string): this;
213    id(value: string): this;
214    geometryTransition(id: string): this;
215    bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this;
216    bindMenu(content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): this;
217    bindContextMenu(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): this;
218    bindContentCover(isShow: boolean, builder: CustomBuilder, type?: ModalTransition | ContentCoverOptions): this;
219    blendMode(blendMode: BlendMode, blendApplyType?: BlendApplyType): this;
220    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
221    bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): this;
222    stateStyles(value: StateStyles): this;
223    restoreId(value: number): this;
224    onVisibleAreaChange(ratios: Array<number>, event: (isVisible: boolean, currentRatio: number) => void): this;
225    sphericalEffect(value: number): this;
226    lightUpEffect(value: number): this;
227    pixelStretchEffect(options: PixelStretchEffectOptions): this;
228    keyboardShortcut(value: string | FunctionKey, keys: Array<ModifierKey>, action?: () => void): this;
229    accessibilityGroup(value: boolean): this;
230    accessibilityText(value: string | Resource): this;
231    accessibilityDescription(value: string | Resource): this;
232    accessibilityLevel(value: string): this;
233    obscured(reasons: Array<ObscuredReasons>): this;
234    reuseId(id: string): this;
235    renderFit(fitMode: RenderFit): this;
236    attributeModifier(modifier: AttributeModifier<CommonAttribute>): this;
237    systemBarEffect(value: null): this;
238}
239declare class ArkBlankComponent extends ArkComponent implements CommonMethod<BlankAttribute> {
240    constructor(nativePtr: KNode, classType?: ModifierType);
241    color(value: ResourceColor): BlankAttribute;
242    height(value: Length): this;
243}
244declare class ArkColumnComponent extends ArkComponent implements CommonMethod<ColumnAttribute> {
245    constructor(nativePtr: KNode, classType?: ModifierType);
246    alignItems(value: HorizontalAlign): ColumnAttribute;
247    justifyContent(value: FlexAlign): ColumnAttribute;
248    pointLight(value: PointLightStyle): ColumnAttribute;
249}
250declare class ArkColumnSplitComponent extends ArkComponent implements CommonMethod<ColumnSplitAttribute> {
251    constructor(nativePtr: KNode, classType?: ModifierType);
252    resizeable(value: boolean): ColumnSplitAttribute;
253    divider(value: ColumnSplitDividerStyle | null): ColumnSplitAttribute;
254    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
255}
256declare class ArkDividerComponent extends ArkComponent implements DividerAttribute {
257    constructor(nativePtr: KNode, classType?: ModifierType);
258    vertical(value: boolean): DividerAttribute;
259    color(value: ResourceColor): DividerAttribute;
260    strokeWidth(value: number | string): DividerAttribute;
261    lineCap(value: LineCapStyle): DividerAttribute;
262}
263declare class ArkFlexComponent extends ArkComponent implements FlexAttribute {
264    constructor(nativePtr: KNode, classType?: ModifierType);
265    pointLight(value: PointLightStyle): this;
266}
267declare class ArkGridRowComponent extends ArkComponent implements CommonMethod<GridRowAttribute> {
268    constructor(nativePtr: KNode, classType?: ModifierType);
269    onBreakpointChange(callback: (breakpoints: string) => void): GridRowAttribute;
270    alignItems(value: ItemAlign): GridRowAttribute;
271}
272declare class ArkGridComponent extends ArkComponent implements GridAttribute {
273    constructor(nativePtr: KNode, classType?: ModifierType);
274    columnsTemplate(value: string): this;
275    rowsTemplate(value: string): this;
276    columnsGap(value: Length): this;
277    rowsGap(value: Length): this;
278    scrollBarWidth(value: string | number): this;
279    scrollBarColor(value: string | number | Color): this;
280    scrollBar(value: BarState): this;
281    onScrollBarUpdate(event: (index: number, offset: number) => ComputedBarAttribute): this;
282    onScrollIndex(event: (first: number, last: number) => void): this;
283    cachedCount(value: number): this;
284    editMode(value: boolean): this;
285    multiSelectable(value: boolean): this;
286    maxCount(value: number): this;
287    minCount(value: number): this;
288    cellLength(value: number): this;
289    layoutDirection(value: GridDirection): this;
290    supportAnimation(value: boolean): this;
291    onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => void | (() => any)): this;
292    onItemDragEnter(event: (event: ItemDragInfo) => void): this;
293    onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void): this;
294    onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void): this;
295    onItemDrop(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void): this;
296    edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions | undefined): this;
297    nestedScroll(value: NestedScrollOptions): this;
298    enableScrollInteraction(value: boolean): this;
299    friction(value: number | Resource): this;
300    onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): this;
301    onReachStart(event: () => void): this;
302    onReachEnd(event: () => void): this;
303    onScrollStart(event: () => void): this;
304    onScrollStop(event: () => void): this;
305    onScrollFrameBegin(event: (offset: number, state: ScrollState) => {
306        offsetRemain: number;
307    }): this;
308    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
309    flingSpeedLimit(value: number): this;
310    alignItems(value: GridItemAlignment): this;
311}
312declare class ArkGridColComponent extends ArkComponent implements GridColAttribute {
313    constructor(nativePtr: KNode, classType?: ModifierType);
314    span(value: number | GridColColumnOption): GridColAttribute;
315    gridColOffset(value: number | GridColColumnOption): GridColAttribute;
316    order(value: number | GridColColumnOption): GridColAttribute;
317}
318declare class ImageColorFilterModifier extends ModifierWithKey<ColorFilter | DrawingColorFilter> {
319    constructor(value: ColorFilter);
320    static identity: Symbol;
321    applyPeer(node: KNode, reset: boolean): void;
322    checkObjectDiff(): boolean;
323}
324declare class ArkImageComponent extends ArkComponent implements ImageAttribute {
325    constructor(nativePtr: KNode, classType?: ModifierType);
326    onGestureJudgeBegin(callback: any): this;
327    draggable(value: boolean): this;
328    edgeAntialiasing(value: number): this;
329    alt(value: ResourceStr): this;
330    matchTextDirection(value: boolean): this;
331    fitOriginalSize(value: boolean): this;
332    fillColor(value: ResourceColor): this;
333    objectFit(value: ImageFit): this;
334    objectRepeat(value: ImageRepeat): this;
335    autoResize(value: boolean): this;
336    renderMode(value: ImageRenderMode): this;
337    interpolation(value: ImageInterpolation): this;
338    sourceSize(value: {
339        width: number;
340        height: number;
341    }): this;
342    syncLoad(value: boolean): this;
343    colorFilter(value: ColorFilter): this;
344    copyOption(value: CopyOptions): this;
345    borderRadius(value: Length | BorderRadiuses): this;
346    onComplete(callback: (event?: {
347        width: number;
348        height: number;
349        componentWidth: number;
350        componentHeight: number;
351        loadingStatus: number;
352        contentWidth: number;
353        contentHeight: number;
354        contentOffsetX: number;
355        contentOffsetY: number;
356    }) => void): this;
357    onError(callback: (event: {
358        componentWidth: number;
359        componentHeight: number;
360        message: string;
361    }) => void): this;
362    onFinish(event: () => void): this;
363    border(value: BorderOptions): this;
364    opacity(value: number | Resource): this;
365    transition(value: TransitionOptions | TransitionEffect): this;
366}
367declare class ImageAnimatorImagesModifier extends ModifierWithKey<Array<ImageFrameInfo>> {
368    constructor(value: Array<ImageFrameInfo>);
369    static identity: Symbol;
370    applyPeer(node: KNode, reset: boolean): void;
371    checkObjectDiff(): boolean;
372    isEqual(one: ImageFrameInfo, another: ImageFrameInfo): boolean;
373    convertImageFrames(value: Array<ImageFrameInfo>): ArkImageFrameInfoToArray;
374}
375declare class ArkImageAnimatorComponent extends ArkComponent implements CommonMethod<ImageAnimatorAttribute> {
376    constructor(nativePtr: KNode, classType?: ModifierType);
377    images(value: Array<ImageFrameInfo>): ImageAnimatorAttribute;
378    state(value: AnimationStatus): ImageAnimatorAttribute;
379    duration(value: number): ImageAnimatorAttribute;
380    reverse(value: boolean): ImageAnimatorAttribute;
381    fixedSize(value: boolean): ImageAnimatorAttribute;
382    preDecode(value: number): ImageAnimatorAttribute;
383    fillMode(value: FillMode): ImageAnimatorAttribute;
384    iterations(value: number): ImageAnimatorAttribute;
385    onStart(event: () => void): ImageAnimatorAttribute;
386    onPause(event: () => void): ImageAnimatorAttribute;
387    onRepeat(event: () => void): ImageAnimatorAttribute;
388    onCancel(event: () => void): ImageAnimatorAttribute;
389    onFinish(event: () => void): ImageAnimatorAttribute;
390}
391declare class ArkImageSpanComponent extends ArkComponent implements ImageSpanAttribute {
392    constructor(nativePtr: KNode, classType?: ModifierType);
393    objectFit(value: ImageFit): ImageSpanAttribute;
394    verticalAlign(value: ImageSpanAlignment): ImageSpanAttribute;
395    onComplete(callback: (event?: {
396        width: number;
397        height: number;
398        componentWidth: number;
399        componentHeight: number;
400        loadingStatus: number;
401        contentWidth: number;
402        contentHeight: number;
403        contentOffsetX: number;
404        contentOffsetY: number;
405    }) => void): ImageSpanAttribute;
406    onError(callback: (event: {
407        componentWidth: number;
408        componentHeight: number;
409        message: string;
410    }) => void): ImageSpanAttribute;
411}
412declare class ArkPatternLockComponent extends ArkComponent implements PatternLockAttribute {
413    constructor(nativePtr: KNode, classType?: ModifierType);
414    sideLength(value: Length): PatternLockAttribute;
415    circleRadius(value: Length): PatternLockAttribute;
416    regularColor(value: ResourceColor): PatternLockAttribute;
417    selectedColor(value: ResourceColor): PatternLockAttribute;
418    activeColor(value: ResourceColor): PatternLockAttribute;
419    pathColor(value: ResourceColor): PatternLockAttribute;
420    pathStrokeWidth(value: number | string): PatternLockAttribute;
421    autoReset(value: boolean): PatternLockAttribute;
422    onPatternComplete(callback: (input: Array<number>) => void): PatternLockAttribute;
423    onDotConnect(callback: any): PatternLockAttribute;
424}
425declare class ArkRichEditorComponent extends ArkComponent implements CommonMethod<RichEditorAttribute> {
426    constructor(nativePtr: KNode, classType?: ModifierType);
427    enableDataDetector(enable: boolean): RichEditorAttribute;
428    dataDetectorConfig(config: any): RichEditorAttribute;
429    copyOptions(value: CopyOptions): RichEditorAttribute;
430    onPaste(callback: (event?: PasteEvent) => void): RichEditorAttribute;
431    onReady(callback: () => void): RichEditorAttribute;
432    onSelect(callback: (value: RichEditorSelection) => void): RichEditorAttribute;
433    aboutToIMEInput(callback: (value: RichEditorInsertValue) => boolean): RichEditorAttribute;
434    onIMEInputComplete(callback: (value: RichEditorTextSpanResult) => void): RichEditorAttribute;
435    aboutToDelete(callback: (value: RichEditorDeleteValue) => boolean): RichEditorAttribute;
436    onDeleteComplete(callback: () => void): RichEditorAttribute;
437    bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType, options?: SelectionMenuOptions): RichEditorAttribute;
438    customKeyboard(value: CustomBuilder): RichEditorAttribute;
439}
440declare class ArkRowComponent extends ArkComponent implements RowAttribute {
441    constructor(nativePtr: KNode, classType?: ModifierType);
442    alignItems(value: VerticalAlign): RowAttribute;
443    justifyContent(value: FlexAlign): RowAttribute;
444    pointLight(value: PointLightStyle): RowAttribute;
445}
446declare class ArkRowSplitComponent extends ArkComponent implements RowSplitAttribute {
447    constructor(nativePtr: KNode, classType?: ModifierType);
448    resizeable(value: boolean): RowSplitAttribute;
449    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
450}
451declare class ArkSearchComponent extends ArkComponent implements CommonMethod<SearchAttribute> {
452    constructor(nativePtr: KNode, classType?: ModifierType);
453    onEditChange(callback: (isEditing: boolean) => void): SearchAttribute;
454    type(value: SearchType): SearchAttribute;
455    maxLength(value: number): SearchAttribute;
456    onEditChanged(callback: (isEditing: boolean) => void): SearchAttribute;
457    customKeyboard(event: () => void): SearchAttribute;
458    showUnit(event: () => void): SearchAttribute;
459    onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): SearchAttribute;
460    onChange(callback: (value: string) => void): SearchAttribute;
461    onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): SearchAttribute;
462    onCopy(callback: (value: string) => void): SearchAttribute;
463    onCut(callback: (value: string) => void): SearchAttribute;
464    onSubmit(callback: (value: string) => void): SearchAttribute;
465    onPaste(callback: (value: string) => void): SearchAttribute;
466    showCounter(value: boolean): SearchAttribute;
467    searchButton(value: string, option?: SearchButtonOptions): SearchAttribute;
468    selectionMenuHidden(value: boolean): SearchAttribute;
469    enableKeyboardOnFocus(value: boolean): SearchAttribute;
470    caretStyle(value: CaretStyle): SearchAttribute;
471    cancelButton(value: {
472        style?: CancelButtonStyle;
473        icon?: IconOptions;
474    }): SearchAttribute;
475    searchIcon(value: IconOptions): SearchAttribute;
476    fontColor(value: ResourceColor): SearchAttribute;
477    placeholderColor(value: ResourceColor): SearchAttribute;
478    placeholderFont(value?: Font): SearchAttribute;
479    textFont(value?: Font): SearchAttribute;
480    copyOption(value: CopyOptions): SearchAttribute;
481    textAlign(value: TextAlign): SearchAttribute;
482    height(value: Length): this;
483}
484declare class ArkSpanComponent implements CommonMethod<SpanAttribute> {
485    _changed: boolean;
486    _modifiersWithKeys: Map<Symbol, AttributeModifierWithKey>;
487    nativePtr: KNode;
488    _weakPtr: JsPointerClass;
489    _classType: ModifierType | undefined;
490    _nativePtrChanged: boolean;
491    constructor(nativePtr: KNode, classType?: ModifierType);
492    applyModifierPatch(): void;
493    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
494    outline(value: OutlineOptions): this;
495    outlineColor(value: ResourceColor | EdgeColors): this;
496    outlineRadius(value: Dimension | OutlineRadiuses): this;
497    outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this;
498    outlineWidth(value: Dimension | EdgeOutlineWidths): this;
499    width(value: Length): this;
500    height(value: Length): this;
501    expandSafeArea(types?: Array<SafeAreaType>, edges?: Array<SafeAreaEdge>): this;
502    responseRegion(value: Array<Rectangle> | Rectangle): this;
503    mouseResponseRegion(value: Array<Rectangle> | Rectangle): this;
504    size(value: SizeOptions): this;
505    constraintSize(value: ConstraintSizeOptions): this;
506    touchable(value: boolean): this;
507    hitTestBehavior(value: HitTestMode): this;
508    layoutWeight(value: number | string): this;
509    padding(value: Padding | Length): this;
510    margin(value: Margin | Length): this;
511    background(builder: CustomBuilder, options?: {
512        align?: Alignment;
513    }): this;
514    backgroundColor(value: ResourceColor): this;
515    backgroundImage(src: ResourceStr, repeat?: ImageRepeat): this;
516    backgroundImageSize(value: SizeOptions | ImageSize): this;
517    backgroundImagePosition(value: Position | Alignment): this;
518    backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this;
519    foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this;
520    opacity(value: number | Resource): this;
521    border(value: BorderOptions): this;
522    borderStyle(value: BorderStyle | EdgeStyles): this;
523    borderWidth(value: Length | EdgeWidths): this;
524    borderColor(value: ResourceColor | EdgeColors): this;
525    borderRadius(value: Length | BorderRadiuses): this;
526    borderImage(value: BorderImageOption): this;
527    foregroundColor(value: ResourceColor | ColoringStrategy): this;
528    onClick(event: (event?: ClickEvent) => void): this;
529    onHover(event: (isHover?: boolean, event?: HoverEvent) => void): this;
530    hoverEffect(value: HoverEffect): this;
531    onMouse(event: (event?: MouseEvent) => void): this;
532    onTouch(event: (event?: TouchEvent) => void): this;
533    onKeyEvent(event: (event?: KeyEvent) => void): this;
534    focusable(value: boolean): this;
535    onFocus(event: () => void): this;
536    onBlur(event: () => void): this;
537    tabIndex(index: number): this;
538    defaultFocus(value: boolean): this;
539    groupDefaultFocus(value: boolean): this;
540    focusOnTouch(value: boolean): this;
541    animation(value: AnimateParam): this;
542    transition(value: TransitionOptions | TransitionEffect): this;
543    gesture(gesture: GestureType, mask?: GestureMask): this;
544    priorityGesture(gesture: GestureType, mask?: GestureMask): this;
545    parallelGesture(gesture: GestureType, mask?: GestureMask): this;
546    blur(value: number): this;
547    linearGradientBlur(value: number, options: LinearGradientBlurOptions): this;
548    brightness(value: number): this;
549    contrast(value: number): this;
550    grayscale(value: number): this;
551    colorBlend(value: Color | string | Resource): this;
552    saturate(value: number): this;
553    sepia(value: number): this;
554    invert(value: number): this;
555    hueRotate(value: number | string): this;
556    useEffect(value: boolean): this;
557    backdropBlur(value: number): this;
558    renderGroup(value: boolean): this;
559    translate(value: TranslateOptions): this;
560    scale(value: ScaleOptions): this;
561    gridSpan(value: number): this;
562    gridOffset(value: number): this;
563    rotate(value: RotateOptions): this;
564    transform(value: object): this;
565    onAppear(event: () => void): this;
566    onDisAppear(event: () => void): this;
567    onAreaChange(event: (oldValue: Area, newValue: Area) => void): this;
568    visibility(value: Visibility): this;
569    flexGrow(value: number): this;
570    flexShrink(value: number): this;
571    flexBasis(value: number | string): this;
572    alignSelf(value: ItemAlign): this;
573    displayPriority(value: number): this;
574    zIndex(value: number): this;
575    sharedTransition(id: string, options?: sharedTransitionOptions): this;
576    direction(value: Direction): this;
577    align(value: Alignment): this;
578    position(value: Position): this;
579    markAnchor(value: Position): this;
580    offset(value: Position): this;
581    enabled(value: boolean): this;
582    useSizeType(value: {
583        xs?: number | {
584            span: number;
585            offset: number;
586        };
587        sm?: number | {
588            span: number;
589            offset: number;
590        };
591        md?: number | {
592            span: number;
593            offset: number;
594        };
595        lg?: number | {
596            span: number;
597            offset: number;
598        };
599    }): this;
600    alignRules(value: AlignRuleOption): this;
601    aspectRatio(value: number): this;
602    clickEffect(value: ClickEffect | null): this;
603    onDragStart(event: (event?: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): this;
604    onDragEnter(event: (event?: DragEvent, extraParams?: string) => void): this;
605    onDragMove(event: (event?: DragEvent, extraParams?: string) => void): this;
606    onDragLeave(event: (event?: DragEvent, extraParams?: string) => void): this;
607    onDrop(event: (event?: DragEvent, extraParams?: string) => void): this;
608    onDragEnd(event: (event: DragEvent, extraParams?: string) => void): this;
609    allowDrop(value: Array<UniformDataType>): this;
610    draggable(value: boolean): this;
611    overlay(value: string | CustomBuilder, options?: {
612        align?: Alignment;
613        offset?: {
614            x?: number;
615            y?: number;
616        };
617    }): this;
618    linearGradient(value: {
619        angle?: number | string;
620        direction?: GradientDirection;
621        colors: Array<any>;
622        repeating?: boolean;
623    }): this;
624    sweepGradient(value: {
625        center: Array<any>;
626        start?: number | string;
627        end?: number | string;
628        rotation?: number | string;
629        colors: Array<any>;
630        repeating?: boolean;
631    }): this;
632    radialGradient(value: {
633        center: Array<any>;
634        radius: number | string;
635        colors: Array<any>;
636        repeating?: boolean;
637    }): this;
638    motionPath(value: MotionPathOptions): this;
639    shadow(value: ShadowOptions | ShadowStyle): this;
640    mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this;
641    key(value: string): this;
642    id(value: string): this;
643    geometryTransition(id: string): this;
644    bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this;
645    bindMenu(content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): this;
646    bindContextMenu(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): this;
647    bindContentCover(isShow: boolean, builder: CustomBuilder, type?: ModalTransition | ContentCoverOptions): this;
648    blendMode(value: BlendMode): this;
649    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
650    bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): this;
651    stateStyles(value: StateStyles): this;
652    restoreId(value: number): this;
653    onVisibleAreaChange(ratios: Array<number>, event: (isVisible: boolean, currentRatio: number) => void): this;
654    sphericalEffect(value: number): this;
655    lightUpEffect(value: number): this;
656    pixelStretchEffect(options: PixelStretchEffectOptions): this;
657    keyboardShortcut(value: string | FunctionKey, keys: Array<ModifierKey>, action?: () => void): this;
658    accessibilityGroup(value: boolean): this;
659    accessibilityText(value: string | Resource): this;
660    accessibilityDescription(value: string | Resource): this;
661    accessibilityLevel(value: string): this;
662    obscured(reasons: Array<ObscuredReasons>): this;
663    reuseId(id: string): this;
664    renderFit(fitMode: RenderFit): this;
665    attributeModifier(modifier: AttributeModifier<CommonAttribute>): this;
666    decoration(value: {
667        type: TextDecorationType;
668        color?: ResourceColor;
669    }): SpanAttribute;
670    font(value: Font): SpanAttribute;
671    lineHeight(value: Length): SpanAttribute;
672    fontSize(value: Length): SpanAttribute;
673    fontColor(value: ResourceColor): SpanAttribute;
674    fontStyle(value: FontStyle): SpanAttribute;
675    fontWeight(value: number | FontWeight | string): SpanAttribute;
676    fontFamily(value: string | Resource): SpanAttribute;
677    letterSpacing(value: number | string): SpanAttribute;
678    textCase(value: TextCase): SpanAttribute;
679}
680declare class ArkSideBarContainerComponent extends ArkComponent implements SideBarContainerAttribute {
681    constructor(nativePtr: KNode, classType?: ModifierType);
682    onChange(callback: (value: boolean) => void): SideBarContainerAttribute;
683    autoHide(value: boolean): SideBarContainerAttribute;
684    showSideBar(value: boolean): SideBarContainerAttribute;
685    maxSideBarWidth(value: number | Length): SideBarContainerAttribute;
686    minSideBarWidth(value: number | Length): SideBarContainerAttribute;
687    minContentWidth(value: Dimension): SideBarContainerAttribute;
688    controlButton(value: ButtonStyle): SideBarContainerAttribute;
689    divider(value: DividerStyle | null): SideBarContainerAttribute;
690    sideBarPosition(value: SideBarPosition): SideBarContainerAttribute;
691    sideBarWidth(value: number | Length): SideBarContainerAttribute;
692    showControlButton(value: boolean): SideBarContainerAttribute;
693}
694declare class ArkStackComponent extends ArkComponent implements StackAttribute {
695    constructor(nativePtr: KNode, classType?: ModifierType);
696    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
697    alignContent(value: Alignment): StackAttribute;
698    align(value: Alignment): this;
699}
700declare class ArkTextComponent extends ArkComponent implements TextAttribute {
701    constructor(nativePtr: KNode, classType?: ModifierType);
702    enableDataDetector(enable: boolean): this;
703    dataDetectorConfig(config: any): this;
704    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
705    font(value: Font): TextAttribute;
706    fontColor(value: ResourceColor): TextAttribute;
707    fontSize(value: any): TextAttribute;
708    minFontSize(value: number | string | Resource): TextAttribute;
709    maxFontSize(value: number | string | Resource): TextAttribute;
710    fontStyle(value: FontStyle): TextAttribute;
711    fontWeight(value: number | FontWeight | string): TextAttribute;
712    textAlign(value: TextAlign): TextAttribute;
713    lineHeight(value: number | string | Resource): TextAttribute;
714    textOverflow(value: {
715        overflow: TextOverflow;
716    }): TextAttribute;
717    fontFamily(value: string | Resource): TextAttribute;
718    maxLines(value: number): TextAttribute;
719    decoration(value: {
720        type: TextDecorationType;
721        color?: ResourceColor;
722    }): TextAttribute;
723    letterSpacing(value: number | string): TextAttribute;
724    lineSpacing(value: LengthMetrics): TextAttribute;
725    textCase(value: TextCase): TextAttribute;
726    baselineOffset(value: number | string): TextAttribute;
727    copyOption(value: CopyOptions): TextAttribute;
728    draggable(value: boolean): this;
729    textShadow(value: ShadowOptions | Array<ShadowOptions>): TextAttribute;
730    heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAttribute;
731    textIndent(value: Length): TextAttribute;
732    wordBreak(value: WordBreak): TextAttribute;
733    lineBreakStrategy(value: LineBreakStrategy): TextAttribute;
734    onCopy(callback: (value: string) => void): TextAttribute;
735    selection(selectionStart: number, selectionEnd: number): TextAttribute;
736    textSelectable(value: TextSelectableMode): TextAttribute;
737    ellipsisMode(value: EllipsisMode): TextAttribute;
738    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
739}
740declare class ArkTextAreaComponent extends ArkComponent implements CommonMethod<TextAreaAttribute> {
741    constructor(nativePtr: KNode, classType?: ModifierType);
742    type(value: TextAreaType): TextAreaAttribute;
743    placeholderColor(value: ResourceColor): TextAreaAttribute;
744    placeholderFont(value: Font): TextAreaAttribute;
745    textAlign(value: TextAlign): TextAreaAttribute;
746    caretColor(value: ResourceColor): TextAreaAttribute;
747    fontColor(value: ResourceColor): TextAreaAttribute;
748    fontSize(value: Length): TextAreaAttribute;
749    fontStyle(value: FontStyle): TextAreaAttribute;
750    fontWeight(value: number | FontWeight | string): TextAreaAttribute;
751    fontFamily(value: ResourceStr): TextAreaAttribute;
752    inputFilter(value: ResourceStr, error?: (value: string) => void): TextAreaAttribute;
753    onChange(callback: (value: string) => void): TextAreaAttribute;
754    onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextAreaAttribute;
755    onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): TextAreaAttribute;
756    onEditChange(callback: (isEditing: boolean) => void): TextAreaAttribute;
757    onCopy(callback: (value: string) => void): TextAreaAttribute;
758    onCut(callback: (value: string) => void): TextAreaAttribute;
759    onPaste(callback: (value: string) => void): TextAreaAttribute;
760    copyOption(value: CopyOptions): TextAreaAttribute;
761    enableKeyboardOnFocus(value: boolean): TextAreaAttribute;
762    maxLength(value: number): TextAreaAttribute;
763    showCounter(value: boolean, options?: InputCounterOptions): TextAreaAttribute;
764    style(value: TextContentStyle): TextAreaAttribute;
765    barState(value: BarState): TextAreaAttribute;
766    selectionMenuHidden(value: boolean): TextAreaAttribute;
767    maxLines(value: number): TextAreaAttribute;
768    customKeyboard(value: CustomBuilder): TextAreaAttribute;
769}
770declare class ArkTextInputComponent extends ArkComponent implements CommonMethod<TextInputAttribute> {
771    constructor(nativePtr: KNode, classType?: ModifierType);
772    cancelButton(value: {
773        style?: CancelButtonStyle;
774        icon?: IconOptions;
775    }): TextInputAttribute;
776    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
777    selectAll(value: boolean): TextInputAttribute;
778    enableAutoFill(value: boolean): TextInputAttribute;
779    passwordRules(value: string): TextInputAttribute;
780    showCounter(value: boolean): TextInputAttribute;
781    type(value: InputType): TextInputAttribute;
782    placeholderColor(value: ResourceColor): TextInputAttribute;
783    placeholderFont(value?: Font): TextInputAttribute;
784    enterKeyType(value: EnterKeyType): TextInputAttribute;
785    caretColor(value: ResourceColor): TextInputAttribute;
786    onEditChanged(callback: (isEditing: boolean) => void): TextInputAttribute;
787    onEditChange(callback: (isEditing: boolean) => void): TextInputAttribute;
788    onSubmit(callback: (enterKey: EnterKeyType) => void): TextInputAttribute;
789    onChange(callback: (value: string) => void): TextInputAttribute;
790    onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextInputAttribute;
791    onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): TextInputAttribute;
792    maxLength(value: number): TextInputAttribute;
793    fontColor(value: ResourceColor): TextInputAttribute;
794    fontSize(value: Length): TextInputAttribute;
795    fontStyle(value: FontStyle): TextInputAttribute;
796    fontWeight(value: number | FontWeight | string): TextInputAttribute;
797    fontFamily(value: ResourceStr): TextInputAttribute;
798    inputFilter(value: ResourceStr, error?: (value: string) => void): TextInputAttribute;
799    onCopy(callback: (value: string) => void): TextInputAttribute;
800    onCut(callback: (value: string) => void): TextInputAttribute;
801    onPaste(callback: (value: string) => void): TextInputAttribute;
802    copyOption(value: CopyOptions): TextInputAttribute;
803    showPasswordIcon(value: boolean): TextInputAttribute;
804    textAlign(value: TextAlign): TextInputAttribute;
805    style(value: TextInputStyle | TextContentStyle): TextInputAttribute;
806    caretStyle(value: CaretStyle): this;
807    selectedBackgroundColor(value: ResourceColor): TextInputAttribute;
808    caretPosition(value: number): TextInputAttribute;
809    enableKeyboardOnFocus(value: boolean): TextInputAttribute;
810    passwordIcon(value: PasswordIcon): TextInputAttribute;
811    showError(value: string | undefined): TextInputAttribute;
812    showUnit(event: () => void): TextInputAttribute;
813    showUnderline(value: boolean): TextInputAttribute;
814    selectionMenuHidden(value: boolean): TextInputAttribute;
815    barState(value: BarState): TextInputAttribute;
816    maxLines(value: number): TextInputAttribute;
817    customKeyboard(event: () => void): TextInputAttribute;
818}
819declare class ArkVideoComponent extends ArkComponent implements CommonMethod<VideoAttribute> {
820    constructor(nativePtr: KNode, classType?: ModifierType);
821    muted(value: boolean): VideoAttribute;
822    autoPlay(value: boolean): VideoAttribute;
823    controls(value: boolean): VideoAttribute;
824    loop(value: boolean): VideoAttribute;
825    objectFit(value: ImageFit): VideoAttribute;
826    onStart(callback: () => void): VideoAttribute;
827    onPause(callback: () => void): VideoAttribute;
828    onFinish(event: () => void): VideoAttribute;
829    onFullscreenChange(callback: (event: {
830        fullscreen: boolean;
831    }) => void): VideoAttribute;
832    onPrepared(callback: (event: {
833        duration: number;
834    }) => void): VideoAttribute;
835    onSeeking(callback: (event: {
836        time: number;
837    }) => void): VideoAttribute;
838    onSeeked(callback: (event: {
839        time: number;
840    }) => void): VideoAttribute;
841    onUpdate(callback: (event: {
842        time: number;
843    }) => void): VideoAttribute;
844    onError(callback: () => void): VideoAttribute;
845}
846declare class ArkImageFrameInfoToArray {
847    arrSrc: Array<string> | undefined;
848    arrWidth: Array<number | string> | undefined;
849    arrHeight: Array<number | string> | undefined;
850    arrTop: Array<number | string> | undefined;
851    arrLeft: Array<number | string> | undefined;
852    arrDuration: Array<number> | undefined;
853    constructor();
854    isEqual(another: ArkImageFrameInfoToArray): boolean;
855}
856declare class ArkButtonComponent extends ArkComponent implements ButtonAttribute {
857    constructor(nativePtr: KNode, classType?: ModifierType);
858    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
859    backgroundColor(value: ResourceColor): this;
860    type(value: ButtonType): this;
861    stateEffect(value: boolean): this;
862    fontColor(value: ResourceColor): this;
863    fontSize(value: Length): this;
864    fontWeight(value: string | number | FontWeight): this;
865    fontStyle(value: FontStyle): this;
866    fontFamily(value: string | Resource): this;
867    labelStyle(value: LabelStyle): this;
868    borderRadius(value: Length | BorderRadiuses): this;
869    border(value: BorderOptions): this;
870    size(value: SizeOptions): this;
871}
872declare class ArkLoadingProgressComponent extends ArkComponent implements LoadingProgressAttribute {
873    constructor(nativePtr: KNode, classType?: ModifierType);
874    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
875    color(value: ResourceColor): this;
876    enableLoading(value: boolean): this;
877    foregroundColor(value: ResourceColor): this;
878}
879declare class ArkRefreshComponent extends ArkComponent implements RefreshAttribute {
880    constructor(nativePtr: KNode, classType?: ModifierType);
881    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
882    onStateChange(callback: (state: RefreshStatus) => void): this;
883    onRefreshing(callback: () => void): this;
884}
885declare class ArkScrollComponent extends ArkComponent implements ScrollAttribute {
886    constructor(nativePtr: KNode, classType?: ModifierType);
887    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
888    scrollable(value: ScrollDirection): this;
889    onScroll(event: (xOffset: number, yOffset: number) => void): this;
890    onScrollEdge(event: (side: Edge) => void): this;
891    onScrollStart(event: () => void): this;
892    onScrollEnd(event: () => void): this;
893    onScrollStop(event: () => void): this;
894    enablePaging(value: boolean): this;
895    scrollBar(value: BarState): this;
896    scrollBarColor(color: ResourceColor): this;
897    scrollBarWidth(value: string | number): this;
898    edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this;
899    onScrollFrameBegin(event: (offset: number, state: ScrollState) => {
900        offsetRemain: number;
901    }): this;
902    nestedScroll(value: NestedScrollOptions): ScrollAttribute;
903    enableScrollInteraction(value: boolean): ScrollAttribute;
904    friction(value: number | Resource): ScrollAttribute;
905    scrollSnap(value: ScrollSnapOptions): ScrollAttribute;
906    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
907    initialOffset(value: OffsetOptions): this;
908    flingSpeedLimit(value: number): this;
909}
910declare class ArkToggleComponent extends ArkComponent implements ToggleAttribute {
911    constructor(nativePtr: KNode, classType?: ModifierType);
912    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
913    onChange(callback: (isOn: boolean) => void): this;
914    selectedColor(value: ResourceColor): this;
915    switchPointColor(value: ResourceColor): this;
916    height(value: Length): this;
917    responseRegion(value: Rectangle | Rectangle[]): this;
918    padding(value: Padding | Length): this;
919    backgroundColor(value: ResourceColor): this;
920    hoverEffect(value: HoverEffect): this;
921}
922declare class ArkSelectComponent extends ArkComponent implements SelectAttribute {
923    constructor(nativePtr: KNode, classType?: ModifierType);
924    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
925    optionWidth(value: Dimension | OptionWidthMode): this;
926    optionHeight(value: Dimension): this;
927    width(value: Length): this;
928    height(value: Length): this;
929    size(value: SizeOptions): this;
930    selected(value: number | Resource): this;
931    value(value: ResourceStr): this;
932    font(value: Font): this;
933    fontColor(value: ResourceColor): this;
934    selectedOptionBgColor(value: ResourceColor): this;
935    selectedOptionFont(value: Font): this;
936    selectedOptionFontColor(value: ResourceColor): this;
937    optionBgColor(value: ResourceColor): this;
938    optionFont(value: Font): this;
939    optionFontColor(value: ResourceColor): this;
940    onSelect(callback: (index: number, value: string) => void): this;
941    space(value: Length): this;
942    arrowPosition(value: ArrowPosition): this;
943    menuAlign(alignType: MenuAlignType, offset?: Offset): this;
944}
945declare class ArkRadioComponent extends ArkComponent implements RadioAttribute {
946    constructor(nativePtr: KNode, classType?: ModifierType);
947    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
948    checked(value: boolean): this;
949    onChange(callback: (isChecked: boolean) => void): this;
950    radioStyle(value: RadioStyle): this;
951    width(value: Length): this;
952    height(value: Length): this;
953    size(value: {
954        width: Length;
955        height: Length;
956    }): this;
957    hoverEffect(value: HoverEffect): this;
958    padding(value: Padding | Length): this;
959    responseRegion(value: Array<Rectangle> | Rectangle): this;
960}
961declare class ArkTimePickerComponent extends ArkComponent implements TimePickerAttribute {
962    constructor(nativePtr: KNode, classType?: ModifierType);
963    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
964    loop(value: boolean): this;
965    useMilitaryTime(value: boolean): this;
966    disappearTextStyle(value: PickerTextStyle): this;
967    textStyle(value: PickerTextStyle): this;
968    selectedTextStyle(value: PickerTextStyle): this;
969    onChange(callback: (value: TimePickerResult) => void): this;
970}
971declare class ArkTextPickerComponent extends ArkComponent implements TextPickerAttribute {
972    constructor(nativePtr: KNode, classType?: ModifierType);
973    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
974    defaultPickerItemHeight(value: string | number): this;
975    canLoop(value: boolean): this;
976    disappearTextStyle(value: PickerTextStyle): this;
977    textStyle(value: PickerTextStyle): this;
978    selectedTextStyle(value: PickerTextStyle): this;
979    onAccept(callback: (value: string, index: number) => void): this;
980    onCancel(callback: () => void): this;
981    onChange(callback: (value: string | string[], index: number | number[]) => void): this;
982    selectedIndex(value: number | number[]): this;
983}
984declare class ArkSliderComponent extends ArkComponent implements SliderAttribute {
985    constructor(nativePtr: KNode, classType?: ModifierType);
986    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
987    blockColor(value: ResourceColor): this;
988    trackColor(value: ResourceColor): this;
989    selectedColor(value: ResourceColor): this;
990    minLabel(value: string): this;
991    maxLabel(value: string): this;
992    showSteps(value: boolean): this;
993    showTips(value: boolean, content?: any): this;
994    trackThickness(value: Length): this;
995    onChange(callback: (value: number, mode: SliderChangeMode) => void): this;
996    blockBorderColor(value: ResourceColor): this;
997    blockBorderWidth(value: Length): this;
998    stepColor(value: ResourceColor): this;
999    trackBorderRadius(value: Length): this;
1000    blockSize(value: SizeOptions): this;
1001    blockStyle(value: SliderBlockStyle): this;
1002    stepSize(value: Length): this;
1003}
1004declare class ArkRatingComponent extends ArkComponent implements RatingAttribute {
1005    constructor(nativePtr: KNode, classType?: ModifierType);
1006    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
1007    stars(value: number): this;
1008    stepSize(value: number): this;
1009    starStyle(value: {
1010        backgroundUri: string;
1011        foregroundUri: string;
1012        secondaryUri?: string | undefined;
1013    }): this;
1014    onChange(callback: (value: number) => void): this;
1015}
1016declare class ArkCheckboxComponent extends ArkComponent implements CheckboxAttribute {
1017    constructor(nativePtr: KNode, classType?: ModifierType);
1018    shape(value: CheckBoxShape): this;
1019    width(value: Length): this;
1020    height(value: Length): this;
1021    select(value: boolean): this;
1022    selectedColor(value: ResourceColor): this;
1023    unselectedColor(value: ResourceColor): this;
1024    mark(value: MarkStyle): this;
1025    padding(value: Padding | Length): this;
1026    size(value: SizeOptions): this;
1027    responseRegion(value: Array<Rectangle> | Rectangle): this;
1028    onChange(callback: (value: boolean) => void): this;
1029}
1030declare class ArkNavDestinationComponent extends ArkComponent implements NavDestinationAttribute {
1031    constructor(nativePtr: KNode, classType?: ModifierType);
1032    title(value: any, options?: NavigationTitleOptions): this;
1033    hideTitleBar(value: boolean): this;
1034    onShown(callback: () => void): this;
1035    onHidden(callback: () => void): this;
1036    onBackPressed(callback: () => boolean): this;
1037    ignoreLayoutSafeArea(types?: SafeAreaType[], edges?: SafeAreaEdge[]): this;
1038}
1039declare class ArkCounterComponent extends ArkComponent implements CounterAttribute {
1040    constructor(nativePtr: KNode, classType?: ModifierType);
1041    onInc(event: () => void): this;
1042    onDec(event: () => void): this;
1043    enableDec(value: boolean): this;
1044    enableInc(value: boolean): this;
1045    backgroundColor(value: ResourceColor): this;
1046    width(value: Length): this;
1047    height(value: Length): this;
1048    size(value: SizeOptions): this;
1049}
1050declare class ArkCheckboxGroupComponent extends ArkComponent implements CheckboxGroupAttribute {
1051    constructor(nativePtr: KNode, classType?: ModifierType);
1052    selectAll(value: boolean): this;
1053    selectedColor(value: ResourceColor): this;
1054    unselectedColor(value: ResourceColor): this;
1055    mark(value: MarkStyle): this;
1056    onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute;
1057    size(value: SizeOptions): this;
1058    width(value: Length): this;
1059    height(value: Length): this;
1060}
1061declare class ArkPanelComponent extends ArkComponent implements PanelAttribute {
1062    constructor(nativePtr: KNode, classType?: ModifierType);
1063    mode(value: PanelMode): this;
1064    type(value: PanelType): this;
1065    dragBar(value: boolean): this;
1066    customHeight(value: any): this;
1067    fullHeight(value: string | number): this;
1068    halfHeight(value: string | number): this;
1069    miniHeight(value: string | number): this;
1070    show(value: boolean): this;
1071    backgroundMask(color: ResourceColor): this;
1072    showCloseIcon(value: boolean): this;
1073    onChange(event: (width: number, height: number, mode: PanelMode) => void): this;
1074    onHeightChange(callback: (value: number) => void): this;
1075}
1076declare class ArkNavigationComponent extends ArkComponent implements NavigationAttribute {
1077    constructor(nativePtr: KNode, classType?: ModifierType);
1078    navBarWidth(value: Length): NavigationAttribute;
1079    navBarPosition(value: number): NavigationAttribute;
1080    navBarWidthRange(value: [Dimension, Dimension]): NavigationAttribute;
1081    minContentWidth(value: Dimension): NavigationAttribute;
1082    mode(value: number): NavigationAttribute;
1083    backButtonIcon(value: any): NavigationAttribute;
1084    hideNavBar(value: boolean): NavigationAttribute;
1085    title(value: any, options?: NavigationTitleOptions): NavigationAttribute;
1086    subTitle(value: string): NavigationAttribute;
1087    hideTitleBar(value: boolean): NavigationAttribute;
1088    hideBackButton(value: boolean): NavigationAttribute;
1089    titleMode(value: NavigationTitleMode): NavigationAttribute;
1090    menus(value: any): NavigationAttribute;
1091    toolBar(value: any): NavigationAttribute;
1092    toolbarConfiguration(value: any): NavigationAttribute;
1093    hideToolBar(value: boolean): NavigationAttribute;
1094    onTitleModeChange(callback: (titleMode: NavigationTitleMode) => void): NavigationAttribute;
1095    onNavBarStateChange(callback: (isVisible: boolean) => void): NavigationAttribute;
1096    onNavigationModeChange(callback: (mode: NavigationMode) => void): NavigationAttribute;
1097    navDestination(builder: (name: string, param: unknown) => void): NavigationAttribute;
1098    ignoreLayoutSafeArea(types?: SafeAreaType[], edges?: SafeAreaEdge[]): NavigationAttribute;
1099}
1100declare class ArkNavRouterComponent extends ArkComponent implements NavRouterAttribute {
1101    constructor(nativePtr: KNode, classType?: ModifierType);
1102    onStateChange(callback: (isActivated: boolean) => void): NavRouterAttribute;
1103    mode(mode: NavRouteMode): NavRouterAttribute;
1104}
1105declare class ArkNavigatorComponent extends ArkComponent implements NavigatorAttribute {
1106    constructor(nativePtr: KNode, classType?: ModifierType);
1107    active(value: boolean): this;
1108    type(value: NavigationType): this;
1109    target(value: string): this;
1110    params(value: object): this;
1111}
1112declare class ArkAlphabetIndexerComponent extends ArkComponent implements AlphabetIndexerAttribute {
1113    constructor(nativePtr: KNode, classType?: ModifierType);
1114    onSelected(callback: (index: number) => void): this;
1115    color(value: ResourceColor): this;
1116    selectedColor(value: ResourceColor): this;
1117    popupColor(value: ResourceColor): this;
1118    selectedBackgroundColor(value: ResourceColor): this;
1119    popupBackground(value: ResourceColor): this;
1120    popupSelectedColor(value: ResourceColor): this;
1121    popupUnselectedColor(value: ResourceColor): this;
1122    popupItemBackgroundColor(value: ResourceColor): this;
1123    usingPopup(value: boolean): this;
1124    selectedFont(value: Font): this;
1125    popupFont(value: Font): this;
1126    popupItemFont(value: Font): this;
1127    itemSize(value: string | number): this;
1128    font(value: Font): this;
1129    alignStyle(value: IndexerAlign, offset?: any): this;
1130    onSelect(callback: (index: number) => void): this;
1131    onRequestPopupData(callback: (index: number) => string[]): this;
1132    onPopupSelect(callback: (index: number) => void): this;
1133    selected(index: number): this;
1134    popupPosition(value: Position): this;
1135}
1136declare class ArkCalendarPickerComponent extends ArkComponent implements CalendarPickerAttribute {
1137    constructor(nativePtr: KNode, classType?: ModifierType);
1138    edgeAlign(alignType: CalendarAlign, offset?: Offset | undefined): this;
1139    textStyle(value: PickerTextStyle): this;
1140    onChange(callback: (value: Date) => void): this;
1141    padding(value: Padding | Length): this;
1142    border(value: BorderOptions): this;
1143}
1144declare class ArkDataPanelComponent extends ArkComponent implements DataPanelAttribute {
1145    constructor(nativePtr: KNode, classType?: ModifierType);
1146    closeEffect(value: boolean): this;
1147    valueColors(value: Array<ResourceColor | LinearGradient>): this;
1148    trackBackgroundColor(value: any): this;
1149    strokeWidth(value: any): this;
1150    trackShadow(value: DataPanelShadowOptions): this;
1151}
1152declare class ArkDatePickerComponent extends ArkComponent implements DatePickerAttribute {
1153    constructor(nativePtr: KNode, classType?: ModifierType);
1154    lunar(value: boolean): DatePickerAttribute;
1155    disappearTextStyle(value: PickerTextStyle): DatePickerAttribute;
1156    textStyle(value: PickerTextStyle): DatePickerAttribute;
1157    selectedTextStyle(value: PickerTextStyle): DatePickerAttribute;
1158    onChange(callback: (value: DatePickerResult) => void): DatePickerAttribute;
1159    onDateChange(callback: (value: Date) => void): DatePickerAttribute;
1160    backgroundColor(value: ResourceColor): this;
1161}
1162declare class ArkFormComponentComponent extends ArkComponent implements FormComponentAttribute {
1163    constructor(nativePtr: KNode, classType?: ModifierType);
1164    size(value: {
1165        width: Length;
1166        height: Length;
1167    }): this;
1168    visibility(value: Visibility): this;
1169    moduleName(value: string): this;
1170    dimension(value: FormDimension): this;
1171    allowUpdate(value: boolean): this;
1172    onAcquired(callback: (info: {
1173        id: number;
1174    }) => void): this;
1175    onError(callback: (info: {
1176        errcode: number;
1177        msg: string;
1178    }) => void): this;
1179    onRouter(callback: (info: any) => void): this;
1180    onUninstall(callback: (info: {
1181        id: number;
1182    }) => void): this;
1183    onLoad(callback: () => void): this;
1184}
1185declare class ArkGaugeComponent extends ArkComponent implements GaugeAttribute {
1186    constructor(nativePtr: KNode, classType?: ModifierType);
1187    value(value: number): this;
1188    startAngle(angle: number): this;
1189    endAngle(angle: number): this;
1190    colors(colors: ResourceColor | LinearGradient | Array<[ResourceColor | LinearGradient, number]>): this;
1191    strokeWidth(length: any): this;
1192    description(value: CustomBuilder): this;
1193    trackShadow(value: GaugeShadowOptions): this;
1194    indicator(value: GaugeIndicatorOptions): this;
1195}
1196declare class ArkMarqueeComponent extends ArkComponent implements MarqueeAttribute {
1197    constructor(nativePtr: KNode, classType?: ModifierType);
1198    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
1199    fontSize(value: Length): this;
1200    fontColor(value: ResourceColor): this;
1201    allowScale(value: boolean): this;
1202    fontWeight(value: string | number | FontWeight): this;
1203    fontFamily(value: any): this;
1204    onStart(event: () => void): this;
1205    onBounce(event: () => void): this;
1206    onFinish(event: () => void): this;
1207}
1208declare class ArkMenuComponent extends ArkComponent implements MenuAttribute {
1209    constructor(nativePtr: KNode, classType?: ModifierType);
1210    width(value: Length): this;
1211    fontSize(value: any): this;
1212    font(value: Font): this;
1213    fontColor(value: ResourceColor): this;
1214    radius(value: any): this;
1215}
1216declare class ArkMenuItemComponent extends ArkComponent implements MenuItemAttribute {
1217    constructor(nativePtr: KNode, classType?: ModifierType);
1218    selected(value: boolean): this;
1219    selectIcon(value: boolean | ResourceStr): this;
1220    onChange(callback: (selected: boolean) => void): this;
1221    contentFont(value: Font): this;
1222    contentFontColor(value: ResourceColor): this;
1223    labelFont(value: Font): this;
1224    labelFontColor(value: ResourceColor): this;
1225}
1226declare class ArkMenuItemGroupComponent extends ArkComponent implements MenuItemGroupAttribute {
1227    constructor(nativePtr: KNode, classType?: ModifierType);
1228}
1229declare class ArkPluginComponent extends ArkComponent implements PluginComponentAttribute {
1230    constructor(nativePtr: KNode, classType?: ModifierType);
1231    onComplete(callback: () => void): this;
1232    onError(callback: (info: {
1233        errcode: number;
1234        msg: string;
1235    }) => void): this;
1236    size(value: SizeOptions): this;
1237    width(value: Length): this;
1238    height(value: Length): this;
1239}
1240declare class ArkProgressComponent extends ArkComponent implements ProgressAttribute {
1241    constructor(nativePtr: KNode, classType?: ModifierType);
1242    value(value: number): ProgressAttribute<keyof ProgressStyleMap, LinearStyleOptions | ProgressStyleOptions | RingStyleOptions |
1243        EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions>;
1244    color(value: ResourceColor | LinearGradient): ProgressAttribute<keyof ProgressStyleMap, LinearStyleOptions | ProgressStyleOptions |
1245        RingStyleOptions | EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions>;
1246    style(value: LinearStyleOptions | ProgressStyleOptions | RingStyleOptions | EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions):
1247        ProgressAttribute<keyof ProgressStyleMap, LinearStyleOptions | ProgressStyleOptions | RingStyleOptions |
1248        EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions>;
1249    backgroundColor(value: ResourceColor): this;
1250}
1251declare class ArkQRCodeComponent extends ArkComponent implements QRCodeAttribute {
1252    constructor(nativePtr: KNode, classType?: ModifierType);
1253    color(value: ResourceColor): this;
1254    backgroundColor(value: ResourceColor): this;
1255    contentOpacity(value: number | Resource): this;
1256}
1257declare class ArkRichTextComponent extends ArkComponent implements CommonMethod<RichTextAttribute> {
1258    constructor(nativePtr: KNode, classType?: ModifierType);
1259    onStart(callback: () => void): RichTextAttribute;
1260    onComplete(callback: () => void): RichTextAttribute;
1261}
1262declare class ArkScrollBarComponent extends ArkComponent implements ScrollBarAttribute {
1263    constructor(nativePtr: KNode, classType?: ModifierType);
1264}
1265declare class ArkStepperComponent extends ArkComponent implements StepperAttribute {
1266    constructor(nativePtr: KNode, classType?: ModifierType);
1267    onFinish(callback: () => void): this;
1268    onSkip(callback: () => void): this;
1269    onChange(callback: (prevIndex: number, index: number) => void): this;
1270    onNext(callback: (index: number, pendingIndex: number) => void): this;
1271    onPrevious(callback: (index: number, pendingIndex: number) => void): this;
1272}
1273declare class ArkStepperItemComponent extends ArkComponent implements StepperItemAttribute {
1274    constructor(nativePtr: KNode, classType?: ModifierType);
1275    prevLabel(value: string): this;
1276    nextLabel(value: string): this;
1277    status(value?: ItemState | undefined): this;
1278}
1279declare class ArkTextClockComponent extends ArkComponent implements TextClockAttribute {
1280    constructor(nativePtr: KNode, classType?: ModifierType);
1281    format(value: string): this;
1282    onDateChange(event: (value: number) => void): this;
1283    fontColor(value: ResourceColor): this;
1284    fontSize(value: Length): this;
1285    fontStyle(value: FontStyle): this;
1286    fontWeight(value: string | number | FontWeight): this;
1287    fontFamily(value: ResourceStr): this;
1288    textShadow(value: ShadowOptions): this;
1289    fontFeature(value: string): this;
1290}
1291declare class ArkTextTimerComponent extends ArkComponent implements TextTimerAttribute {
1292    constructor(nativePtr: KNode, classType?: ModifierType);
1293    fontColor(value: any): this;
1294    fontSize(value: any): this;
1295    fontWeight(value: number | FontWeight | string): this;
1296    fontStyle(value: FontStyle): this;
1297    fontFamily(value: string | Resource): this;
1298    format(value: string): this;
1299    onTimer(event: (utc: number, elapsedTime: number) => void): this;
1300}
1301declare class ArkWebComponent extends ArkComponent implements WebAttribute {
1302    constructor(nativePtr: KNode, classType?: ModifierType);
1303    javaScriptAccess(javaScriptAccess: boolean): this;
1304    fileAccess(fileAccess: boolean): this;
1305    onlineImageAccess(onlineImageAccess: boolean): this;
1306    domStorageAccess(domStorageAccess: boolean): this;
1307    imageAccess(imageAccess: boolean): this;
1308    mixedMode(mixedMode: MixedMode): this;
1309    zoomAccess(zoomAccess: boolean): this;
1310    geolocationAccess(geolocationAccess: boolean): this;
1311    javaScriptProxy(javaScriptProxy: {
1312        object: object;
1313        name: string;
1314        methodList: string[];
1315        controller: any;
1316    }): this;
1317    password(password: boolean): this;
1318    cacheMode(cacheMode: CacheMode): this;
1319    darkMode(mode: WebDarkMode): this;
1320    forceDarkAccess(access: boolean): this;
1321    mediaOptions(options: WebMediaOptions): this;
1322    tableData(tableData: boolean): this;
1323    wideViewModeAccess(wideViewModeAccess: boolean): this;
1324    overviewModeAccess(overviewModeAccess: boolean): this;
1325    overScrollMode(mode: OverScrollMode): this;
1326    textZoomAtio(textZoomAtio: number): this;
1327    textZoomRatio(textZoomRatio: number): this;
1328    databaseAccess(databaseAccess: boolean): this;
1329    initialScale(percent: number): this;
1330    userAgent(userAgent: string): this;
1331    onPageEnd(callback: (event?: {
1332        url: string;
1333    } | undefined) => void): this;
1334    onPageBegin(callback: (event?: {
1335        url: string;
1336    } | undefined) => void): this;
1337    onProgressChange(callback: (event?: {
1338        newProgress: number;
1339    } | undefined) => void): this;
1340    onTitleReceive(callback: (event?: {
1341        title: string;
1342    } | undefined) => void): this;
1343    onGeolocationHide(callback: () => void): this;
1344    onGeolocationShow(callback: (event?: {
1345        origin: string;
1346        geolocation: JsGeolocation;
1347    } | undefined) => void): this;
1348    onRequestSelected(callback: () => void): this;
1349    onAlert(callback: (event?: {
1350        url: string;
1351        message: string;
1352        result: JsResult;
1353    } | undefined) => boolean): this;
1354    onBeforeUnload(callback: (event?: {
1355        url: string;
1356        message: string;
1357        result: JsResult;
1358    } | undefined) => boolean): this;
1359    onConfirm(callback: (event?: {
1360        url: string;
1361        message: string;
1362        result: JsResult;
1363    } | undefined) => boolean): this;
1364    onPrompt(callback: (event?: {
1365        url: string;
1366        message: string;
1367        value: string;
1368        result: JsResult;
1369    } | undefined) => boolean): this;
1370    onConsole(callback: (event?: {
1371        message: ConsoleMessage;
1372    } | undefined) => boolean): this;
1373    onErrorReceive(callback: (event?: {
1374        request: WebResourceRequest;
1375        error: WebResourceError;
1376    } | undefined) => void): this;
1377    onHttpErrorReceive(callback: (event?: {
1378        request: WebResourceRequest;
1379        response: WebResourceResponse;
1380    } | undefined) => void): this;
1381    onDownloadStart(callback: (event?: {
1382        url: string;
1383        userAgent: string;
1384        contentDisposition: string;
1385        mimetype: string;
1386        contentLength: number;
1387    } | undefined) => void): this;
1388    onRefreshAccessedHistory(callback: (event?: {
1389        url: string;
1390        isRefreshed: boolean;
1391    } | undefined) => void): this;
1392    onUrlLoadIntercept(callback: (event?: {
1393        data: string | WebResourceRequest;
1394    } | undefined) => boolean): this;
1395    onSslErrorReceive(callback: (event?: {
1396        handler: Function;
1397        error: object;
1398    } | undefined) => void): this;
1399    onRenderExited(callback: (event?: {
1400        renderExitReason: RenderExitReason;
1401    } | undefined) => void): this;
1402    onRenderExited(callback: (event?: {
1403        detail: object;
1404    } | undefined) => boolean): this;
1405    onShowFileSelector(callback: (event?: {
1406        result: FileSelectorResult;
1407        fileSelector: FileSelectorParam;
1408    } | undefined) => boolean): this;
1409    onFileSelectorShow(callback: (event?: {
1410        callback: Function;
1411        fileSelector: object;
1412    } | undefined) => void): this;
1413    onResourceLoad(callback: (event: {
1414        url: string;
1415    }) => void): this;
1416    onFullScreenExit(callback: () => void): this;
1417    onFullScreenEnter(callback: (event: {
1418        handler: FullScreenExitHandler;
1419    }) => void): this;
1420    onScaleChange(callback: (event: {
1421        oldScale: number;
1422        newScale: number;
1423    }) => void): this;
1424    onHttpAuthRequest(callback: (event?: {
1425        handler: HttpAuthHandler;
1426        host: string;
1427        realm: string;
1428    } | undefined) => boolean): this;
1429    onInterceptRequest(callback: (event?: {
1430        request: WebResourceRequest;
1431    } | undefined) => WebResourceResponse): this;
1432    onPermissionRequest(callback: (event?: {
1433        request: PermissionRequest;
1434    } | undefined) => void): this;
1435    onScreenCaptureRequest(callback: (event?: {
1436        handler: ScreenCaptureHandler;
1437    } | undefined) => void): this;
1438    onContextMenuShow(callback: (event?: {
1439        param: WebContextMenuParam;
1440        result: WebContextMenuResult;
1441    } | undefined) => boolean): this;
1442    mediaPlayGestureAccess(access: boolean): this;
1443    onSearchResultReceive(callback: (event?: {
1444        activeMatchOrdinal: number;
1445        numberOfMatches: number;
1446        isDoneCounting: boolean;
1447    } | undefined) => void): this;
1448    onScroll(callback: (event: {
1449        xOffset: number;
1450        yOffset: number;
1451    }) => void): this;
1452    onSslErrorEventReceive(callback: (event: {
1453        handler: SslErrorHandler;
1454        error: SslError;
1455    }) => void): this;
1456    onClientAuthenticationRequest(callback: (event: {
1457        handler: ClientAuthenticationHandler;
1458        host: string;
1459        port: number;
1460        keyTypes: string[];
1461        issuers: string[];
1462    }) => void): this;
1463    onWindowNew(callback: (event: {
1464        isAlert: boolean;
1465        isUserTrigger: boolean;
1466        targetUrl: string;
1467        handler: ControllerHandler;
1468    }) => void): this;
1469    onWindowExit(callback: () => void): this;
1470    multiWindowAccess(multiWindow: boolean): this;
1471    onInterceptKeyEvent(callback: (event: KeyEvent) => boolean): this;
1472    webStandardFont(family: string): this;
1473    webSerifFont(family: string): this;
1474    webSansSerifFont(family: string): this;
1475    webFixedFont(family: string): this;
1476    webFantasyFont(family: string): this;
1477    webCursiveFont(family: string): this;
1478    defaultFixedFontSize(size: number): this;
1479    defaultFontSize(size: number): this;
1480    minFontSize(size: number): this;
1481    minLogicalFontSize(size: number): this;
1482    blockNetwork(block: boolean): this;
1483    horizontalScrollBarAccess(horizontalScrollBar: boolean): this;
1484    verticalScrollBarAccess(verticalScrollBar: boolean): this;
1485    onTouchIconUrlReceived(callback: (event: {
1486        url: string;
1487        precomposed: boolean;
1488    }) => void): this;
1489    onFaviconReceived(callback: (event: {
1490        favicon: any;
1491    }) => void): this;
1492    onPageVisible(callback: (event: {
1493        url: string;
1494    }) => void): this;
1495    onDataResubmitted(callback: (event: {
1496        handler: DataResubmissionHandler;
1497    }) => void): this;
1498    pinchSmooth(isEnabled: boolean): this;
1499    allowWindowOpenMethod(flag: boolean): this;
1500    onAudioStateChanged(callback: (event: {
1501        playing: boolean;
1502    }) => void): this;
1503    onFirstContentfulPaint(callback: (event?: {
1504        navigationStartTick: number;
1505        firstContentfulPaintMs: number;
1506    } | undefined) => void): this;
1507    onLoadIntercept(callback: (event: {
1508        data: WebResourceRequest;
1509    }) => boolean): this;
1510    onControllerAttached(callback: () => void): this;
1511    onOverScroll(callback: (event: {
1512        xOffset: number;
1513        yOffset: number;
1514    }) => void): this;
1515    javaScriptOnDocumentStart(scripts: ScriptItem[]): this;
1516    layoutMode(mode: WebLayoutMode): this;
1517    nestedScroll(value: NestedScrollOptions): this;
1518    onRenderProcessNotResponding(callback: (event: {
1519        data: RenderProcessNotRespondingData;
1520    }) => void): this;
1521    onRenderProcessResponding(callback: () => void): this;
1522    onViewportFitChanged(callback: (event: {
1523        viewportFit: ViewportFit;
1524    }) => void): this;
1525    onAdsBlocked(callback: (details?: AdsBlockedDetails | undefined) => void): this;
1526}
1527declare class ArkXComponentComponent implements CommonMethod<XComponentAttribute> {
1528    _modifiersWithKeys: Map<Symbol, AttributeModifierWithKey>;
1529    nativePtr: KNode;
1530    constructor(nativePtr: KNode);
1531    applyModifierPatch(): void;
1532    outline(value: OutlineOptions): this;
1533    outlineColor(value: ResourceColor | EdgeColors): this;
1534    outlineRadius(value: Dimension | OutlineRadiuses): this;
1535    outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this;
1536    outlineWidth(value: Dimension | EdgeOutlineWidths): this;
1537    width(value: Length): this;
1538    height(value: Length): this;
1539    expandSafeArea(types?: SafeAreaType[], edges?: SafeAreaEdge[]): this;
1540    responseRegion(value: Rectangle | Rectangle[]): this;
1541    mouseResponseRegion(value: Rectangle | Rectangle[]): this;
1542    size(value: SizeOptions): this;
1543    constraintSize(value: ConstraintSizeOptions): this;
1544    touchable(value: boolean): this;
1545    hitTestBehavior(value: HitTestMode): this;
1546    layoutWeight(value: string | number): this;
1547    padding(value: Length | Padding): this;
1548    margin(value: Length | Padding): this;
1549    background(builder: CustomBuilder, options?: {
1550        align?: Alignment;
1551    }): this;
1552    backgroundColor(value: ResourceColor): this;
1553    backgroundImage(src: ResourceStr, repeat?: ImageRepeat): this;
1554    backgroundImageSize(value: SizeOptions | ImageSize): this;
1555    backgroundImagePosition(value: Alignment | Position): this;
1556    backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this;
1557    foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this;
1558    opacity(value: number | Resource): this;
1559    border(value: BorderOptions): this;
1560    borderStyle(value: BorderStyle | EdgeStyles): this;
1561    borderWidth(value: Length | EdgeWidths): this;
1562    borderColor(value: ResourceColor | EdgeColors): this;
1563    borderRadius(value: Length | BorderRadiuses): this;
1564    borderImage(value: BorderImageOption): this;
1565    foregroundColor(value: string | number | Resource | Color): this;
1566    onClick(event: (event: ClickEvent) => void): this;
1567    onHover(event: (isHover: boolean, event: HoverEvent) => void): this;
1568    hoverEffect(value: HoverEffect): this;
1569    onMouse(event: (event: MouseEvent) => void): this;
1570    onTouch(event: (event: TouchEvent) => void): this;
1571    onKeyEvent(event: (event: KeyEvent) => void): this;
1572    focusable(value: boolean): this;
1573    onFocus(event: () => void): this;
1574    onBlur(event: () => void): this;
1575    tabIndex(index: number): this;
1576    defaultFocus(value: boolean): this;
1577    groupDefaultFocus(value: boolean): this;
1578    focusOnTouch(value: boolean): this;
1579    animation(value: AnimateParam): this;
1580    transition(value: TransitionOptions | TransitionEffect): this;
1581    gesture(gesture: GestureType, mask?: GestureMask): this;
1582    priorityGesture(gesture: GestureType, mask?: GestureMask): this;
1583    parallelGesture(gesture: GestureType, mask?: GestureMask): this;
1584    blur(value: number): this;
1585    linearGradientBlur(value: number, options: LinearGradientBlurOptions): this;
1586    brightness(value: number): this;
1587    contrast(value: number): this;
1588    grayscale(value: number): this;
1589    colorBlend(value: string | Resource | Color): this;
1590    saturate(value: number): this;
1591    sepia(value: number): this;
1592    invert(value: number): this;
1593    hueRotate(value: string | number): this;
1594    useEffect(value: boolean): this;
1595    backdropBlur(value: number): this;
1596    renderGroup(value: boolean): this;
1597    translate(value: TranslateOptions): this;
1598    scale(value: ScaleOptions): this;
1599    gridSpan(value: number): this;
1600    gridOffset(value: number): this;
1601    rotate(value: RotateOptions): this;
1602    transform(value: object): this;
1603    onAppear(event: () => void): this;
1604    onDisAppear(event: () => void): this;
1605    onAreaChange(event: (oldValue: Area, newValue: Area) => void): this;
1606    visibility(value: Visibility): this;
1607    flexGrow(value: number): this;
1608    flexShrink(value: number): this;
1609    flexBasis(value: string | number): this;
1610    alignSelf(value: ItemAlign): this;
1611    displayPriority(value: number): this;
1612    zIndex(value: number): this;
1613    sharedTransition(id: string, options?: sharedTransitionOptions): this;
1614    direction(value: Direction): this;
1615    align(value: Alignment): this;
1616    position(value: Position): this;
1617    markAnchor(value: Position): this;
1618    offset(value: Position): this;
1619    enabled(value: boolean): this;
1620    useSizeType(value: {
1621        xs?: number | {
1622            span: number;
1623            offset: number;
1624        };
1625        sm?: number | {
1626            span: number;
1627            offset: number;
1628        };
1629        md?: number | {
1630            span: number;
1631            offset: number;
1632        };
1633        lg?: number | {
1634            span: number;
1635            offset: number;
1636        };
1637    }): this;
1638    alignRules(value: AlignRuleOption): this;
1639    aspectRatio(value: number): this;
1640    clickEffect(value: ClickEffect): this;
1641    onDragStart(event: (event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): this;
1642    onDragEnter(event: (event: DragEvent, extraParams?: string) => void): this;
1643    onDragMove(event: (event: DragEvent, extraParams?: string) => void): this;
1644    onDragLeave(event: (event: DragEvent, extraParams?: string) => void): this;
1645    onDrop(event: (event: DragEvent, extraParams?: string) => void): this;
1646    onDragEnd(event: (event: DragEvent, extraParams?: string) => void): this;
1647    allowDrop(value: Array<UniformDataType>): this;
1648    draggable(value: boolean): this;
1649    overlay(value: string | CustomBuilder, options?: {
1650        align?: Alignment;
1651        offset?: {
1652            x?: number;
1653            y?: number;
1654        };
1655    }): this;
1656    linearGradient(value: {
1657        angle?: number | string;
1658        direction?: GradientDirection;
1659        colors: Array<any>;
1660        repeating?: boolean;
1661    }): this;
1662    sweepGradient(value: {
1663        center: Array<any>;
1664        start?: number | string;
1665        end?: number | string;
1666        rotation?: number | string;
1667        colors: Array<any>;
1668        repeating?: boolean;
1669    }): this;
1670    radialGradient(value: {
1671        center: Array<any>;
1672        radius: number | string;
1673        colors: Array<any>;
1674        repeating?: boolean;
1675    }): this;
1676    motionPath(value: MotionPathOptions): this;
1677    shadow(value: ShadowOptions | ShadowStyle): this;
1678    blendMode(value: BlendMode): this;
1679    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
1680    mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this;
1681    key(value: string): this;
1682    id(value: string): this;
1683    geometryTransition(id: string): this;
1684    bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this;
1685    bindMenu(content: CustomBuilder | MenuElement[], options?: MenuOptions): this;
1686    bindContextMenu(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): this;
1687    bindContentCover(isShow: unknown, builder: unknown, options?: unknown): this;
1688    bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): this;
1689    stateStyles(value: StateStyles): this;
1690    restoreId(value: number): this;
1691    onVisibleAreaChange(ratios: number[], event: (isVisible: boolean, currentRatio: number) => void): this;
1692    sphericalEffect(value: number): this;
1693    lightUpEffect(value: number): this;
1694    pixelStretchEffect(options: PixelStretchEffectOptions): this;
1695    keyboardShortcut(value: string | FunctionKey, keys: ModifierKey[], action?: () => void): this;
1696    accessibilityGroup(value: boolean): this;
1697    accessibilityText(value: string | Resource): this;
1698    accessibilityDescription(value: string | Resource): this;
1699    accessibilityLevel(value: string): this;
1700    obscured(reasons: ObscuredReasons[]): this;
1701    reuseId(id: string): this;
1702    renderFit(fitMode: RenderFit): this;
1703    attributeModifier(modifier: AttributeModifier<CommonAttribute>): this;
1704    onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this;
1705    onLoad(callback: (event?: object) => void): this;
1706    onDestroy(event: () => void): this;
1707    enableSecure(value: boolean): this;
1708}
1709declare class ArkBadgeComponent extends ArkComponent implements BadgeAttribute {
1710    constructor(nativePtr: KNode, classType?: ModifierType);
1711}
1712declare class ArkFlowItemComponent extends ArkComponent implements FlowItemAttribute {
1713    constructor(nativePtr: KNode, classType?: ModifierType);
1714}
1715declare class ArkFormLinkComponent extends ArkComponent implements FormLinkAttribute {
1716    constructor(nativePtr: KNode, classType?: ModifierType);
1717}
1718declare class ArkGridItemComponent extends ArkComponent implements GridItemAttribute {
1719    constructor(nativePtr: KNode, classType?: ModifierType);
1720    rowStart(value: number): this;
1721    rowEnd(value: number): this;
1722    columnStart(value: number): this;
1723    columnEnd(value: number): this;
1724    forceRebuild(value: boolean): this;
1725    selectable(value: boolean): this;
1726    selected(value: boolean): this;
1727    onSelect(event: (isSelected: boolean) => void): this;
1728}
1729declare class ArkHyperlinkComponent extends ArkComponent implements HyperlinkAttribute {
1730    constructor(nativePtr: KNode, classType?: ModifierType);
1731    color(value: ResourceColor): this;
1732    draggable(value: boolean): this;
1733}
1734declare class ArkListComponent extends ArkComponent implements ListAttribute {
1735    constructor(nativePtr: KNode, classType?: ModifierType);
1736    lanes(value: number | LengthConstrain, gutter?: any): this;
1737    alignListItem(value: ListItemAlign): this;
1738    listDirection(value: Axis): this;
1739    scrollBar(value: BarState): this;
1740    scrollBarWidth(value: string | number): this;
1741    scrollBarColor(value: string | number | Color): this;
1742    flingSpeedLimit(value: number): this;
1743    edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions | undefined): this;
1744    contentStartOffset(value: number): this;
1745    contentEndOffset(value: number): this;
1746    divider(value: {
1747        strokeWidth: any;
1748        color?: any;
1749        startMargin?: any;
1750        endMargin?: any;
1751    } | null): this;
1752    editMode(value: boolean): this;
1753    multiSelectable(value: boolean): this;
1754    cachedCount(value: number): this;
1755    chainAnimation(value: boolean): this;
1756    chainAnimationOptions(value: ChainAnimationOptions): this;
1757    sticky(value: StickyStyle): this;
1758    scrollSnapAlign(value: ScrollSnapAlign): this;
1759    nestedScroll(value: NestedScrollOptions): this;
1760    enableScrollInteraction(value: boolean): this;
1761    friction(value: any): this;
1762    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
1763    onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): this;
1764    onScrollIndex(event: (start: number, end: number, center: number) => void): this;
1765    onReachStart(event: () => void): this;
1766    onReachEnd(event: () => void): this;
1767    onScrollStart(event: () => void): this;
1768    onScrollStop(event: () => void): this;
1769    onItemDelete(event: (index: number) => boolean): this;
1770    onItemMove(event: (from: number, to: number) => boolean): this;
1771    onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => void | (() => any)): this;
1772    onItemDragEnter(event: (event: ItemDragInfo) => void): this;
1773    onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void): this;
1774    onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void): this;
1775    onItemDrop(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void): this;
1776    onScrollFrameBegin(event: (offset: number, state: ScrollState) => {
1777        offsetRemain: number;
1778    }): this;
1779    childrenMainSize(value: ChildrenMainSize): this;
1780}
1781declare class ArkListItemComponent extends ArkComponent implements ListItemAttribute {
1782    constructor(nativePtr: KNode, classType?: ModifierType);
1783    sticky(value: Sticky): this;
1784    editable(value: boolean | EditMode): this;
1785    selectable(value: boolean): this;
1786    selected(value: boolean): this;
1787    swipeAction(value: SwipeActionOptions): this;
1788    onSelect(event: (isSelected: boolean) => void): this;
1789}
1790declare class ArkListItemGroupComponent extends ArkComponent implements ListItemGroupAttribute {
1791    constructor(nativePtr: KNode, classType?: ModifierType);
1792    divider(value: {
1793        strokeWidth: any;
1794        color?: any;
1795        startMargin?: any;
1796        endMargin?: any;
1797    } | null): this;
1798    childrenMainSize(value: ChildrenMainSize): this;
1799}
1800declare class ArkRelativeContainerComponent extends ArkComponent implements RelativeContainerAttribute {
1801    constructor(nativePtr: KNode, classType?: ModifierType);
1802}
1803declare class ArkSwiperComponent extends ArkComponent implements SwiperAttribute {
1804    constructor(nativePtr: KNode, classType?: ModifierType);
1805    index(value: number): this;
1806    autoPlay(value: boolean): this;
1807    interval(value: number): this;
1808    indicator(value: boolean | DotIndicator | DigitIndicator): this;
1809    displayArrow(value: boolean | ArrowStyle, isHoverShow?: boolean | undefined): this;
1810    loop(value: boolean): this;
1811    duration(value: number): this;
1812    vertical(value: boolean): this;
1813    itemSpace(value: string | number): this;
1814    displayMode(value: SwiperDisplayMode): this;
1815    cachedCount(value: number): this;
1816    displayCount(value: string | number | SwiperAutoFill, swipeByGroup?: boolean | undefined): this;
1817    effectMode(value: EdgeEffect): this;
1818    disableSwipe(value: boolean): this;
1819    curve(value: string | Curve | ICurve): this;
1820    onChange(event: (index: number) => void): this;
1821    indicatorStyle(value?: IndicatorStyle | undefined): this;
1822    prevMargin(value: Length): this;
1823    nextMargin(value: Length): this;
1824    enabled(value: boolean): this;
1825    onAnimationStart(event: (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void): this;
1826    onAnimationEnd(event: (index: number, extraInfo: SwiperAnimationEvent) => void): this;
1827    onGestureSwipe(event: (index: number, extraInfo: SwiperAnimationEvent) => void): this;
1828    nestedScroll(value: SwiperNestedScrollMode): this;
1829}
1830declare class ArkTabsComponent extends ArkComponent implements TabsAttribute {
1831    constructor(nativePtr: KNode, classType?: ModifierType);
1832    onAnimationStart(handler: (index: number, targetIndex: number, event: TabsAnimationEvent) => void): TabsAttribute;
1833    onAnimationEnd(handler: (index: number, event: TabsAnimationEvent) => void): TabsAttribute;
1834    onGestureSwipe(handler: (index: number, event: TabsAnimationEvent) => void): TabsAttribute;
1835    vertical(value: boolean): TabsAttribute;
1836    barPosition(value: BarPosition): TabsAttribute;
1837    scrollable(value: boolean): TabsAttribute;
1838    barMode(value: BarMode, options?: ScrollableBarModeOptions | undefined): TabsAttribute;
1839    barWidth(value: Length): TabsAttribute;
1840    barHeight(value: Length): TabsAttribute;
1841    animationDuration(value: number): TabsAttribute;
1842    animationMode(value: AnimationMode): TabsAttribute;
1843    onChange(event: (index: number) => void): TabsAttribute;
1844    onTabBarClick(event: (index: number) => void): TabsAttribute;
1845    fadingEdge(value: boolean): TabsAttribute;
1846    divider(value: DividerStyle | null): TabsAttribute;
1847    barOverlap(value: boolean): TabsAttribute;
1848    barBackgroundColor(value: ResourceColor): TabsAttribute;
1849    barBackgroundBlurStyle(value: BlurStyle): TabsAttribute;
1850    barGridAlign(value: BarGridColumnOptions): TabsAttribute;
1851    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
1852    edgeEffect(value: EdgeEffect): TabsAttribute;
1853}
1854declare class ArkTabContentComponent extends ArkComponent implements TabContentAttribute {
1855    constructor(nativePtr: KNode, classType?: ModifierType);
1856    tabBar(value: any): this;
1857    tabBar(value: SubTabBarStyle | BottomTabBarStyle): this;
1858    size(value: SizeOptions): this;
1859    width(value: Length): this;
1860    height(value: Length): this;
1861}
1862declare class ArkUIExtensionComponentComponent extends ArkComponent implements UIExtensionComponentAttribute {
1863    constructor(nativePtr: KNode, classType?: ModifierType);
1864    onRemoteReady(callback: any): UIExtensionComponentAttribute;
1865    onReceive(callback: any): UIExtensionComponentAttribute;
1866    onResult(callback: any): UIExtensionComponentAttribute;
1867    onRelease(callback: any): UIExtensionComponentAttribute;
1868    onError(callback: any): UIExtensionComponentAttribute;
1869}
1870declare class ArkWaterFlowComponent extends ArkComponent implements WaterFlowAttribute {
1871    constructor(nativePtr: KNode, classType?: ModifierType);
1872    columnsTemplate(value: string): this;
1873    rowsTemplate(value: string): this;
1874    itemConstraintSize(value: ConstraintSizeOptions): this;
1875    columnsGap(value: Length): this;
1876    rowsGap(value: Length): this;
1877    layoutDirection(value: FlexDirection): this;
1878    nestedScroll(value: NestedScrollOptions): this;
1879    enableScrollInteraction(value: boolean): this;
1880    friction(value: number | Resource): this;
1881    cachedCount(value: number): this;
1882    onReachStart(event: () => void): this;
1883    onReachEnd(event: () => void): this;
1884    onScrollFrameBegin(event: (offset: number, state: ScrollState) => {
1885        offsetRemain: number;
1886    }): this;
1887    clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this;
1888    edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions | undefined): this;
1889    scrollBarWidth(value: string | number): this;
1890    scrollBarColor(value: string | number | Color): this;
1891    scrollBar(value: BarState): this;
1892    flingSpeedLimit(value: number): this;
1893}
1894declare class ArkCommonShapeComponent extends ArkComponent implements CommonShapeMethod<ShapeAttribute> {
1895    constructor(nativePtr: KNode, classType?: ModifierType);
1896    viewPort(value: {
1897        x?: string | number | undefined;
1898        y?: string | number | undefined;
1899        width?: string | number | undefined;
1900        height?: string | number | undefined;
1901    }): this;
1902    stroke(value: ResourceColor): this;
1903    fill(value: ResourceColor): this;
1904    strokeDashOffset(value: string | number): this;
1905    strokeLineCap(value: LineCapStyle): this;
1906    strokeLineJoin(value: LineJoinStyle): this;
1907    strokeMiterLimit(value: string | number): this;
1908    strokeOpacity(value: number | string | Resource): this;
1909    fillOpacity(value: number | string | Resource): this;
1910    strokeWidth(value: string | number): this;
1911    antiAlias(value: boolean): this;
1912    strokeDashArray(value: any[]): this;
1913    mesh(value: any[], column: number, row: number): this;
1914    height(value: Length): this;
1915    width(value: Length): this;
1916    foregroundColor(value: string | number | Resource | Color): this;
1917}
1918declare class ArkCircleComponent extends ArkCommonShapeComponent implements CircleAttribute {
1919}
1920declare class ArkEllipseComponent extends ArkCommonShapeComponent implements EllipseAttribute {
1921}
1922declare class ArkLineComponent extends ArkCommonShapeComponent implements LineAttribute {
1923    constructor(nativePtr: KNode, classType?: ModifierType);
1924    startPoint(value: Array<Length>): this;
1925    endPoint(value: Array<Length>): this;
1926}
1927declare class ArkPolylineComponent extends ArkCommonShapeComponent implements PolylineAttribute {
1928    constructor(nativePtr: KNode, classType?: ModifierType);
1929    points(value: Array<any>): this;
1930}
1931declare class ArkPolygonComponent extends ArkCommonShapeComponent implements PolygonAttribute {
1932    constructor(nativePtr: KNode, classType?: ModifierType);
1933    points(value: Array<any>): this;
1934}
1935declare class ArkPathComponent extends ArkCommonShapeComponent implements PathAttribute {
1936    constructor(nativePtr: KNode, classType?: ModifierType);
1937    commands(value: string): this;
1938}
1939declare class ArkRectComponent extends ArkCommonShapeComponent implements RectAttribute {
1940    constructor(nativePtr: KNode, classType?: ModifierType);
1941    radiusWidth(value: string | number): this;
1942    radiusHeight(value: string | number): this;
1943    radius(value: string | number | Array<any>): this;
1944}
1945declare class ArkShapeComponent extends ArkCommonShapeComponent implements ShapeAttribute {
1946    constructor(nativePtr: KNode, classType?: ModifierType);
1947    viewPort(value: {
1948        x?: string | number | undefined;
1949        y?: string | number | undefined;
1950        width?: string | number | undefined;
1951        height?: string | number | undefined;
1952    }): this;
1953    mesh(value: Array<any> | undefined, column: number | undefined, row: number | undefined): this;
1954    height(value: Length): this;
1955    width(value: Length): this;
1956}
1957declare class ArkCanvasComponent extends ArkComponent implements CanvasAttribute {
1958    constructor(nativePtr: KNode, classType?: ModifierType);
1959    onReady(event: () => void): this;
1960}
1961declare class ArkGridContainerComponent extends ArkComponent implements ColumnAttribute {
1962    constructor(nativePtr: KNode, classType?: ModifierType);
1963    alignItems(value: HorizontalAlign): ColumnAttribute;
1964    justifyContent(value: FlexAlign): ColumnAttribute;
1965    pointLight(value: PointLightStyle): ColumnAttribute;
1966}
1967declare class ArkEffectComponentComponent extends ArkComponent implements EffectComponentAttribute {
1968}
1969declare class ArkRemoteWindowComponent extends ArkComponent implements RemoteWindowAttribute {
1970}
1971declare class ArkParticleComponent extends ArkComponent implements ParticleAttribute {
1972    constructor(nativePtr: KNode, classType?: ModifierType);
1973    disturbanceFields(fields: Array<DisturbanceFieldsOptions>): ParticleAttribute;
1974}
1975declare class CheckboxWidthModifier extends ModifierWithKey<Length> {}
1976declare class CheckboxHeightModifier extends ModifierWithKey<ResourceColor> {}
1977declare class TextForegroundColorModifier extends ModifierWithKey<ResourceColor | ColoringStrategy> {}
1978
1979declare class ArkSymbolGlyphComponent extends ArkComponent implements SymbolGlyphAttribute {
1980    constructor(nativePtr: KNode, classType?: ModifierType);
1981    fontColor(value: ResourceColor[]): SymbolGlyphAttribute;
1982    fontSize(value: number | string | Resource): SymbolGlyphAttribute;
1983    fontWeight(value: number | FontWeight | string): SymbolGlyphAttribute;
1984    renderingStrategy(value: SymbolRenderingStrategy): SymbolGlyphAttribute;
1985    effectStrategy(value: SymbolEffectStrategy): SymbolGlyphAttribute;
1986}
1987
1988declare class ArkSymbolSpanComponent extends ArkComponent implements SymbolSpanAttribute {
1989    constructor(nativePtr: KNode, classType?: ModifierType);
1990    fontColor(value: ResourceColor[]): SymbolSpanAttribute;
1991    fontSize(value: number | string | Resource): SymbolSpanAttribute;
1992    fontWeight(value: number | FontWeight | string): SymbolSpanAttribute;
1993    renderingStrategy(value: SymbolRenderingStrategy): SymbolSpanAttribute;
1994    effectStrategy(value: SymbolEffectStrategy): SymbolSpanAttribute;
1995}
1996
1997declare class ArkParticleComponent extends ArkComponent implements ParticleAttribute {
1998    constructor(nativePtr: KNode, classType?: ModifierType);
1999    emitter(fields: Array<EmitterProps>): ParticleAttribute;
2000}
2001
2002declare class ArkComponent3DComponent extends ArkComponent implements Component3DAttribute {
2003    constructor(nativePtr: KNode, classType?: ModifierType);
2004    environment(uri: Resource): Component3DAttribute;
2005    customRender(uri: Resource, selfRenderUpdate: boolean): Component3DAttribute;
2006    shader(uri: Resource): Component3DAttribute;
2007    shaderImageTexture(uri: Resource): Component3DAttribute;
2008    shaderInputBuffer(buffer: Array<number>): Component3DAttribute;
2009    renderWidth(value: Dimension): Component3DAttribute;
2010    renderHeight(value: Dimension): Component3DAttribute;
2011}
2012
2013declare class ArkContainerSpanComponent extends ArkComponent implements ContainerSpanAttribute {
2014    constructor(nativePtr: KNode, classType?: ModifierType);
2015    textBackgroundStyle(value: TextBackgroundStyle): ContainerSpanAttribute;
2016}
2017