/**
 * Test-connection probe for Brave Search API.
 *
 * Stub-quality: structure + return shape only. A production probe would
 * call https://api.search.brave.com/res/v1/web/search?q=test with the key
 * and surface 200 vs 401 vs 429.
 */
export async function probeBrave(apiKey) {
    const started = Date.now();
    if (!apiKey || typeof apiKey !== 'string') {
        return { ok: false, message: 'No API key provided', durationMs: Date.now() - started };
    }
    return { ok: true, message: 'Probe stub — not contacted upstream', durationMs: Date.now() - started };
}
//# sourceMappingURL=brave.js.map