import { Done } from '../../../../../Class/Functional/Done';
import { Fail } from '../../../../../Class/Functional/Fail';
import { Holder } from '../../../../../Class/Holder';
import { System } from '../../../../../system';
import { Component_ } from '../../../../../types/interface/Component';
export interface I<T> {
    component: Component_;
    text: string;
    type: string;
    done: any;
}
export interface O<T> {
}
export declare const VALID_MIME_TYPES: string[];
export default class AttachText<T> extends Holder<I<T>, O<T>> {
    private _unlisten;
    constructor(system: System);
    f({ component, text, type }: I<T>, done: Done<O<T>>, fail: Fail): Promise<void>;
    d(): void;
}
