@botonic/plugin-flow-builder
Version:
Use Flow Builder to show your contents
12 lines (11 loc) • 602 B
TypeScript
import { ActionRequest } from '@botonic/react';
import { HtFunctionArgument, HtFunctionArguments, HtFunctionNode } from '../content-fields/hubtype-fields';
export declare const DEFAULT_FUNCTION_NAMES: string[];
export declare class CustomFunction {
functions: Record<any, any>;
currentRequest: ActionRequest;
locale: string;
constructor(functions: Record<any, any>, currentRequest: ActionRequest, locale: string);
call(functionNode: HtFunctionNode): Promise<string>;
}
export declare function getArgumentsByLocale(args: HtFunctionArguments[], locale: string): HtFunctionArgument[];