react-epson-epos-sdk
Version:
React library for managing Epson printers with ePOS SDK support.
14 lines (13 loc) • 632 B
TypeScript
import type { RefObject } from "react";
import type { Printer } from "../../components/Printer";
import type { ConnectionStatus } from "../PrinterProvider.enum";
import type { PrintFn } from "./usePrinterRegistry";
export type PrinterContextValue = {
printerIdSet: ReadonlySet<string>;
instancesRef: RefObject<Map<string, Printer>>;
instanceEpoch: number;
subscribeToStatus: (id: string, callback: () => void) => () => void;
getStatusForId: (id: string) => ConnectionStatus;
getPrintForId: (id: string) => PrintFn;
};
export declare const PrinterContext: import("react").Context<PrinterContextValue | null>;