import { Directive, ElementPart, PartInfo } from 'lit/directive.js'; /** A map of CSS properties to values. `--custom` props and camelCase both work. */ export type CspStyleInfo = Readonly>; /** * CSP-safe replacement for Lit's `styleMap` / the `style="…"` attribute. * * Strict Content-Security-Policy (no `'unsafe-inline'` in `style-src-attr`) * blocks the inline `style` attribute — including the one `styleMap` and * `style=${…}` write via `setAttribute`. This directive instead mutates the * element's **CSSOM** (`element.style.setProperty`), which CSP does not * intercept, so dynamic positioning works under a strict policy without any * `'unsafe-inline'` or per-value hashes. * * Use it as an *element* expression (not an attribute): * * ```ts * html`
` * html`` * ``` */ declare class CspStyleDirective extends Directive { private _applied; constructor(partInfo: PartInfo); render(_styles: CspStyleInfo): symbol; update(part: ElementPart, [styles]: [CspStyleInfo]): symbol; private setOne; } export declare const cspStyle: (_styles: Readonly>) => import('lit-html/directive.js').DirectiveResult; export {}; //# sourceMappingURL=csp-style.d.ts.map