import { Container } from "./Container"; import type { CustomJSFunction } from "../AoiTyping"; interface ICallbackResolve { id: string; code?: string; replace: string; with: string; } interface ICallbackReject { id: string; reason: string; custom?: boolean; } declare class ParserFunction { readonly structures: CustomJSFunction; inside: string | null; fields: string[]; readonly id: string; raw: string | null; overloads: ParserFunction[]; parentID: string | null; ifContent: ParserFunction[]; elseContent: ParserFunction[]; elseIfContent: ParserFunction[]; elseProcessed: boolean; elseIfProcessed: boolean; catchProcessed: boolean; tryContent: ParserFunction[]; catchContent: ParserFunction[]; isSilentFunction: boolean; constructor(structures: CustomJSFunction); get rawTotal(): string; setInside(inside: string): ParserFunction; setFields(fields: string | string[]): ParserFunction; setParent(parentID: string): ParserFunction; addOverload(overloads: ParserFunction): ParserFunction; filterFunctions(loadFunctions: ParserFunction[]): ParserFunction[]; resolveFields(container: Container, indexes?: number[], checkArguments?: boolean): Promise; resolveTypeArguments(array: any[], container: Container, indexes?: number[]): Promise; resolveCode(container: Container, code: string): Promise; resolveAllFields(container: Container): Promise; findOverloads(code: string): ParserFunction[]; getOther(): T; callback(container: Container, func: ParserFunction, code?: string): Promise; resolve(result?: any, code?: any): ICallbackResolve; reject(reason?: string, customError?: boolean): ICallbackReject; } export { ParserFunction, ICallbackResolve, ICallbackReject };