import type { Attributes } from './types.js';
/**
 * Formats a string value. If the input text is enclosed in single or double quotes,
 * it omits the quotes. If the value resembles an object (starts with `[`
 * or `{` and ends with `]` or `}`), it is parsed as JSON using the
 * `jsonLoose`.
 */
export declare function formatString(text: string): any;
/**
 * Serializes an object of attributes into an attribute string.
 */
export declare function serialize(attrs: Attributes): string;