import type { ResolvedShareUrl, ShareReachability } from './share-types.js'; export interface ShareUrlContext { gatewayHost: string; gatewayPort: number; /** * User-configured reverse-proxy origin (`gateway.publicUrl`), already * normalized to `${protocol}//${host}` (no trailing slash). * * When present, the gateway is publicly reachable at this URL even if the * built-in FRP tunnel is not running — file shares can be served at * `/s/` and site shares at the subpath fallback * `/site//`. */ reverseProxyPublicUrl?: string | null; } export declare function resolveShareUrl(token: string, ctx: ShareUrlContext): ResolvedShareUrl; export declare function resolveReachabilityForList(ctx: ShareUrlContext): ShareReachability; export interface SiteShareUrlContext extends ShareUrlContext { /** Token used as the `/site/:token/` subpath label. */ token: string; /** Subdomain label used at `https://