import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
import type { AppConfig } from '../config.js';
import type { AuthService } from '../auth/authService.js';
import type { TerminalManager } from '../terminal/TerminalManager.js';
export interface TerminalRouteServices {
    authService: AuthService;
    terminalManager: TerminalManager;
}
interface AuthContext {
    sessionId?: string;
}
export declare function authenticateTerminalRequest(authService: AuthService, request: FastifyRequest, reply?: FastifyReply): Promise<AuthContext | null>;
export declare function registerTerminalRoutes(app: FastifyInstance, config: AppConfig, services: TerminalRouteServices): Promise<void>;
export {};
