/** * Project-pin routing-URL helpers (design 06 D14 / defect B4). The routing pin is the `/p/` * path segment appended to a hub URL so an agent session launched in a project folder routes strictly * to that project's engine instance. The pin is a ROUTING segment only — never part of the OAuth * identity resource (decision M8), and never recorded as a credential's `serverTarget` * ({@link EngineAdapter.loginServerTarget} strips it). */ /** * Add (or replace) the `/p/` routing segment on a URL, preserving scheme/host/port and any * non-pin path. An existing trailing `/p/<8-hex>` is replaced (never stacked). Falls back to string * surgery for a non-absolute URL. Never returns a trailing slash. */ export declare function pinUrl(rawUrl: string, pin: string): string; /** Remove a trailing `/p/` routing segment from a URL, leaving the underlying hub URL. */ export declare function stripPinFromUrl(rawUrl: string): string; //# sourceMappingURL=routing.d.ts.map