import { BridgeOperationType } from './protocol.js'; export declare const ALLOWED_OPERATIONS: ReadonlySet; export interface SecurityConfig { authToken?: string; allowedOrigins?: string[]; requireAuth?: boolean; } export declare class BridgeSecurity { private authToken?; private allowedOrigins; private requireAuth; constructor(config?: SecurityConfig); /** * Validate incoming HTTP/WebSocket origin */ isOriginAllowed(origin?: string): boolean; /** * Validate authentication token */ isTokenValid(token?: string): boolean; /** * Validate that an operation is in the strict whitelist (SPEC ยง52) */ isOperationAllowed(operation: string): operation is BridgeOperationType; /** * Validate and sanitize file paths */ validateFilePath(rawPath: string): { valid: boolean; normalizedPath?: string; error?: string; }; }