import type { PossiblyAsync, MaybeArray, DefaultFnValue, ReturnPrimitive, DataFunction } from "./AoiTyping"; import type { Container, ParserFunction, ICallbackResolve, ICallbackReject } from "./core/"; declare enum ArgsType { Any = "any", String = "string", Number = "number", Boolean = "boolean", Object = "object", Array = "array", Time = "time", Chat = "chat", Url = "url" } declare class AoiFunction { #private; name: string; params: string[]; version?: string; aliases: string[]; brackets?: boolean; other?: any; reverseReading?: boolean; type?: "javascript" | "aoitelegram"; fields: { name?: string; rest?: boolean; type?: ArgsType[]; required?: boolean; converType?: ArgsType; defaultValue?: PossiblyAsync; }[]; callback?: (ctx: Container, func: ParserFunction, code?: string) => PossiblyAsync; code?: string; constructor(parameters?: DataFunction); setName(name: string): AoiFunction; setVersion(version: string): AoiFunction; setOther(other: any): this; setReverseReading(reverseReading: boolean): AoiFunction; setAliases(aliases: string | string[]): AoiFunction; setFields(fields: MaybeArray<{ name: string; rest?: boolean; type?: ArgsType[]; converType?: ArgsType; required: true; } | { name: string; rest?: boolean; type?: ArgsType[]; required?: false; defaultValue?: DefaultFnValue | ReturnPrimitive; }>): AoiFunction; setBrackets(brackets?: boolean): AoiFunction; onCallback(callback: (ctx: Container, func: ParserFunction, code?: string) => PossiblyAsync): AoiFunction; setParam(params: string | string[]): AoiFunction; setCode(code: string): AoiFunction; } export { AoiFunction, ArgsType };