/**
 * The small part of Structured Field Values (RFC 9651) this client needs: Dictionaries and Lists of
 * Strings, Integers, Tokens and Booleans, with parameters. `Poppy-Extensions` is a List, and the
 * operations extension's `Poppy-Approval` and `Poppy-Operation` are Dictionaries.
 */
export type BareItem = string | number | boolean | {
    token: string;
};
export interface SfItem {
    value: BareItem;
    params: Record<string, BareItem>;
}
/** A String as RFC 9651 section 4.1.6 writes it: printable ASCII, `"` and `\` escaped. */
export declare function sfString(value: string): string;
/** Serializes a Dictionary whose members are bare items (RFC 9651 section 4.1.2). */
export declare function serializeDictionary(members: Record<string, BareItem | undefined>): string;
/**
 * Parses a Dictionary (RFC 9651 section 4.2.2). Throws `SyntaxError` on a malformed one: the whole
 * field is then ignored, as section 4.2 says.
 */
export declare function parseDictionary(input: string): Map<string, SfItem>;
/** Parses a List of Items (RFC 9651 section 4.2.1). */
export declare function parseList(input: string): SfItem[];
//# sourceMappingURL=structured_fields.d.ts.map