forked from abandonware/wireless-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wpa_supplicant.d.ts
25 lines (20 loc) · 887 Bytes
/
wpa_supplicant.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import {ChildProcess} from 'child_process';
export interface EnableOptions {
interface: string,
ssid: string,
passphrase?: string,
driver: string,
}
export interface ManualOptions {
interface: string,
drivers: string[],
}
declare interface WpaSupplicant {
disable: typeof disable,
enable: typeof enable,
manual: typeof manual,
}
export const wpa_supplicant: WpaSupplicant;
export const disable: <T extends ((err: Error) => any) | undefined = undefined>(interfaceName: string, callback?: T) => TypeOrPromise<T, void, ChildProcess>;
export const enable: <T extends ((err: Error) => any) | undefined = undefined>(options: EnableOptions, callback?: T) => TypeOrPromise<T, void, ChildProcess>;
export const manual: <T extends ((err: Error) => any) | undefined = undefined>(options: ManualOptions, callback?: T) => TypeOrPromise<T, void, ChildProcess>;