export interface RewriteLinkOptions { basePath: string; originHost?: string; skipCanonical?: boolean; } export interface HTMLResponse extends Response { parsed?: any; } export declare function rewriteLinks(req: Request, resp: HTMLResponse | Promise, opts: RewriteLinkOptions): Promise;