/**
 * Rewrite incoming path matching the `source` pattern into the `destination` pattern.
 *
 * See [`path-to-regexp`](https://github.com/pillarjs/path-to-regexp) for accepted pattern formats.
 *
 * @param source - the original pattern of incoming paths
 * @param destination - the target pattern to convert into
 */
export declare function rewritePath(source: string, destination: string): {
  rewrite(pathname: string): string | false;
};
export declare function isMarkdownPreferred(request: Request, options?: {
  markdownMediaTypes?: string[];
}): boolean;