LookAtMySuitBot/js/node_modules/macaddress/index.d.ts

15 lines
508 B
TypeScript
Raw Normal View History

2023-12-24 20:08:39 -05:00
declare module 'macaddress' {
export type MacAddresCallback = (err: any, data: any) => void;
export type MacAddressOneCallback = (err: any, mac: string) => void;
export function one(callback: MacAddressOneCallback): void;
export function one(iface?: string): Promise<string>;
export function one(iface: string, callback: MacAddressOneCallback): void;
export function all(callback: MacAddresCallback): void;
export function all(): Promise<any>;
export function networkInterfaces(): any;
}