import { Params } from '@feathersjs/feathers'; import { UserInterface } from '@magickml/agent-server-schemas'; /** * Interface for CreateData objects */ interface UploadData { agents: any; documents: any; spells: any; projectId: string; } export type CreateProjectParams = { owner: string; name: string; description: string; projectId: string; }; /** * Interface for custom params including user information */ export interface ProjectParams extends Params { user: UserInterface; query: any; } /** * ProjectsService class provides functionality to find and create projects. * By default, it calls the standard Knex adapter service methods, * but can be customized with your own functionality. */ export declare class ProjectsService { /** * Find projects with matching projectId and return their agents, spells, and documents. * @param params - Project and user parameters * @returns - An object containing the agents, spells and documents of the project */ find(params: ProjectParams): Promise<{ agents: any; spells: any; documents: any; }>; create(params: CreateProjectParams): Promise; /** * Create a new project with the given data (agents, documents, spells, projectId) * @param data - The data required to create a new project * @returns - An object containing the created agents, spells and documents */ projectImport(data: UploadData): Promise<{ agents: any; spells: any; documents: any; }>; } export {};