epiphany/node_modules/@csstools/cascade-layer-name-parser/dist/parser/parse.d.ts
2023-12-09 22:48:07 -08:00

7 lines
365 B
TypeScript

import { CSSToken, ParseError } from '@csstools/css-tokenizer';
import { LayerName } from '../nodes/layer-name';
export type Options = {
onParseError?: (error: ParseError) => void;
};
export declare function parseFromTokens(tokens: Array<CSSToken>, options?: Options): LayerName[];
export declare function parse(source: string, options?: Options): LayerName[];