/** * Converts a potentially encoded Global ID (GID) to its decoded form if it is a valid GID, otherwise returns undefined. * * @function toGID * @param {string} value - The GID to decode. * @returns {string | undefined} The decoded GID if valid, otherwise undefined. */ export declare const toGID: (value: string) => string | undefined; /** * Checks if the provided string is an encoded GID. * * @function isEncodedGID * @param {string} value - The string to check. * @returns {boolean} True if the string is an encoded GID, false otherwise. */ export declare const isEncodedGID: (value: Type) => value is Type; /** * Determines if the provided string is a valid GID. * * @function isGID * @param {string} value - The string to validate. * @returns {boolean} True if the string is a valid GID, false otherwise. */ export declare const isGID: (value: Type) => value is Type; /** * Checks if the provided value can be parsed into a Shopify ID (SID) with a minimum number of digits. * * @function isParsableToSID * @param {string | number} value - The value to check. * @param {number} [min_digits] - The minimum number of digits required for the SID. Default is `9` * @returns {boolean} True if the value can be parsed into a SID, false otherwise. */ export declare const isParsableToSID: (value: Type, min_digits?: number) => value is Type; /** * Converts a GID to a Shopify ID (SID) if possible, considering a minimum number of digits. * * @function toSID * @param {string} value - The GID to convert. * @param {number} [min_digits] - The minimum number of digits required for the SID. Default is `9` * @returns {number | undefined} The SID if conversion is possible, otherwise undefined. */ export declare const toSID: (value: Type, min_digits?: number) => number | undefined; /** * Determines if the provided value is a valid Shopify ID (SID), considering a minimum number of digits. * * @function isSID * @param {number | string} value - The value to validate. * @param {number} [min_digits] - The minimum number of digits required for the SID. Default is `9` * @returns {boolean} True if the value is a valid SID, false otherwise. */ export declare const isSID: (value: Type, min_digits?: number) => value is Type; /** * Generates a Shopify media URL with optional parameters for resizing and cropping. * * @function shopifyMediaURL * @param {string} [src] - The source URL of the media. Default is `undefined` * @param {number | string} [width] - The desired width of the media. Default is `undefined` * @param {number | string} [height] - The desired height of the media. Default is `undefined` * @param {'top' | 'center' | 'bottom' | 'left' | 'right'} [crop] - The crop position. Default is `undefined` * @param {boolean} [scale] - Whether to scale the image. Default is `false` * @returns {string | undefined} The modified media URL or undefined if the source URL is invalid. */ export declare const shopifyMediaURL: (src?: string | undefined, width?: number | string | undefined, height?: number | string | undefined, crop?: "top" | "center" | "bottom" | "left" | "right" | undefined, scale?: boolean) => string | undefined; //# sourceMappingURL=index.d.ts.map