import { Effect } from 'effect'; import { ProviderConnectionTestError, type ProviderConnectionCredentials, type ProviderConnectionDraft, type ProviderConnectionTestHook } from './connections'; export interface ProviderConnectionProbeRequest { readonly url: string; readonly init?: RequestInit; } export interface ProviderConnectionProbeOptions { readonly providerId: string; readonly request: (draft: ProviderConnectionDraft, credentials: ProviderConnectionCredentials) => ProviderConnectionProbeRequest; readonly timeoutMs?: number; } /** Join a provider base URL and a bounded probe path without dropping a base path. */ export declare const providerConnectionProbeUrl: (draft: ProviderConnectionDraft, defaultBaseUrl: string, path: string) => URL; /** Build the supported runtime authorization header without exposing its value in errors. */ export declare const providerConnectionProbeAuthHeaders: (credentials: ProviderConnectionCredentials, apiKeyHeader?: "authorization" | "x-api-key") => Record; /** Create one provider-owned, bounded HTTP probe with typed and secret-safe failures. */ export declare const makeProviderConnectionTestHook: (options: ProviderConnectionProbeOptions) => ProviderConnectionTestHook; /** Test an unsaved connection through its concrete provider pack. */ export declare const testProviderConnectionDraft: (draft: ProviderConnectionDraft, credentials: ProviderConnectionCredentials) => Effect.Effect; //# sourceMappingURL=connection-test.d.ts.map