import { LocationInfo } from '../tree'; import { CstNode, CstChild, IToken } from '@jesscss/css-parser'; import type { BaseTokenType } from './cst-visitor'; /** * Convert a location object to a location array */ export declare const getLocation: (loc?: CstNode['location']) => LocationInfo; /** * Processes mixed whitespace / comments * from the CST and returns a Node */ export declare function collapseTokens(tokens: IToken[]): BaseTokenType; export declare function collectTokens(nodes: CstChild[], out?: IToken[]): IToken[]; export declare function flatten(arr: any[]): any[]; export declare function isToken(value: any): value is IToken;