import { type BlockExecutor } from '../orchestration-schema.js'; export declare function normalizeSchemaNames(value: unknown): string[]; /** * @serverBlockDoc * { * "version": 1, * "functionName": "dropSchemas", * "displayName": "删除 Postgres Schemas", * "category": "database", * "description": "在一个 Postgres 数据源事务中幂等删除多个安全 Schema;cascade 默认 false。", * "inputs": [ * { "key": "datasource", "type": "string", "required": true, "description": "Schema 所在的 Postgres 数据源。" }, * { "key": "schemas", "type": "string[]", "required": true, "description": "待删除的安全 Schema 名称数组;允许空数组。" }, * { "key": "cascade", "type": "boolean", "required": false, "default": false, "description": "是否追加 CASCADE 删除 Schema 内对象。" } * ], * "outputs": [ * { "key": "schemas", "type": "string[]", "description": "已完成幂等删除处理的去重 Schema 名称。" }, * { "key": "dropped", "type": "number", "description": "已处理 Schema 数量;原本不存在的 Schema 也计入。" } * ], * "errors": [ * { "code": "BLOCK_INVALID_SCHEMA", "description": "schemas 或 cascade 无效,或包含非法、危险及保留 Schema 名称。" }, * { "code": "BLOCK_DATASOURCE_UNSUPPORTED_DATABASE", "description": "datasource 不是 Postgres。" }, * { "code": "BLOCK_SQL_UNSUPPORTED", "description": "执行器未提供事务运行器。" } * ], * "config": [], * "runtime": [ * { "key": "requiresDatasource", "type": "boolean", "value": true, "description": "需要 Postgres datasource,并在同一个连接事务中执行全部 DROP SCHEMA。" } * ], * "examples": [ * { "title": "删除业务 Schemas", "block": { "uuid": "drop_schemas", "functionName": "dropSchemas", "inputs": { "datasource": "MokelayFree", "schemas": ["e_abc123"], "cascade": true }, "outputs": ["schemas", "dropped"], "nextBlock": null } } * ] * } */ export declare const executeDropSchemasBlock: BlockExecutor;