1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /**
- * @license
- * Copyright 2019 Google LLC
- * SPDX-License-Identifier: BSD-3-Clause
- */
- import { Directive, PartInfo, DirectiveClass, DirectiveResult } from './directive.js';
- import { AttributePart, Part, Disconnectable } from './lit-html.js';
- export type { Template } from './lit-html.js';
- /**
- * END USERS SHOULD NOT RELY ON THIS OBJECT.
- *
- * We currently do not make a mangled rollup build of the lit-ssr code. In order
- * to keep a number of (otherwise private) top-level exports mangled in the
- * client side code, we export a _$LH object containing those members (or
- * helper methods for accessing private fields of those members), and then
- * re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the
- * client-side code is being used in `dev` mode or `prod` mode.
- * @private
- */
- export declare const _$LH: {
- boundAttributeSuffix: string;
- marker: string;
- markerMatch: string;
- HTML_RESULT: number;
- getTemplateHtml: (strings: TemplateStringsArray, type: 1 | 2) => [import("trusted-types/lib").TrustedHTML, (string | undefined)[]];
- overrideDirectiveResolve: (directiveClass: new (part: PartInfo) => Directive & {
- render(): unknown;
- }, resolveOverrideFn: (directive: Directive, values: unknown[]) => unknown) => {
- new (part: PartInfo): {
- _$resolve(this: Directive, _part: Part, values: unknown[]): unknown;
- __part: Part;
- __attributeIndex: number | undefined;
- __directive?: Directive | undefined;
- _$parent: Disconnectable;
- _$disconnectableChildren?: Set<Disconnectable> | undefined;
- _$notifyDirectiveConnectionChanged?(isConnected: boolean): void;
- readonly _$isConnected: boolean;
- _$initialize(part: Part, parent: Disconnectable, attributeIndex: number | undefined): void;
- render: ((...props: unknown[]) => unknown) & (() => unknown);
- update(_part: Part, props: unknown[]): unknown;
- };
- };
- setDirectiveClass(value: DirectiveResult, directiveClass: DirectiveClass): void;
- getAttributePartCommittedValue: (part: AttributePart, value: unknown, index: number | undefined) => unknown;
- connectedDisconnectable: (props?: object | undefined) => Disconnectable;
- resolveDirective: (part: import("./lit-html.js").ChildPart | AttributePart | import("./lit-html.js").ElementPart, value: unknown, parent?: import("./lit-html.js").DirectiveParent, attributeIndex?: number | undefined) => unknown;
- AttributePart: typeof AttributePart;
- PropertyPart: typeof import("./lit-html.js").PropertyPart;
- BooleanAttributePart: typeof import("./lit-html.js").BooleanAttributePart;
- EventPart: typeof import("./lit-html.js").EventPart;
- ElementPart: typeof import("./lit-html.js").ElementPart;
- };
- //# sourceMappingURL=private-ssr-support.d.ts.map
|