import { BaseTokenSchema } from '../../schema/types';
import { TokenFactory, ComparableToken, TokenValidationError, Token, SemanticEncoding } from '../token';
/**
 *  @category Error
 *  Error that indicates a failure happening when parsing encoding/executing Bytes
 */
export declare class BytesValidationError extends TokenValidationError {
    value: any;
    token: BytesToken;
    name: string;
    constructor(value: any, token: BytesToken, message: string);
}
export declare class BytesToken extends ComparableToken {
    protected val: {
        prim: string;
        args: any[];
        annots: any[];
    };
    protected idx: number;
    protected fac: TokenFactory;
    static prim: 'bytes';
    constructor(val: {
        prim: string;
        args: any[];
        annots: any[];
    }, idx: number, fac: TokenFactory);
    ToBigMapKey(val: string): {
        key: {
            bytes: string;
        };
        type: {
            prim: "bytes";
        };
    };
    /**
     * @throws {@link BytesValidationError}
     */
    private validate;
    private convertUint8ArrayToHexString;
    /**
     * @throws {@link BytesValidationError}
     */
    Encode(args: any[]): any;
    /**
     * @throws {@link BytesValidationError}
     */
    EncodeObject(val: string | Uint8Array, semantic?: SemanticEncoding): import("@taquito/rpc").MichelsonV1Expression;
    Execute(val: any): string;
    generateSchema(): BaseTokenSchema;
    ToKey({ bytes, string }: any): any;
    findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
}
