import { ConstantTokenSchema } from '../schema/types';
import { Semantic, SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
/**
 *  @category Error
 *  Error that indicates a failure happening when parsing encoding a Global Constant
 */
export declare class GlobalConstantEncodingError extends TokenValidationError {
    value: any;
    token: GlobalConstantToken;
    name: string;
    constructor(value: any, token: GlobalConstantToken, message: string);
}
/**
 *  @category Error
 *  Error that indicates a failure happening when parsing executing a Global Constant
 */
export declare class GlobalConstantDecodingError extends TokenValidationError {
    value: any;
    token: GlobalConstantToken;
    name: string;
    constructor(value: any, token: GlobalConstantToken, message: string);
}
export declare class GlobalConstantToken extends Token {
    protected val: {
        prim: string;
        args: any[];
        annots?: any[];
    };
    protected idx: number;
    protected fac: TokenFactory;
    static prim: 'constant';
    constructor(val: {
        prim: string;
        args: any[];
        annots?: any[];
    }, idx: number, fac: TokenFactory);
    /**
     * @throws {@link GlobalConstantDecodingError}
     */
    Execute(val: any, semantic?: Semantic): any;
    /**
     * @throws {@link GlobalConstantEncodingError}
     */
    Encode(args: any[]): any;
    /**
     * @throws {@link GlobalConstantEncodingError}
     */
    EncodeObject(val: any, semantic?: SemanticEncoding): any;
    generateSchema(): ConstantTokenSchema;
    findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
}
