import type { BlipClient } from '../client.ts'; import { type Identity } from '../types/index.ts'; import { type ConsumeOptions, Namespace, type SendCommandOptions } from './namespace.ts'; export declare class TunnelNamespace extends Namespace { constructor(blipClient: BlipClient, defaultOptions?: SendCommandOptions); /** * Retrieves metadata information about the tunnel origin and destination * This must only be called by a subbot * @returns An object containing: * - `owner` - The identity of the subbot owner (router) * - `originator` - The identity of the originator on the router (user) * - `destination` - The identity of the destination child (subbot) */ getTunnel(tunnelIdentityOrName: Identity | string, opts?: ConsumeOptions): Promise<{ owner: Identity; originator: Identity; destination: Identity; }>; /** * Retrieves the tunnel ID for a given originator and destination * Must only be called by a router * @param originator - The identity of the originator on the router (user) * @param destination - The identity of the destination child (subbot) * @returns The tunnel ID */ getTunnelId(originator: Identity, destination: Identity): Promise; } //# sourceMappingURL=tunnel.d.ts.map