import { AnnotatedFunction } from '@copilotkit/shared'; import { CopilotKitServiceAdapter } from '../types/service-adapter.js'; interface CopilotBackendConstructorParams { functions?: AnnotatedFunction[]; } declare class CopilotBackend { private functions; constructor(params?: CopilotBackendConstructorParams); addFunction(func: AnnotatedFunction): void; removeFunction(funcName: string): void; stream(forwardedProps: any, serviceAdapter: CopilotKitServiceAdapter): ReadableStream; response(req: Request, serviceAdapter: CopilotKitServiceAdapter): Promise; } export { CopilotBackend };