import { TaquitoError } from '@taquito/core';
/**
 *  @category Error
 *  @description Error that indicates a failure when performing the scan step when parsing Michelson
 */
export declare class ScanError extends TaquitoError {
    readonly src: string;
    readonly idx: number;
    readonly message: string;
    constructor(src: string, idx: number, message: string);
}
export declare enum Literal {
    Comment = 0,
    Number = 1,
    String = 2,
    Bytes = 3,
    Ident = 4
}
export type TokenType = '(' | ')' | '{' | '}' | ';' | Literal;
export interface Token {
    t: TokenType;
    v: string;
    first: number;
    last: number;
}
export declare function scan(src: string, scanComments?: boolean): Generator<Token, void>;
