/**
 * 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 { AstFlowResourceAlias, AstFlowResourceSource, AstIdentifierBinding, CtxApiAlias, CtxApiResourceAliases, CtxMethodAlias, RunJsAstInspection, RunJsAuthoringContext, SharedCtxResourceCallInFunction, StaticFilterValueBinding, StaticStringBinding } from '../internal-types';
export declare function collectAstInvalidResourceTypeCall(node: any, method: string, capability: string, source: string, stringBindings: StaticStringBinding[], identifierBindings: AstIdentifierBinding[]): RunJsAstInspection['invalidResourceTypeCalls'];
export declare function collectAstFlowResourceAliasesFromAst(ast: any, source: string, ctxMethodAliases: CtxMethodAlias[], stringBindings: StaticStringBinding[], identifierBindings: AstIdentifierBinding[]): AstFlowResourceAlias[];
export declare function collectAstInvalidFlowResourceMethodCall(node: any, aliases: AstFlowResourceAlias[], source: string, identifierBindings: AstIdentifierBinding[], ctxMethodAliases: CtxMethodAlias[], stringBindings: StaticStringBinding[]): {
    invalidListCalls: RunJsAstInspection['invalidFlowResourceListCalls'];
    invalidMethodCalls: RunJsAstInspection['invalidFlowResourceMethodCalls'];
};
export declare function collectAstInvalidResourceActionCalls(ast: any, source: string, aliases: AstFlowResourceAlias[], identifierBindings: AstIdentifierBinding[], ctxMethodAliases: CtxMethodAlias[], ctxApiAliases: CtxApiAlias[], ctxApiResourceAliases: CtxApiResourceAliases, stringBindings: StaticStringBinding[], staticFilterValueBindings: StaticFilterValueBinding[], context: RunJsAuthoringContext): RunJsAstInspection['invalidResourceActionCalls'];
export declare function getRunJsDefaultDataSourceKey(context: RunJsAuthoringContext): string;
export declare function getMaybeAstFlowResourceSourceFromAst(node: any, aliases: AstFlowResourceAlias[], source: string, identifierBindings: AstIdentifierBinding[], ctxMethodAliases: CtxMethodAlias[], stringBindings: StaticStringBinding[]): AstFlowResourceSource | undefined;
export declare function collectPossibleAstFlowResourceSourcesFromAst(node: any, aliases: AstFlowResourceAlias[], source: string, identifierBindings: AstIdentifierBinding[], ctxMethodAliases: CtxMethodAlias[], stringBindings: StaticStringBinding[]): AstFlowResourceSource[];
export declare function getDirectAstFlowResourceSourceFromAst(node: any, aliases: AstFlowResourceAlias[], source: string, identifierBindings: AstIdentifierBinding[], ctxMethodAliases: CtxMethodAlias[], stringBindings: StaticStringBinding[]): AstFlowResourceSource | undefined;
export declare function getAstFlowResourceFactoryCallFromAst(node: any, ctxMethodAliases: CtxMethodAlias[], source: string, stringBindings: StaticStringBinding[], identifierBindings: AstIdentifierBinding[]): AstFlowResourceSource | undefined;
export declare function isAstCtxResourceMember(node: any, identifierBindings: AstIdentifierBinding[]): boolean;
export declare function collectAstSharedCtxResourceCallsInFunctions(ast: any, source: string, ctxMethodAliases: CtxMethodAlias[], identifierBindings: AstIdentifierBinding[]): SharedCtxResourceCallInFunction[];
