/** * # Reference Cells * * `Ref` class provides a simple reference cell, which can be used * as a surrogate for a parser that is defined later on. We can define * a _reference_ to parser, but we don't have to give the target right * away. When composing parsers we can use the `forwardRef` function * to pass a reference to any combinator expecting a `Parser`. * Of course, we have to eventually assign a real parser as the target * of the reference before running the parser. */ export declare class Ref { private _target; /** * Constructing a reference. The target value is optional. */ constructor(value?: T); /** * Get the target of the reference. If no target is set, a * `ReferenceError` is thrown. */ get target(): T; /** * Set the target. */ set target(value: T); }