/**
* Shared anonymous HTML fetch used by the credential-free engines.
* @module @hy-sde-org/dsh-web-search-public/engines/http
*/
export interface FetchHtmlOptions {
url: string;
method?: 'GET' | 'POST';
/** Form-encoded request body (POST only). */
body?: string;
/** Extra headers merged over the base set. */
headers?: Readonly>;
userAgent: string;
signal?: AbortSignal | undefined;
}
/**
* Fetch and return the response body text. Redirects are rejected before any
* `Location` target is contacted (the web-package AGENTS.md rule); a non-2xx
* response fails with an {@link EngineSearchFailure} carrying the status (4xx
* hard-blocks that engine, 5xx is retryable). Redirect rejections and network
* failures propagate as `TypeError`s — the provider's legacy signatures
* classify them as retryable transport problems.
*/
export declare function fetchHtml(options: FetchHtmlOptions): Promise;
//# sourceMappingURL=http.d.ts.map