export interface ImageModifiers { format?: string; height?: number; width?: number; [key: string]: any; } export type ParamFormatter = (key: string, value: string) => string; export type ParamMapper = { [key: string]: string; } | ((key: string) => string); export interface ProviderUrlBuilder { keyMap?: ParamMapper; formatter?: ParamFormatter; joinWith?: string; valueMap?: { [key: string]: ParamMapper; }; } /** * Builds the parameterized Cloudinary url */ export declare function buildProviderUrl({ formatter, keyMap, joinWith, valueMap, }?: ProviderUrlBuilder): (modifiers?: { [key: string]: string; }) => string; /** * Checks if a (sub)domain is included in a list of acceptable domains * @param str the (sub)domain to check * @param domains an array of valid domains */ export declare function isDomainValid(str?: string, domains?: string[]): boolean;