import type { ImportEntity } from '../types.js'; /** * Escapes the `<` and `>` of anything shaped like an HTML tag. * * Every match ends with a `>`, so nothing after the last `>` can match, and the * regular expression is run on the text up to it only. Without that, a cell of * many `` takes the expression time that grows with the square * of the length (0.7 s for 64 KiB, measured). */ export declare function escapeHtmlTags(text: string): string; /** * The columns that the REST layer does not escape (`skipEscape` in the * `payloadSchema.json` files) and the columns that hold a secret. The set is a * constant, and a test reads the `payloadSchema.json` files and fails when REST * changes it (ALL-22). * * `meta_description` is escaped, although `productDataSchema.json` carries a * `skipEscape` on it: that file is the service's schema and the keyword does * nothing there; the REST schema of a product does not mention it. */ export declare function isEscapeExempt(entity: ImportEntity, column: string): boolean; /** * What a text cell is before anything reads it (ยง 5.1, D-23): * leading and trailing spaces removed (not for a `password`, where a space is a * character), then escaped as REST does unless the column is exempt. A blank * cell is `null`: "not provided", which on create means the default and on * update means unchanged. */ export declare function prepareText(cell: string, entity: ImportEntity, column: string): string | null;