/**
 * 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 { McpTool } from '@nocobase/ai';
import { Application } from '@nocobase/server';
type McpToolDefinitionWithBaseUrl = import('openapi-mcp-generator').McpToolDefinition & {
    baseUrl?: string;
};
export declare const DEFAULT_MCP_PACKAGE_PATTERNS: any[];
export declare function normalizePackageName(packageName: string): string;
export declare function normalizePackagePatterns(packageNames?: string[]): string[];
export declare function parseResourceActionFromPath(pathTemplate: string): {
    resourceName?: undefined;
    actionName?: undefined;
} | {
    resourceName: string;
    actionName: string;
};
export declare function normalizeMcpToolName(tool: Pick<McpToolDefinitionWithBaseUrl, 'name' | 'pathTemplate'>): string;
export declare function collectMcpToolsFromSwagger(options: {
    app: Application;
    packagePatterns?: string[];
}): Promise<McpTool[]>;
export {};
