import type { Parjser } from "./parjser"; import type { CombinatorInput } from "./combinated"; /** A {@link Parjser} or a literal value convertible to a {@link Parjser}. */ /** * @private Should Not be used from user code. Used to implement implicit parser literals. * @type {symbol} */ export declare const convertibleSymbol: unique symbol; /** * A literal type which is implicitly convertible to a parser. This normally includes the `string` * and `RegExp` types. */ export interface ConvertibleScalar { [convertibleSymbol](): Parjser; } declare global { interface String { [convertibleSymbol](): Parjser; } interface RegExp { [convertibleSymbol](): Parjser; } } /** * Either a Parjser or a scalar value convertible to one. * * @module parjs */ export type ImplicitParjser = Parjser | ConvertibleScalar; export declare function wrapImplicit(scalarOrParjser: ImplicitParjser): CombinatorInput; //# sourceMappingURL=wrap-implicit.d.ts.map