import { ExpressServer, KoaServer, SsrsxOptions, DumbServer } from '../types';
import { HttpServer } from '../types';
declare const getParseContext: <T = any>(key: string) => T;
declare const getContext: <T = any>() => T;
declare const getServer: () => HttpServer;
declare const getHttpServer: (server: HttpServer) => KoaServer | ExpressServer | DumbServer;
declare const getProtocol: (server: HttpServer) => string;
declare const getHostname: (server: HttpServer) => string;
declare const getPort: (server: HttpServer) => number;
declare const getUrl: (server: HttpServer) => string;
declare const getPathname: (server: HttpServer) => string;
declare const getBody: <T = any>(server: HttpServer) => T;
declare const getSession: <T = any>(server: HttpServer) => T;
declare const serverSideRedirect: (server: HttpServer, to: string) => void;
declare const getNonce: (server: HttpServer) => string;
declare const getUserContext: (server: HttpServer, option: SsrsxOptions<unknown>) => Promise<unknown>;
export { getServer, getProtocol, getHostname, getPort, getHttpServer, getParseContext, getContext, getBody, getUrl, getPathname, getSession, serverSideRedirect, getNonce, getUserContext };
