// Local type stub for `@webwriter/lit`. // // The published package ships its implementation as untyped `.ts` source, which // would otherwise be pulled into this project's `tsc --strict` program and // report errors that belong to the dependency. This declaration mirrors the // public surface the widget relies on. Runtime resolution still uses the real // `@webwriter/lit/index.js`. declare module '@webwriter/lit' { import { LitElement, PropertyDeclaration } from 'lit'; export interface OptionDeclaration extends PropertyDeclaration { type?: unknown; label?: Record; placeholder?: Record; description?: Record; multiline?: boolean; min?: number; max?: number; step?: number; pattern?: string; minlength?: number; maxlength?: number; multiple?: boolean; swatches?: string[]; options?: { value: string; label?: Record; description?: Record }[]; } export interface ActionDeclaration { label?: Record; placeholder?: Record; description?: Record; } export function option( decl?: OptionDeclaration ): ( target: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext ) => void; export function action( decl?: ActionDeclaration ): ( target: (this: This, ...args: Args) => Return, context: | ClassMethodDecoratorContext Return> | ClassAccessorDecoratorContext ) => unknown; export class LitElementWw extends LitElement { static scopedElements: Record; static readonly options: Record; static readonly actions: Record; get dynamicOptions(): Record; get dynamicActions(): Record; protected localize: { getLocale: () => string; setLocale: (locale: string) => Promise }; accessor contentEditable: string; get lang(): string; set lang(value: string); /** @internal */ _inTransaction: boolean; connectedCallback(): void; } }