narraleaf-react
Version:
A React visual novel player framework
12 lines (11 loc) • 553 B
TypeScript
import { EmptyObject } from "../../../../game/nlcore/elements/transition/type";
import { Notification } from "./type";
import React from "react";
interface NotificationsContext {
register: (ref: React.RefObject<EmptyObject>) => void;
unregister: (ref: React.RefObject<EmptyObject>) => void;
getNotification: (ref: React.RefObject<EmptyObject>) => Notification | null;
}
export declare const NotificationsContext: React.Context<NotificationsContext | null>;
export declare function useNotificationsContext(): NotificationsContext;
export {};