import { URLSearchParamsObject } from './string.types'; /** * Separator for variant data files saved to storage. * * @remarks * Refers to the separator that is used by variant data files when they are * saved. If a "master" data file name is "12345.json", and its variant keys * are "card" and "search", its resulting variant file names are: * - 12345--card.json * - 12345--search.json * @see ExporterPluginInterface::VARIANT_SEPARATOR in https://www.drupal.org/project/static_suite * * @sealed * Not intended to be over ride. */ export declare const VARIANT_SEPARATOR = "--"; /** * Parses a JSON string and logs an error on failure. * * @param jsonString - The string to be parsed. * * @returns A JSON object or null on error. */ export declare const parseJsonString: (jsonString: string) => any; /** * Parses a raw URL search (aka "query string") into an object. * * @remarks * Turns a string like "arg1=a&arg2=b" into an object like * \{ arg1: 'a', arg2: 'b'\} * * @param queryString - A raw URL search string * * @returns An object where its keys are the query arguments. */ export declare const parseURLSearchParams: (queryString: string) => URLSearchParamsObject; /** * Parses a unique id from Static Suite and returns a Date. * * @param uniqueId - A unique id from Static Suite * * @returns A date from that unique id, or null if it can be parsed. */ export declare const parseUniqueId: (uniqueId: string) => Date | null; /** * Checks that a string is a unique id. * * @param uniqueId - A unique id to be checked */ export declare const isUniqueId: (uniqueId: string) => boolean; /** * Creates a hash from a string * * @param data - A string of data */ export declare const createHash: (data: string) => string; //# sourceMappingURL=stringUtils.d.ts.map