import type { Params } from '@feathersjs/feathers'; import { KnexAdapter } from '@feathersjs/knex'; import type { KnexAdapterParams, KnexAdapterOptions } from '@feathersjs/knex'; import type { Application } from '../../declarations'; import { AgentChannel, AgentChannelData, AgentChannelPatch, AgentChannelQuery } from './agentChannels.schema'; export type AgentChannelParams = KnexAdapterParams; /** * Default AgentChannelsService class. * Calls the standard Knex adapter service methods but can be customized with your own functionality. * * @template ServiceParams - The input params for the service * @extends KnexService */ export declare class AgentChannelsService extends KnexAdapter { app: Application; constructor(options: KnexAdapterOptions, app: Application); get(id: string, params?: ServiceParams): Promise<{ id: string; agentId: string; createdAt: string; channelKey: string; channelName: string; initialEvent: any; channelActive: boolean; }>; find(params?: ServiceParams): Promise | { id: string; agentId: string; createdAt: string; channelKey: string; channelName: string; initialEvent: any; channelActive: boolean; }[]>; create(data: AgentChannelData, params?: ServiceParams): Promise<{ id: string; agentId: string; createdAt: string; channelKey: string; channelName: string; initialEvent: any; channelActive: boolean; }>; patch(id: string, data: AgentChannelPatch, params?: ServiceParams): Promise<{ id: string; agentId: string; createdAt: string; channelKey: string; channelName: string; initialEvent: any; channelActive: boolean; }>; remove(id: string, params?: ServiceParams): Promise<{ id: string; agentId: string; createdAt: string; channelKey: string; channelName: string; initialEvent: any; channelActive: boolean; }>; toggleChannel(id: string, data: { channelActive: boolean; }, params?: ServiceParams): Promise<{ id: string; agentId: string; createdAt: string; channelKey: string; channelName: string; initialEvent: any; channelActive: boolean; }>; getChannels(agentId: string): Promise & { id: string; agentId: string; createdAt: string; channelKey: string; channelName: string; initialEvent: any; channelActive: boolean; }[]>; } /** * Returns options needed to initialize the AgentChannelsService. * * @param app - the Feathers application * @returns KnexAdapterOptions - options for initializing the Knex adapter */ export declare const getOptions: (app: Application) => KnexAdapterOptions;