forked from coinbase/coinbase-pro-trading-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pushbullet.d.ts
36 lines (26 loc) · 1.23 KB
/
pushbullet.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
26
27
28
29
30
31
32
33
34
35
// Type definitions for pushbullet 2.0.0
// Project: https://github.com/alexwhitman/node-pushbullet-api
// Definitions by: Cayle Sharrock <https://github.com/CjS77>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'pushbullet' {
namespace PushBullet {
export type Callback = (err: Error, res: any) => void;
export type DeviceParams = string | number | object;
export interface DeviceOptions {
active?: boolean;
limit?: number;
cursor?: number;
}
}
class PushBullet {
constructor(api_key: string);
me(cb: PushBullet.Callback): void;
devices(options: PushBullet.DeviceOptions, cb: PushBullet.Callback): void;
note(deviceParams: PushBullet.DeviceParams, noteTitle: string, noteBody: string, cb: PushBullet.Callback): void;
link(deviceParams: PushBullet.DeviceParams, name: string, url: string, cb: PushBullet.Callback): void;
file(deviceParams: PushBullet.DeviceParams, filePath: string, message: string, cb: PushBullet.Callback): void;
deletePush(pushId: string, cb: PushBullet.Callback): void;
deleteAllPushes(cb: PushBullet.Callback): void;
}
export = PushBullet;
}