/**
* Containment checks for text rendered verbatim into a stylesheet.
*
* A theme is plain data, and a theme restored from storage or handed across
* a boundary is untrusted data. Its values land in CSS as written, so each
* one has to stay inside the declaration it was rendered into - and inside
* the `` element - the output can't end its rule or its element.
*
* @param value - the raw identifier text
* @returns the identifier, safe to follow `#` or `.` in a selector
*/
export declare const escape_css_identifier: (value: string) => string;
/**
* The slots of a style variable a stylesheet can hold, or `null` when none
* can: a slot whose value could end its own declaration (or is blank) is
* left out, and a variable whose name isn't a plain identifier is left out
* whole. What's left out is reported as a `variable_value_uncontained` error
* when `diagnostics` is given.
*
* @param v - the variable, possibly untyped data
* @param diagnostics - collects an error per slot or variable left out, when given
* @returns `v` itself when every slot is contained, a copy with the contained slots otherwise, or `null`
*/
export declare const contain_variable: (v: StyleVariable, diagnostics?: Array) => StyleVariable | null;
//# sourceMappingURL=css_containment.d.ts.map