/// import { IncomingMessage, ServerResponse } from "http"; interface ContentSecurityPolicyDirectiveValueFunction { (req: IncomingMessage, res: ServerResponse): string; } declare type ContentSecurityPolicyDirectiveValue = string | ContentSecurityPolicyDirectiveValueFunction; interface ContentSecurityPolicyDirectives { [directiveName: string]: Iterable; } export interface ContentSecurityPolicyOptions { directives?: ContentSecurityPolicyDirectives; reportOnly?: boolean; } declare const getDefaultDirectives: () => { [x: string]: Iterable; }; declare function contentSecurityPolicy(options?: Readonly): (req: IncomingMessage, res: ServerResponse, next: (err?: Error) => void) => void; declare namespace contentSecurityPolicy { var getDefaultDirectives: () => { [x: string]: Iterable; }; } export default contentSecurityPolicy; export { getDefaultDirectives };