import { P as SharedState, d as DevframeNodeContext } from "./devframe-BuR6n9ZD.mjs"; //#region src/node/hub-internals/context.d.ts interface InternalAnonymousAuthStorage { trusted: Record; } interface RemoteTokenRecord { dockId: string; /** Dock URL origin — matched against WS handshake `Origin` header when `originLock` is on. */ origin: string; originLock: boolean; } interface DevframeInternalContext { storage: { auth: SharedState; }; /** * Revoke an auth token: remove from storage and notify all connected clients * using this token that they are no longer trusted. */ revokeAuthToken: (token: string) => Promise; /** * Session-only tokens issued to remote-UI iframe docks. Not persisted — * regenerated on every dev-server restart. */ remoteTokens: Map; allocateRemoteToken: (dockId: string, origin: string, originLock: boolean) => string; revokeRemoteToken: (token: string) => void; revokeRemoteTokensForDock: (dockId: string) => void; /** * Returns true if `token` is a valid remote token and, when `originLock` is * on, `requestOrigin` matches the recorded dock origin. */ isRemoteTokenTrusted: (token: string, requestOrigin?: string) => boolean; /** * Populated by `createWsServer` once the WS port is bound. Consumed by the * docks host when enriching remote iframe URLs with a connection descriptor. */ wsEndpoint?: { /** Full `ws://` or `wss://` URL with host and port. */url: string; }; } declare const internalContextMap: WeakMap; declare function getInternalContext(context: DevframeNodeContext): DevframeInternalContext; //#endregion export { internalContextMap as a, getInternalContext as i, InternalAnonymousAuthStorage as n, RemoteTokenRecord as r, DevframeInternalContext as t };