summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/css-parser-algorithms/dist/util/source-indices.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@csstools/css-parser-algorithms/dist/util/source-indices.d.ts')
-rw-r--r--node_modules/@csstools/css-parser-algorithms/dist/util/source-indices.d.ts9
1 files changed, 9 insertions, 0 deletions
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 {};