import FunctionContext from "./FunctionContext"; import { ArgumentsSet, FunctionDescription } from "./FunctionDescription"; /** * Base class for all transformer functions. */ declare abstract class TransformerFunction { protected readonly description: FunctionDescription; protected constructor(description: FunctionDescription); parseArguments(args?: Record | (string | null)[]): ArgumentsSet | undefined; /** * Apply the function to the given context. * @param context the context * @return the result of the function */ abstract apply(context: FunctionContext): Promise; /** * Check if the function allows arguments to be used as input. * @return true if arguments can be used as input, false otherwise */ allowsArgumentsAsInput(): boolean | undefined; /** * Check if the function allows arguments to be used as input. * @return true if arguments can be used as input, false otherwise */ inputIsRaw(): boolean | undefined; } export default TransformerFunction; //# sourceMappingURL=TransformerFunction.d.ts.map