import Event from "./Event";
import { Decoder } from "../common/Codec";
import StitchServiceError from "../../StitchServiceError";
export default class StitchEvent<T> {
    static readonly ERROR_EVENT_NAME: string;
    readonly eventName: string;
    readonly data: T;
    readonly error: StitchServiceError;
    private constructor();
    static fromEvent<T>(event: Event, decoder?: Decoder<T>): StitchEvent<T>;
}
