import type { ApiServer } from '../ApiServer'; import type { SubdomainService } from '../../subdomain/SubdomainService'; export interface SubdomainHandlerOptions { subdomainService: SubdomainService; } /** * Handler for subdomain management API * * GET /v1/subdomain/check?name=xxx - Check subdomain availability (public) * GET /v1/subdomain - List user's subdomain registrations * GET /v1/subdomain/:name - Get subdomain info * POST /v1/subdomain/register - Register a new subdomain * DELETE /v1/subdomain/:name - Release a subdomain * POST /v1/subdomain/:name/start - Start tunnel * POST /v1/subdomain/:name/stop - Stop tunnel */ export declare function registerSubdomainRoutes(server: ApiServer, options: SubdomainHandlerOptions): void;