UNPKG

1.74 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at
5 * http://polymer.github.io/LICENSE.txt
6 * The complete set of authors may be found at
7 * http://polymer.github.io/AUTHORS.txt
8 * The complete set of contributors may be found at
9 * http://polymer.github.io/CONTRIBUTORS.txt
10 * Code distributed by Google as part of the polymer project is also
11 * subject to an additional IP rights grant found at
12 * http://polymer.github.io/PATENTS.txt
13 */
14import { Document } from './document';
15import { ElementBase, ElementBaseInit, ScannedElementBase } from './element-base';
16import { Feature } from './feature';
17import { ScannedReference } from './reference';
18export { Visitor } from '../javascript/estree-visitor';
19export declare class ScannedElement extends ScannedElementBase {
20 tagName?: string;
21 className?: string;
22 readonly name: string | undefined;
23 superClass?: ScannedReference<'class'>;
24 /**
25 * For customized built-in elements, the tagname of the superClass.
26 */
27 extends?: string;
28 resolve(document: Document): Element;
29}
30export interface ElementInit extends ElementBaseInit {
31 tagName?: string;
32 className?: string;
33 superClass?: ScannedReference<'class'>;
34 extends?: string;
35}
36declare module './queryable' {
37 interface FeatureKindMap {
38 'element': Element;
39 }
40}
41export declare class Element extends ElementBase implements Feature {
42 readonly tagName: string | undefined;
43 /**
44 * For customized built-in elements, the tagname of the builtin element that
45 * this element extends.
46 */
47 extends?: string;
48 constructor(init: ElementInit, document: Document);
49}