import { OnChanges, SimpleChanges } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { Poll, PollAnswer } from 'stream-chat';
import { BasePollComponent } from '../../base-poll.component';
import * as i0 from "@angular/core";
/**
 *
 */
export declare class UpsertAnswerComponent extends BasePollComponent implements OnChanges {
    class: string;
    /**
     * The poll comment to edit, when in edit mode
     */
    answer: PollAnswer | undefined;
    /**
     * The callback to close the modal the component is displayed in
     */
    closeModal: () => void;
    formGroup: FormGroup<{
        comment: FormControl<string | null>;
    }>;
    ngOnChanges(changes: SimpleChanges): void;
    addComment(): Promise<void>;
    protected stateStoreSelector(_: Poll, __: () => void): () => void;
    static ɵfac: i0.ɵɵFactoryDeclaration<UpsertAnswerComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<UpsertAnswerComponent, "stream-upsert-answer", never, { "answer": "answer"; "closeModal": "closeModal"; }, {}, never, never, false, never>;
}
