/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import type { FlowResourceInstanceType } from '../internal-types'; import type { RunJsAuthoringRepairClass, RunJsAuthoringSurfaceStyle } from '../types'; export declare const RENDER_MODEL_USES: Set; export declare const ACTION_MODEL_USES: Set; export declare const VALUE_MODEL_USES: Set; export declare const KNOWN_MODEL_USES: Set; export declare const PUBLIC_BLOCK_TYPE_BY_MODEL_USE: Record; export declare const SURFACE_STYLE_BY_ID: Record; export declare const SURFACE_ALLOWED_MODEL_USES: Record>; export declare const ALLOWED_CTX_ROOTS: Set; export declare const CHART_CTX_ROOTS: Set; export declare const BLOCKED_CTX_CAPABILITIES: Record; export declare const RUNJS_ALLOWED_BARE_GLOBALS: Set; export declare const RUNJS_ALLOWED_BARE_GLOBALS_BY_MODEL_USE: Record>; export declare const NON_METHOD_CALL_KEYWORDS: Set; export declare const ACTION_TYPE_ALIASES: Map; export declare const REACT_HOOK_NAMES: string[]; export declare const REACT_HOOK_PATTERN: string; export declare const RUNJS_RESOURCE_ACTION_PATTERN = "(?:list|get|create|update|destroy)"; export declare const MAX_RUNJS_SOURCE_LENGTH: number; export declare const MAX_RUNJS_TOTAL_SOURCE_LENGTH: number; export declare const MAX_RUNJS_SOURCES_PER_REQUEST = 100; export declare const MAX_RUNJS_ERRORS_PER_SOURCE = 20; export declare const RUNJS_SUPPORTED_FILTER_OPERATORS: Set; export declare const RUNJS_DATE_FILTER_OPERATORS: Set; export declare const RUNJS_UNSUPPORTED_DATE_RANGE_VALUE_KEYS: Set; export declare const FLOW_RESOURCE_CLASS_NAMES: Set; export declare const INIT_RESOURCE_CLASS_NAMES: Set; export declare const AST_CTX_METHOD_NAMES: Set; export declare const RUNJS_CTX_NON_FUNCTION_ROOTS: Set; export declare const RUNJS_CTX_NON_FUNCTION_ROOTS_BY_MODEL_USE: Record>; export declare const REACT_NODE_COMPONENT_PROP_NAMES: Set; export declare const CANONICAL_CTX_LIB_MEMBERS: string[]; export declare const CTX_LIB_MEMBER_BY_LOWERCASE: Map; export declare const RUNJS_CTX_LIB_ANTD_ALLOWED_MEMBERS: Set; export declare const RUNJS_CTX_LIB_ALLOWED_MEMBERS_BY_LIBRARY: Map>; export declare const RUNJS_CTX_API_ALLOWED_MEMBERS: Set; export declare const RUNJS_CTX_API_AUTH_ALLOWED_MEMBERS: Set; export declare const RUNJS_RESOURCE_METHODS: Set; export declare const RUNJS_COLLECTION_RESOURCE_ACTIONS: Set; export declare const RUNJS_COLLECTION_RESOURCE_ACTION_ALIASES: Map; export declare const RUNJS_RESOURCE_ENDPOINT_ACTION_PATTERN = "[A-Za-z_$][\\w$-]*"; export declare const FLOW_RESOURCE_BASE_METHODS: Set; export declare const API_RESOURCE_METHODS: Set; export declare const RECORD_RESOURCE_METHODS: Set; export declare const RUNJS_RESOURCE_CHAINABLE_STATE_METHODS: Set; export declare const MULTI_RECORD_RESOURCE_METHODS: Set; export declare const SINGLE_RECORD_RESOURCE_METHODS: Set; export declare const SQL_RESOURCE_METHODS: Set; export declare const FLOW_RESOURCE_METHODS_BY_TYPE: Record, Set>; export declare const UNKNOWN_FLOW_RESOURCE_METHODS: Set; export declare const FLOW_RESOURCE_METHOD_SUGGESTIONS: Map; export declare const CONTEXT_FIRST_REPAIR_CLASSES: Set; export declare const RUNJS_FIX_AND_RETRY_INSTRUCTION = "Do not skip this JS/RunJS step. Fix the error and retry the same write. If the response contains errors[], fix every listed error in one payload revision before retrying. Do not remove, defer, or replace the JS/RunJS capability to bypass validation."; export declare const RUNJS_CONTEXT_AND_RETRY_INSTRUCTION = "Do not skip this JS/RunJS step. Resolve the blocking context/problem first, then retry the same write. If the response contains errors[], fix every listed error in one payload revision before retrying. Do not remove, defer, or replace the JS/RunJS capability to bypass validation.";