import type { LifecycleAssessmentRequest, LifecycleAssessmentResponse } from '../services/assessment-service'; import { LifecycleAssessmentService } from '../services/assessment-service'; /** Authenticated caller context attached by middleware. */ export interface AuthContext { actor: string; authMethod?: string; scopes?: string[]; } /** Transport/auth preferences extracted from the request. */ export interface TransportAuthPreferences { preferredTransport?: 'rest' | 'mcp' | 'webhook' | 'sdk'; preferredAuthMethod?: 'api-key' | 'oauth2' | 'bearer' | 'header' | 'basic' | 'webhook-signing' | 'service-account'; } export interface HttpRequest> { body?: TBody; params?: TParams; query?: Record; /** Authenticated caller context, populated by auth middleware. */ authContext?: AuthContext; /** Transport/auth preferences from the request. */ transportPreferences?: TransportAuthPreferences; } export interface HttpResponse> { status: number; body: T; } export declare const createLifecycleHandlers: (service: LifecycleAssessmentService) => { runAssessment: (req: HttpRequest) => Promise>; getPlaybook: (req: HttpRequest) => Promise; };