16
declare type AnimationRange<T> = [from: T, to: T];
18
declare interface Callback<T> {}
20
declare interface ClickEvent extends BaseEvent {
28
declare interface SheetTitleOptions {
30
subtitle?: ResourceStr;
33
declare interface UICommonEvent {
34
setOnClick(callback: Callback<ClickEvent> | undefined): void;
37
declare enum SheetSize {
43
declare interface BindOptions {
44
backgroundColor?: ResourceColor;
47
declare interface SheetOptions extends BindOptions {
48
title?: SheetTitleOptions;
49
detents?: [(SheetSize | Length), (SheetSize | Length)?, (SheetSize | Length)?];
52
declare class CommonMethod<T> {
56
width(value: Length): T;
58
height(value: Length): T;
60
bindSheet(isShow: boolean, builder: () => void, options?: SheetOptions): T;
63
declare interface Rectangle {
74
declare class CommonAttribute extends CommonMethod<CommonAttribute> {}
76
declare class CommonShapeMethod<T> extends CommonMethod<T> {
81
declare class ScrollableCommonMethod<T> extends CommonMethod<T> {}
83
declare module 'commonEvent' {
84
module 'commonEvent' {
86
export { UICommonEvent };
90
declare module 'commonAttribute'{
91
module 'commonAttribute' {
93
export { CommonAttribute };