UNPKG

1.11 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8export declare enum TagContentType {
9 RAW_TEXT = 0,
10 ESCAPABLE_RAW_TEXT = 1,
11 PARSABLE_DATA = 2
12}
13export interface TagDefinition {
14 closedByParent: boolean;
15 implicitNamespacePrefix: string | null;
16 isVoid: boolean;
17 ignoreFirstLf: boolean;
18 canSelfClose: boolean;
19 preventNamespaceInheritance: boolean;
20 isClosedByChild(name: string): boolean;
21 getContentType(prefix?: string): TagContentType;
22}
23export declare function splitNsName(elementName: string): [string | null, string];
24export declare function isNgContainer(tagName: string): boolean;
25export declare function isNgContent(tagName: string): boolean;
26export declare function isNgTemplate(tagName: string): boolean;
27export declare function getNsPrefix(fullName: string): string;
28export declare function getNsPrefix(fullName: null): null;
29export declare function mergeNsAndName(prefix: string, localName: string): string;