diff options
Diffstat (limited to 'node_modules/@csstools/css-parser-algorithms/dist/util')
6 files changed, 33 insertions, 0 deletions
diff --git a/node_modules/@csstools/css-parser-algorithms/dist/util/component-value-type.d.ts b/node_modules/@csstools/css-parser-algorithms/dist/util/component-value-type.d.ts new file mode 100644 index 00000000..eda7ee93 --- /dev/null +++ b/node_modules/@csstools/css-parser-algorithms/dist/util/component-value-type.d.ts @@ -0,0 +1,7 @@ +export declare enum ComponentValueType { + Function = "function", + SimpleBlock = "simple-block", + Whitespace = "whitespace", + Comment = "comment", + Token = "token" +} diff --git a/node_modules/@csstools/css-parser-algorithms/dist/util/node-ancestry.d.ts b/node_modules/@csstools/css-parser-algorithms/dist/util/node-ancestry.d.ts new file mode 100644 index 00000000..219ea619 --- /dev/null +++ b/node_modules/@csstools/css-parser-algorithms/dist/util/node-ancestry.d.ts @@ -0,0 +1,7 @@ +export interface walkable { + walk(cb: (entry: { + node: Array<unknown> | unknown; + parent: unknown; + }, index: number | string) => boolean | void): false | undefined; +} +export declare function gatherNodeAncestry(node: walkable): Map<unknown, unknown>; diff --git a/node_modules/@csstools/css-parser-algorithms/dist/util/replace-component-values.d.ts b/node_modules/@csstools/css-parser-algorithms/dist/util/replace-component-values.d.ts new file mode 100644 index 00000000..774051c6 --- /dev/null +++ b/node_modules/@csstools/css-parser-algorithms/dist/util/replace-component-values.d.ts @@ -0,0 +1,2 @@ +import type { ComponentValue } from '../consume/consume-component-block-function'; +export declare function replaceComponentValues(componentValuesList: Array<Array<ComponentValue>>, replaceWith: (componentValue: ComponentValue) => ComponentValue | void): ComponentValue[][]; diff --git a/node_modules/@csstools/css-parser-algorithms/dist/util/source-indices.d.ts b/node_modules/@csstools/css-parser-algorithms/dist/util/source-indices.d.ts new file mode 100644 index 00000000..92d124be --- /dev/null +++ b/node_modules/@csstools/css-parser-algorithms/dist/util/source-indices.d.ts @@ -0,0 +1,9 @@ +import { CSSToken } from '@csstools/css-tokenizer'; +interface TokenConvertible { + tokens(): Array<CSSToken>; +} +/** + * Returns the start and end index of a node in the CSS source string. + */ +export declare function sourceIndices(x: TokenConvertible | Array<TokenConvertible>): [number, number]; +export {}; diff --git a/node_modules/@csstools/css-parser-algorithms/dist/util/stringify.d.ts b/node_modules/@csstools/css-parser-algorithms/dist/util/stringify.d.ts new file mode 100644 index 00000000..6ab4140c --- /dev/null +++ b/node_modules/@csstools/css-parser-algorithms/dist/util/stringify.d.ts @@ -0,0 +1,2 @@ +import type { ComponentValue } from '../consume/consume-component-block-function'; +export declare function stringify(componentValueLists: Array<Array<ComponentValue>>): string; diff --git a/node_modules/@csstools/css-parser-algorithms/dist/util/type-predicates.d.ts b/node_modules/@csstools/css-parser-algorithms/dist/util/type-predicates.d.ts new file mode 100644 index 00000000..896d3036 --- /dev/null +++ b/node_modules/@csstools/css-parser-algorithms/dist/util/type-predicates.d.ts @@ -0,0 +1,6 @@ +import { CommentNode, FunctionNode, SimpleBlockNode, TokenNode, WhitespaceNode } from '../consume/consume-component-block-function'; +export declare function isSimpleBlockNode(x: unknown): x is SimpleBlockNode; +export declare function isFunctionNode(x: unknown): x is FunctionNode; +export declare function isWhitespaceNode(x: unknown): x is WhitespaceNode; +export declare function isCommentNode(x: unknown): x is CommentNode; +export declare function isTokenNode(x: unknown): x is TokenNode; |
