import { AgentScopeConfig, ProjectScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js"; import { PaginationConfig } from "../../types/utility.js"; import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js"; import { SkillApiInsert, SkillApiUpdate, SkillFileApiInsert, SkillFileSelect, SkillSelect, SubAgentSkillWithIndex } from "../../types/entities.js"; //#region src/data-access/manage/skills.d.ts interface SkillRecordWithFiles extends SkillSelect { files: SkillFileSelect[]; } declare const getSkillFilesBySkillIds: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillIds: string[]; }) => Promise>; declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; }) => Promise<{ id: string; name: string; createdAt: string; updatedAt: string; metadata: Record | null; description: string; content: string; projectId: string; tenantId: string; } | null>; declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; }) => Promise; declare const getSkillFileById: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; fileId: string; }) => Promise; declare const createSkillFileById: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; data: SkillFileApiInsert; }) => Promise; declare const updateSkillFileById: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; fileId: string; content: string; }) => Promise; declare const deleteSkillFileById: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; fileId: string; }) => Promise; declare const listSkills: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; pagination?: PaginationConfig; }) => Promise<{ data: { createdAt: string; updatedAt: string; id: string; name: string; description: string; content: string; metadata: Record | null; projectId: string; tenantId: string; }[]; pagination: { page: number; limit: number; total: number; pages: number; }; }>; declare const listSkillsWithFiles: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; pagination?: PaginationConfig; }) => Promise<{ data: { files: { createdAt: string; updatedAt: string; skillId: string; filePath: string; content: string; projectId: string; tenantId: string; id: string; }[]; createdAt: string; updatedAt: string; id: string; name: string; description: string; content: string; metadata: Record | null; projectId: string; tenantId: string; }[]; pagination: { page: number; limit: number; total: number; pages: number; }; }>; interface WithTenantIdProjectId { tenantId: string; projectId: string; } declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise; declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{ id: string; name: string; createdAt: string; updatedAt: string; metadata: Record | null; description: string; content: string; projectId: string; tenantId: string; }>; declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; data: SkillApiUpdate; }) => Promise; declare const deleteSkill: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; skillId: string; }) => Promise; declare const getSkillsForSubAgents: (db: AgentsManageDatabaseClient) => (params: { scopes: AgentScopeConfig; subAgentIds: string[]; }) => Promise; declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: { scopes: SubAgentScopeConfig; skillId: string; index: number; alwaysLoaded?: boolean; }) => Promise<{ id: string; createdAt: string; updatedAt: string; projectId: string; tenantId: string; agentId: string; subAgentId: string; index: number; alwaysLoaded: boolean; skillId: string; }>; declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: { scopes: AgentScopeConfig; subAgentSkillId: string; }) => Promise; //#endregion export { createSkill, createSkillFileById, deleteSkill, deleteSkillFileById, deleteSubAgentSkill, getSkillById, getSkillByIdWithFiles, getSkillFileById, getSkillFilesBySkillIds, getSkillsForSubAgents, listSkills, listSkillsWithFiles, updateSkill, updateSkillFileById, upsertSkill, upsertSubAgentSkill };