export type EventOfType<K extends string, Event extends TypedCustomEvent> = Extract<Event, TypedCustomEvent<K, any>>;
/**
 * This wrapper around CustomEvent provides more descriptive type information. By using this class, the `type` property
 * of the CustomEvent will be typed as a string literal – this allows [TypedEventTarget] to provide more useful type
 * checking of events.
 */
export declare class TypedCustomEvent<N extends string = string, T = any> extends CustomEvent<T> {
    readonly type: N;
    constructor(type: N, detail: T, eventInitDict?: Omit<CustomEventInit<T>, "detail">);
}
//# sourceMappingURL=TypedCustomEvent.d.ts.map