import { CloudCodeEnvironment } from './CloudCodeEnvironment'; import { Day as DayConstructor, Attachment as AttachmentConstructor } from '@journeyapps/db'; declare global { const CloudCode: CloudCodeEnvironment; const Day: typeof DayConstructor; const Attachment: typeof AttachmentConstructor; type Day = DayConstructor; type Attachment = AttachmentConstructor; } declare module 'http' { interface Agent { /** * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. * Default: 256. */ maxFreeSockets: number; /** * Keep sockets around even when there are no outstanding requests, * so they can be used for future requests without having to reestablish a TCP connection. * Not to be confused with the keep-alive value of the Connection header. * The Connection: keep-alive header is always sent when using an agent except when the * Connection header is explicitly specified or when the keepAlive and maxSockets options * are respectively set to false and Infinity, in which case Connection: close will be used. * Default: false. */ keepAlive: boolean; } }