type Return = { status: 200; file_path: string; } | { status: 403 | 404; }; /** * Maps a URL path onto a file in `dir`, in this order: * - `..` segments (encoded or not) are resolved against `/`, so they * can never climb above `dir`; the 403 check is a second guard * - 404 if there is no such file (so callers can fall through to pages) * - 403 if a symlink points outside `dir` */ export default function resolvePublicFile(dir: string, url_path: string): Return; export {};