UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

24 lines (23 loc) 806 B
/// <reference types="node" /> import type { IDestroyable } from 'destroyable'; import express from 'express'; import http from 'http'; import { DefaultEventsMap, Server } from 'socket.io'; import type { TODO_any } from '../utils/organization/TODO_any'; import type { TODO_narrow } from '../utils/organization/TODO_narrow'; export type RemoteServer = IDestroyable & { /** * HTTP server instance */ readonly httpServer: http.Server<TODO_any>; /** * Express application instance * * Note: This is useful for adding custom routes */ readonly expressApp: express.Express; /** * Socket.io server instance */ readonly socketIoServer: Server<TODO_narrow<DefaultEventsMap>, TODO_narrow<DefaultEventsMap>, TODO_narrow<DefaultEventsMap>, TODO_any>; };