@gram-ai/elements 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { IncomingMessage, ServerResponse } from 'node:http';
2
- export declare const createElementsServerHandlers: () => {
3
- chat: typeof chatHandler;
4
- };
5
- type NextFunction = (err?: unknown) => void;
6
- declare function chatHandler(req: IncomingMessage, res: ServerResponse, next: NextFunction): Promise<void>;
2
+ type Handler = (req: IncomingMessage, res: ServerResponse) => Promise<void>;
3
+ declare const handlers: readonly ["chat"];
4
+ type HandlerName = (typeof handlers)[number];
5
+ type ServerHandlers = Record<HandlerName, Handler>;
6
+ export declare const createElementsServerHandlers: () => ServerHandlers;
7
7
  export {};