import { Request } from 'express'; import { Context, TraceId, Tracer } from 'zipkin'; import { option } from 'zipkin'; import { HealthCheckList } from './types'; export interface ContextualRequest extends Request { context: { parentId: string; spanId: string; traceId: string; sampled: option.IOption; }; } export interface CreateAppOptions { accessLoggingBypassUrls?: string[]; cookieSessionName?: string; context: Context; corsWhitelist?: string[]; cspChildSrc?: string[]; cspConnectSrc?: string[]; cspDefaultSrc?: string[]; cspFontSrc?: string[]; cspFrameSrc?: string[]; cspImgSrc?: string[]; cspMediaSrc?: string[]; cspObjectSrc?: string[]; cspReportUri?: string; cspScriptSrc?: string[]; cspStyleSrc?: string[]; enableCors?: boolean; enableCsp?: boolean; jsonBodyContentType?: string; jsonBodySizeLimit?: string; livenessChecks?: HealthCheckList; livenessCheckEndpoint?: string; logger: any; metricsEndpoint?: string; morganStream: any; readinessChecks?: HealthCheckList; readinessCheckEndpoint?: string; serviceId: string; tracer: Tracer; urlEncodedBodyContentType?: string; urlEncodedBodySizeLimit?: string; } export declare function createApp({ accessLoggingBypassUrls, cookieSessionName, context, corsWhitelist, cspChildSrc, cspConnectSrc, cspDefaultSrc, cspFontSrc, cspFrameSrc, cspImgSrc, cspMediaSrc, cspObjectSrc, cspReportUri, cspScriptSrc, cspStyleSrc, enableCors, enableCsp, jsonBodyContentType, jsonBodySizeLimit, livenessChecks, livenessCheckEndpoint, logger, metricsEndpoint, morganStream, readinessChecks, readinessCheckEndpoint, serviceId, tracer, urlEncodedBodyContentType, urlEncodedBodySizeLimit, }: CreateAppOptions): import("express-serve-static-core").Express; export interface CreateHealthCheckMiddlewareOptions { checks: HealthCheckList; } export interface CreateAccessLoggerMiddlewareOptions { serviceId: string; morganStream: any; accessLoggingBypassUrls: string[]; } export interface CreateContextMiddlewareOptions { context: Context; } export interface CreateCorsMiddlewareOptions { whitelist: string[]; }