/** * Navidrome MCP Server - Radio Validation Core Module * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { StreamValidationResult } from '../../types/index.js'; type AudioFormat = NonNullable; /** Everything the network probe learned, in the form the pure classifier reads. */ export interface StreamProbe { headResponse: { readonly headers: Headers; readonly status: number; } | null; headError: string | null; /** Sample headers when sampling ran, HEAD headers when HEAD was conclusive, else null. */ headers: Headers | null; sampledStatus: number | null; buffer: Uint8Array | null; sampleError: string | null; resolvedFinalUrl: string | null; /** HEAD was inconclusive, so sampling ran or ran out of budget. */ sampled: boolean; /** No HEAD response and no sample status, so the endpoint never answered. */ transportFailed: boolean; } export declare function validateRadioStream(args: unknown): Promise; /** Recommendations and test duration are left for the caller. */ export declare function classifyStream(url: string, probe: StreamProbe, audioFormat: AudioFormat | null): StreamValidationResult; export {}; //# sourceMappingURL=validation-core.d.ts.map