import { ErrorLocation } from "../errors"; interface IAttrToken { namespace?: string; value?: string; name: string; quoted?: boolean; } export { IAttrToken as AttrToken }; export declare const ERRORS: { whitespace: string; namespace: string; noname: string; unclosedAttribute: string; mismatchedQuote: string; invalidIdent: (i: string) => string; expectsSepInsteadRec: (c: string) => string; illegalCharNotInAttribute: (c: string) => string; illegalCharInAttribute: (c: string) => string; multipleOfType: (t: string) => string; }; /** * Parser and container object for Block Path data. */ export declare class BlockPath { private _location?; private _block?; private _class?; private _attribute?; private walker; private _tokens; private parts; readonly original: string; /** * Throw a new BlockPathError with the given message. * @param msg The error message. */ private throw; /** * Used by `tokenize` to insert a newly constructed token. * @param token The token to insert. */ private addToken; /** * Given a Block Path string, convert it into tokens. Throw * with a helpful error if we encounter invalid Block Path syntax. * @param str The Block Path string. */ private tokenize; /** * Create a new BlockPath object via a path string, other BlockPath object, or array of tokens. * @param path The BlockPath input data. * @param location An optional ErrorLocation object for more detailed error reporting. */ constructor(path: string | BlockPath, location?: ErrorLocation); private static from; /** * Get the parsed Style path of this Block Path */ get path(): string; /** * Get the parsed block name of this Block Path */ get block(): string; /** * Get the parsed class name of this Block Path */ get class(): string; /** * Get the parsed attribute name of this Block Path and return the `AttrInfo` */ get attribute(): IAttrToken | undefined; /** * Return a pretty-printed formatted Block Path string from the tokenized data. */ toString(): string; /** * Return a new BlockPath without the parent-most token. */ childPath(): BlockPath; /** * Return a new BlockPath without the child-most token. */ parentPath(): BlockPath; tokens(): Iterable; } //# sourceMappingURL=BlockPath.d.ts.map