/**
 * 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<string>;
export declare const ACTION_MODEL_USES: Set<string>;
export declare const VALUE_MODEL_USES: Set<string>;
export declare const KNOWN_MODEL_USES: Set<string>;
export declare const PUBLIC_BLOCK_TYPE_BY_MODEL_USE: Record<string, string>;
export declare const SURFACE_STYLE_BY_ID: Record<string, RunJsAuthoringSurfaceStyle>;
export declare const SURFACE_ALLOWED_MODEL_USES: Record<string, Set<string>>;
export declare const ALLOWED_CTX_ROOTS: Set<string>;
export declare const CHART_CTX_ROOTS: Set<string>;
export declare const BLOCKED_CTX_CAPABILITIES: Record<string, {
    capability: string;
    reroute: string;
}>;
export declare const FORBIDDEN_BARE_GLOBALS: Set<string>;
export declare const RUNJS_ALLOWED_BARE_GLOBALS: Set<string>;
export declare const RUNJS_ALLOWED_BARE_GLOBALS_BY_MODEL_USE: Record<string, Set<string>>;
export declare const NON_METHOD_CALL_KEYWORDS: Set<string>;
export declare const ACTION_TYPE_ALIASES: Map<string, string>;
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<string>;
export declare const RUNJS_DATE_FILTER_OPERATORS: Set<string>;
export declare const RUNJS_UNSUPPORTED_DATE_RANGE_VALUE_KEYS: Set<string>;
export declare const FLOW_RESOURCE_CLASS_NAMES: Set<string>;
export declare const INIT_RESOURCE_CLASS_NAMES: Set<string>;
export declare const AST_CTX_METHOD_NAMES: Set<string>;
export declare const RUNJS_CTX_NON_FUNCTION_ROOTS: Set<string>;
export declare const RUNJS_CTX_NON_FUNCTION_ROOTS_BY_MODEL_USE: Record<string, Set<string>>;
export declare const REACT_NODE_COMPONENT_PROP_NAMES: Set<string>;
export declare const CANONICAL_CTX_LIB_MEMBERS: string[];
export declare const CTX_LIB_MEMBER_BY_LOWERCASE: Map<string, string>;
export declare const RUNJS_CTX_LIB_ANTD_ALLOWED_MEMBERS: Set<string>;
export declare const RUNJS_CTX_LIB_ALLOWED_MEMBERS_BY_LIBRARY: Map<string, Set<string>>;
export declare const RUNJS_CTX_API_ALLOWED_MEMBERS: Set<string>;
export declare const RUNJS_CTX_API_AUTH_ALLOWED_MEMBERS: Set<string>;
export declare const RUNJS_RESOURCE_METHODS: Set<string>;
export declare const RUNJS_COLLECTION_RESOURCE_ACTIONS: Set<string>;
export declare const RUNJS_COLLECTION_RESOURCE_ACTION_ALIASES: Map<string, string[]>;
export declare const RUNJS_RESOURCE_ENDPOINT_ACTION_PATTERN = "[A-Za-z_$][\\w$-]*";
export declare const FLOW_RESOURCE_BASE_METHODS: Set<string>;
export declare const API_RESOURCE_METHODS: Set<string>;
export declare const RECORD_RESOURCE_METHODS: Set<string>;
export declare const RUNJS_RESOURCE_CHAINABLE_STATE_METHODS: Set<string>;
export declare const MULTI_RECORD_RESOURCE_METHODS: Set<string>;
export declare const SINGLE_RECORD_RESOURCE_METHODS: Set<string>;
export declare const SQL_RESOURCE_METHODS: Set<string>;
export declare const FLOW_RESOURCE_METHODS_BY_TYPE: Record<Exclude<FlowResourceInstanceType, 'unknown'>, Set<string>>;
export declare const UNKNOWN_FLOW_RESOURCE_METHODS: Set<string>;
export declare const FLOW_RESOURCE_METHOD_SUGGESTIONS: Map<string, string>;
export declare const CONTEXT_FIRST_REPAIR_CLASSES: Set<RunJsAuthoringRepairClass>;
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.";
