export interface HstsOptions { /** `max-age` in seconds. */ maxAge?: number; includeSubDomains?: boolean; preload?: boolean; } export interface SecurityOptions { /** `X-Content-Type-Options: nosniff`. Default on. */ contentTypeOptions?: boolean; /** `X-Frame-Options`. Default `'DENY'`; pass `false` to omit. */ frameOptions?: 'DENY' | 'SAMEORIGIN' | false; /** `Referrer-Policy`. Default `'no-referrer'`; pass `false` to omit. */ referrerPolicy?: string | false; /** * `Strict-Transport-Security`. Off by default — never forced, so localhost dev * over HTTP is unaffected. Pass `true` for a one-year default or an object. */ hsts?: boolean | HstsOptions; /** Optional `Content-Security-Policy` string, passed through verbatim. */ csp?: string; } /** Normalize the `security` option to concrete defaults, or `undefined` when off. */ export declare const normalizeSecurityOptions: (option: boolean | SecurityOptions) => SecurityOptions | undefined; /** The security headers implied by the options, as a plain map. */ export declare const securityHeaders: (options: SecurityOptions) => Record; /** * Merge the security headers into a response. Handler-set headers always win — * a header the handler already set is never overwritten. */ export declare const applySecurityHeaders: (options: SecurityOptions, response: Response) => Response; //# sourceMappingURL=security.d.ts.map