export interface MeshPeer { id: string; name: string; host: string; port: number; capabilities: string[]; deviceInfo?: string; lastSeen: number; } export interface MeshConfig { id: string; name: string; port?: number; listenHost?: string; sharedSecret?: string; peers?: Array<{ host: string; port: number; }>; capabilities?: string[]; deviceInfo?: string; allowIncoming?: boolean; maxQueriesPerMinute?: number; } export interface MeshMessage { type: 'query' | 'response' | 'announce' | 'share_skill' | 'share_memory'; fromId: string; fromName: string; payload: Record; timestamp: number; traceId?: string; callDepth?: number; } export type QueryHandler = (query: string, fromPeer: MeshPeer) => Promise; export type ShareSkillHandler = (skill: Record, fromPeer: MeshPeer) => Promise<{ accepted: boolean; reason?: string; }>; export type ShareMemoryHandler = (memory: Record, fromPeer: MeshPeer) => Promise<{ accepted: boolean; reason?: string; }>; export type HostAddressResolver = (hostname: string) => Promise; export declare const MESH_SECRET_HEADER = "x-moss-mesh-secret"; export declare const DNS_CHECK_TIMEOUT_MS = 3000; export declare const MESH_QUERY_GLOBAL_TIMEOUT_MS = 15000; export declare const MAX_PEER_RESPONSE_CHARS = 4096; export declare const MAX_CLIENT_RESPONSE_BYTES: number; export declare const DEFAULT_MAX_QUERIES_PER_MINUTE = 30; export declare const INJECTION_PATTERNS: RegExp[]; export declare function containsPromptInjection(text: string): boolean; //# sourceMappingURL=types.d.ts.map