import { Part } from 'lit';
import { AsyncDirective } from 'lit/async-directive.js';
/**
* Usage:
* import { html, render } from 'lit-html';
* import { spread } from '@open-wc/lit-helpers';
*
* render(
* html`
*
console.log('my-event fired'),
* })}
* >
* `,
* document.body,
* );
*/
declare class SpreadDirective extends AsyncDirective {
host: EventTarget | object | Element;
element: Element;
prevData: {
[key: string]: unknown;
};
render(_spreadData: {
[key: string]: unknown;
}): symbol;
update(part: Part, [spreadData]: Parameters): void;
apply(data: {
[key: string]: unknown;
}): void;
groom(data: {
[key: string]: unknown;
}): void;
handleEvent(event: Event): void;
disconnected(): void;
reconnected(): void;
}
export declare const spread: (_spreadData: {
[key: string]: unknown;
}) => import("lit-html/directive.js").DirectiveResult;
declare class SpreadPropsDirective extends AsyncDirective {
host: EventTarget | object | Element;
element: Element;
prevData: {
[key: string]: unknown;
};
render(_spreadData: {
[key: string]: unknown;
}): symbol;
update(part: Part, [spreadData]: Parameters): void;
apply(data: {
[key: string]: unknown;
}): void;
groom(data: {
[key: string]: unknown;
}): void;
}
export declare const spreadProps: (_spreadData: {
[key: string]: unknown;
}) => import("lit-html/directive.js").DirectiveResult;
export {};
//# sourceMappingURL=spread.d.ts.map