/** An EditorFunction is an entity storing data needed to support Functions of predefined Function types inside Editor and supporting Editor lifecycle. */ interface EditorFunction { /** * EditorFunction ID. * @format GUID * @readonly */ _id?: string | null; } /** Invoke Function Request */ interface InvokeEditorFunctionRequest { /** * Id of the function requested to be invoked * @format GUID */ functionId: string | null; } /** Invoke Function Response */ interface InvokeEditorFunctionResponse { /** The result data returned by the executed Editor Function. Structure depends on the specific function implementation. */ output?: Record | null; } /** @docsIgnore */ type InvokeEditorFunctionApplicationErrors = { code?: 'NOT_FOUND'; description?: string; data?: Record; }; /** * Invokes the specified Editor Function. Returns a NOT_FOUND error if editor function can't be found by the provided id. * @param functionId - Id of the function requested to be invoked * @public * @documentationMaturity preview * @requiredField functionId * @permissionId functions:v1:editor_function:invoke_editor_function * @returns Invoke Function Response * @fqn wix.functions.editorfunctions.v1.EditorFunctions.InvokeEditorFunction */ declare function invokeEditorFunction(functionId: string): Promise; export { type EditorFunction, type InvokeEditorFunctionApplicationErrors, type InvokeEditorFunctionRequest, type InvokeEditorFunctionResponse, invokeEditorFunction };