import type { ProviderOperations, ProviderOptions } from "./providers/types.js"; import type { ProviderModule } from "./providers/types.js"; import type { ImageCdn, URLExtractor, URLGenerator, URLTransformer, UrlTransformerOptions } from "./types.js"; /** * Returns a parser function if the given URL is from a known image CDN */ export declare const getExtractorForUrl: (url: string | URL) => Promise | undefined>; /** * Dynamically loads the module for the given provider */ export declare function getModuleForProvider(cdn: TCDN | false | undefined): Promise> | undefined; /** * Dynamically loads the extract function for the given provider */ export declare const getExtractorForProvider: (cdn: TCDN | false | undefined) => Promise | undefined>; /** * Dynamically loads the generate function for the given provider */ export declare const getGeneratorForProvider: (cdn: TCDN | false | undefined) => Promise | undefined>; /** * Dynamically loads the transform function for the given provider */ export declare const getTransformerForProvider: (cdn: TCDN | false | undefined) => Promise | undefined>; /** * Transforms an image URL to a new URL with the given options. * If the URL is not from a known image CDN it returns undefined. * * This function is async because it dynamically loads the module for the provider. * If you need a synchronous version, import from the root module instead. */ export declare function transformUrl(url: string | URL, { provider, cdn: cdnOption, fallback, ...operations }: UrlTransformerOptions, providerOperations?: Partial, providerOptions?: Partial): Promise; //# sourceMappingURL=async.d.ts.map