// Generated by dts-bundle-generator v9.5.1

import { MarkedExtension, Token, Tokens } from 'marked';

export interface TokenWithPosition extends Tokens.Generic {
	position: Position;
}
export interface Position {
	/**
	 * Positions for each line of the token. LinePositions will not include the newline character for the line.
	 */
	lines: LinePosition[];
	/**
	 * Position at the beginning of token
	 */
	start: PositionFields;
	/**
	 * Position at the end of token
	 */
	end: PositionFields;
}
export interface LinePosition {
	/**
	 * Position at the beginning of line
	 */
	start: PositionFields;
	/**
	 * Position at the end of line. Will not include the newline character.
	 */
	end: PositionFields;
}
export interface PositionFields {
	/**
	 * Number of characters from the beginning of the markdown string
	 */
	offset: number;
	/**
	 * Line number of the token. Starts at line 0.
	 */
	line: number;
	/**
	 * Column number of the token. Starts at column 0.
	 */
	column: number;
}
/**
 * Add position field to tokens
 */
export declare function addTokenPositions(tokens: Token[]): TokenWithPosition[];
/**
 * Marked extension to add position field to tokens
 */
declare function _default(options?: {}): MarkedExtension;

export {
	_default as default,
};

export {};
