import { ArgumentType } from "./ArgumentType"; import FunctionContext from "./FunctionContext"; import { FunctionDescription } from "./FunctionDescription"; /** * Base class for all transformer functions. */ declare class TransformerFunction { protected readonly defaultValues: Record; protected readonly description: FunctionDescription; constructor(description: FunctionDescription); private static getDefaultValue; /** * Apply the function to the given context. * @param context the context * @return the result of the function */ apply(context: FunctionContext): Promise; /** * Get the argument type for the given name. * @param name the name of the argument (null will return the primary argument) * @return the argument type or null if not found */ getArgument(name: string): ArgumentType | null; /** * Get the arguments for this function. * @return the function arguments */ getArguments(): Record | undefined; /** * Get the default value for the given argument name. * @param name the argument name * @return the default value or null if not found */ getDefaultValue(name: string): any; } export default TransformerFunction; //# sourceMappingURL=TransformerFunction.d.ts.map