import { EncoderDecoder } from '@iotize/common/converter/api';
import { MemoryInfo, TargetService } from '@iotize/tap/service/impl/target';
import { KeyTypeType } from '../../utility/editable-data-stream';
import { AbstractVariable } from '../abstract-variable-stream';
declare type SubTargetService = Pick<TargetService, 'readAddress' | 'writeAddress'>;
export declare namespace TargetMemoryVariable {
    interface InstanceOptions<DataType = Uint8Array> {
        converter?: EncoderDecoder<DataType, Uint8Array>;
        targetService: SubTargetService;
        config: MemoryInfo;
    }
}
export declare class TargetMemoryVariable<DataType, KeyType extends KeyTypeType> extends AbstractVariable<DataType, KeyType> {
    id: KeyType;
    private context;
    get converter(): {
        encode: (v: any) => any;
        decode: (v: any) => any;
    } | EncoderDecoder<DataType, Uint8Array>;
    get config(): MemoryInfo;
    constructor(id: KeyType, context: TargetMemoryVariable.InstanceOptions<DataType>);
    readRawInner(): Promise<Uint8Array>;
    writeRaw(value: Uint8Array): Promise<void>;
}
export {};
