epiphany/node_modules/@csstools/css-tokenizer/dist/tokenizer.d.ts
2023-12-09 22:48:07 -08:00

21 lines
577 B
TypeScript

import { CSSToken } from './interfaces/token';
import { ParseError } from './interfaces/error';
interface Stringer {
valueOf(): string;
}
export declare function tokenize(input: {
css: Stringer;
unicodeRangesAllowed?: boolean;
}, options?: {
onParseError?: (error: ParseError) => void;
}): Array<CSSToken>;
export declare function tokenizer(input: {
css: Stringer;
unicodeRangesAllowed?: boolean;
}, options?: {
onParseError?: (error: ParseError) => void;
}): {
nextToken: () => CSSToken | undefined;
endOfFile: () => boolean;
};
export {};