import type { AoiBase } from "./AoiBase"; import type { AoiFunction } from "./AoiFunction"; import { Collection } from "@telegram.ts/collection"; import type { DataFunction, MaybeArray, CustomJSFunction } from "./AoiTyping"; declare class CustomFunctionManager { telegram: AoiBase; availableFunctions: Collection; constructor(telegram: AoiBase, availableFunctions: Collection); createCustomFunction(dataFunction: MaybeArray): this; ensureCustomFunction(dataFunction: MaybeArray): this; removeFunction(functionName: string | string[]): boolean; editCustomFunction(dataFunction: MaybeArray): boolean; getCustomFunction(functionName: string): CustomJSFunction | undefined; getCustomFunction(functionName: string[]): (CustomJSFunction | undefined)[]; hasCustomFunction(functionName: string): boolean; hasCustomFunction(functionName: string[]): { name: string; result: boolean; }[]; get countCustomFunction(): number; private validateAndNormalizeFunction; private addCustomFunction; } export { CustomFunctionManager };