import { ValidationStatus } from "../types/enchanted-preview"; /** * Checks if a remote resource is accessible by performing a lightweight fetch. * * This function uses the `fetch` API with the 'GET' method and an AbortController * to efficiently validate a source URL. It only waits for the response headers; * upon receiving a successful status code, it immediately aborts the download of * the response body to save bandwidth. It maps HTTP status codes and network * errors to a `ValidationStatus` enum. * * @param {string | undefined} source The URL of the resource to validate. * @returns {Promise} A promise that resolves to a `ValidationStatus` * enum value indicating the outcome of the validation check. * */ export declare const validateSource: (source: string | undefined) => Promise;