import { Type } from "../types/enums/Type.js"; import { Array3, Binding, BindingItem, Variable } from "../types/properties/value.js"; import { ModifyUI, UI } from "./UI.js"; import { Renderer } from "../types/enums/Renderer.js"; import { Properties, CollectionPanel, Grid, Image, InputPanel, Label, Panel, Screen, StackPanel, TooltipTrigger, Button, Toggle, Dropdown, SelectionWheel, EditBox, ScrollbarBox, ScrollbarTrack, ScrollView, Slider, SliderBox } from "../types/properties/components.js"; import { Element, Namespace, VanillaElementChilds, VanillaType } from "../types/vanilla/intellisense.js"; import { AnimType } from "../types/enums/AnimType.js"; import { AnimationKeyframe } from "./AnimationKeyframe.js"; import { AnimationProperties, KeyframeAnimationProperties } from "../types/properties/element/Animation.js"; import { Animation } from "./Animation.js"; import { SmartAnimation } from "../types/enums/SmartAnimation.js"; import { FactoryManager } from "./Factory.js"; type CompileBinding = `[${string}]`; export declare function Color(hex: string | number): Array3; export declare function ResolveBinding(cache: Map, ...bindings: BindingItem[]): BindingItem[]; export declare let defaultNamespace: string | null; export declare function SetDefaultNamespace(input: string): void; export declare function ClearDefaultNamespace(): void; export declare function GenRandomString(length: number, base?: number): string; export declare function RandomNamespace(): string; export declare function RandomString(length: number, base?: number, force?: boolean): string; export declare function RandomBindingString(length?: number, base?: number, force?: boolean): Binding; export declare function RandomVariableString(length?: number, base?: number, force?: boolean): Variable; export declare function s(input: string): string; export declare function bs(input: Binding): Binding; export declare function vs(input: Variable): Variable; export declare function GetItemByAuxID(auxID: number): string | undefined; /** * Return format string binding input * @param input * @returns {CompileBinding} */ export declare function f(input: string): CompileBinding; /** * Return bracket binding input * @param input * @returns {CompileBinding} */ export declare function b(input: string): CompileBinding; export declare function Modify>(namespace: T, name: K): ModifyUI, VanillaElementChilds>; export declare function Factory(name: string): FactoryManager; export declare function Panel(properties?: Panel, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function CollectionPanel(properties?: CollectionPanel, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function StackPanel(properties?: StackPanel, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function InputPanel(properties?: InputPanel, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Grid(properties?: Grid, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Screen(properties?: Screen, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Image(properties?: Image, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Label(properties?: Label, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Custom(renderer: R, properties?: Properties, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function TooltipTrigger(properties?: TooltipTrigger, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Button(properties?: Button, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Toggle(properties?: Toggle, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Dropdown(properties?: Dropdown, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function SelectionWheel(properties?: SelectionWheel, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function EditBox(properties?: EditBox, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function ScrollbarBox(properties?: ScrollbarBox, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function ScrollbarTrack(properties?: ScrollbarTrack, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function ScrollView(properties?: ScrollView, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function Slider(properties?: Slider, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function SliderBox(properties?: SliderBox, namespace?: string, name?: string, allowObfuscate?: boolean): UI; export declare function ExtendsOf(element: UI, properties?: Properties, namespace?: string, name?: string, allowObfuscate?: boolean): typeof element; export declare function VanillaExtendsOf, `${string}/${string}`>>(originNamespace: T, originName: K, properties?: Properties, null>, namespace?: string, name?: string): UI, null>; export declare function OffsetKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function SizeKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function UVKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function ClipKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function ColorKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function AlphaKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function WaitKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function FlipBookKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export declare function AsepriteFlipBookKeyframe(properties?: KeyframeAnimationProperties, namespace?: string, name?: string): AnimationKeyframe; export type AnimationByType = AnimationProperties | number; export type AnimWithSmartAnim = [SmartAnimation | AnimationByType, ...AnimationByType[]]; export declare function OffsetAnimation(...keyframes: AnimWithSmartAnim): Animation; export declare function SizeAnimation(...keyframes: AnimWithSmartAnim): Animation; export declare function UVAnimation(...keyframes: AnimWithSmartAnim): Animation; export declare function ClipAnimation(...keyframes: AnimWithSmartAnim): Animation; export declare function ColorAnimation(...keyframes: AnimWithSmartAnim): Animation; export declare function AlphaAnimation(...keyframes: AnimWithSmartAnim): Animation; export declare function AnimationExtendsOf(animation: AnimationKeyframe | Animation, properties?: AnimationProperties): AnimationKeyframe; export {};