/** * Strip leading and trailing slashes. `"/uploads/"`, `"uploads/"`, and * `"uploads"` all collapse to `"uploads"`; `"/"` collapses to `""`. */ export declare const trimSlashes: (s: string) => string; /** * Join a configured remote `root` with a virtual `key`, returning the path the * adapter hands to its client. The traversal guard runs on `key` here, so * every method that maps a key to a path gets the check for free. * * `root` shape is preserved: an absolute root (`/uploads`) yields an absolute * path, an empty/`"."` root yields a path relative to the connection's login * directory (the common SFTP chroot/home case), and a relative root prefixes * verbatim. */ export declare const joinRemotePath: (root: string, key: string) => string; //# sourceMappingURL=remote-path.d.ts.map