import { IncomingMessage } from "http"; interface RequestWithSession extends IncomingMessage { session: Record; } export default class ServerStorage { request: RequestWithSession; /** * @param request The HTTP request that is expected to have a * "session" object property. */ constructor(request: IncomingMessage); /** * Gets the value at `key`. Returns a promise that will be resolved * with that value (or undefined for missing keys). */ get(key: string): Promise; /** * Sets the `value` on `key` and returns a promise that will be resolved * with the value that was set. */ set(key: string, value: any): Promise; /** * Deletes the value at `key`. Returns a promise that will be resolved * with true if the key was deleted or with false if it was not (eg. if * did not exist). */ unset(key: string): Promise; } export {};