import { Mintblue } from '../mintblue.js';
import { Writer, Action } from './types.js';
/**
 * An implementation of the Writer interface that integrates with the mintBlue SDK.
 * This writer sends transactional data to the mintBlue platform.
 *
 * @category Machine
 */
export declare class MintblueWriter implements Writer {
    private mintblue;
    private project_id;
    /**
     * Factory method to create an instance of the MintblueWriter.
     * Initializes the mintBlue SDK and returns a new writer instance.
     *
     * @param sdkToken - The SDK token for authentication with mintBlue.
     * @param project_id - The project identifier in mintBlue where the data will be written.
     * @returns A promise that resolves to a new MintblueWriter instance.
     */
    static create(sdkToken: string, project_id: string): Promise<MintblueWriter>;
    /**
     * Constructor for MintblueWriter.
     *
     * @param mintblue - An instance of the mintBlue SDK.
     * @param project_id - The project identifier in mintBlue where the data will be written.
     */
    constructor(mintblue: Mintblue, project_id: string);
    /**
     * Writes the given action as a transaction to the mintBlue platform.
     *
     * @param action - The action to write.
     * @throws Will throw an error if the mintBlue SDK has not been initialized.
     * @returns A promise that resolves when the write operation completes or rejects on error.
     */
    write(action: Action): Promise<void>;
    /**
     * Handles and logs errors from the write operations.
     *
     * @param error - The error to handle and log.
     */
    handleError(error: any): void;
}
