UNPKG

react-native-epson-escposprinter

Version:
47 lines 1.36 kB
export declare const enum LogPeriod { PERIOD_TEMPORARY = 0, PERIOD_PERMANENT = 1 } export declare const enum LogOutput { OUTPUT_DISABLE = 0, OUTPUT_STORAGE = 1, OUTPUT_TCP = 2 } export declare const enum LogLevel { LOGLEVEL_LOW = 0 } export declare class Log { /** * Disable logs. */ static disable(): Promise<void>; /** * Enable logs and send the output to the device storage. */ static enableLocal( /** * Specifies whether the log output function setting is temporary or * permanent. The configuration file is not created for temporary setting * but is created for permanent setting. * * @default LogPeriod.PERIOD_TEMPORARY */ period?: LogPeriod, /** * Specifies the maximum capacity of the log stored in the storage. * * @default 10 */ size?: number, level?: LogLevel): Promise<void>; /** * Enable logs and stream output to the specified TCP endpoint. */ static enableNetwork( /** Specifies the IP address in the IPv4 format for TCP communication. */ ip: string, /** Specifies the port number for TCP communication. */ port: number, level?: LogLevel): Promise<void>; /** Acquires the Epson ePOS SDK version. */ static getSdkVersion(): Promise<string>; } //# sourceMappingURL=Log.d.ts.map