UNPKG

1.66 kBTypeScriptView Raw
1import markupAbbreviation, { type Abbreviation } from '@emmetio/abbreviation';
2import stylesheetAbbreviation, { type CSSAbbreviation } from '@emmetio/css-abbreviation';
3import parseMarkup, { stringify as stringifyMarkup } from './markup/index.js';
4import parseStylesheet, { stringify as stringifyStylesheet, convertSnippets as parseStylesheetSnippets, CSSAbbreviationScope } from './stylesheet/index.js';
5import { type UserConfig, type Config } from './config.js';
6export default function expandAbbreviation(abbr: string, config?: UserConfig): string;
7/**
8 * Expands given *markup* abbreviation (e.g. regular Emmet abbreviation that
9 * produces structured output like HTML) and outputs it according to options
10 * provided in config
11 */
12export declare function markup(abbr: string | Abbreviation, config: Config): string;
13/**
14 * Expands given *stylesheet* abbreviation (a special Emmet abbreviation designed for
15 * stylesheet languages like CSS, SASS etc.) and outputs it according to options
16 * provided in config
17 */
18export declare function stylesheet(abbr: string | CSSAbbreviation, config: Config): string;
19export { markupAbbreviation, parseMarkup, stringifyMarkup, stylesheetAbbreviation, parseStylesheet, stringifyStylesheet, parseStylesheetSnippets, CSSAbbreviationScope };
20export type { Abbreviation as MarkupAbbreviation, CSSAbbreviation as StylesheetAbbreviation, };
21export { default as extract, type ExtractOptions, type ExtractedAbbreviation } from './extract-abbreviation/index.js';
22export { default as resolveConfig } from './config.js';
23export type { GlobalConfig, SyntaxType, Config, UserConfig, Options, AbbreviationContext } from './config.js';