@bobfrankston/mailx-types 0.1.28 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mailx-api.d.ts +20 -0
- package/package.json +1 -1
package/mailx-api.d.ts
CHANGED
|
@@ -241,5 +241,25 @@ export interface MailxApi {
|
|
|
241
241
|
ok: boolean;
|
|
242
242
|
message: string;
|
|
243
243
|
}>;
|
|
244
|
+
/** Offline grammar lint (Harper). One entry per input block; spans are
|
|
245
|
+
* offsets into that block's plain text. Optional — absent host means
|
|
246
|
+
* the feature is silently off. */
|
|
247
|
+
grammarLint?(blocks: string[]): Promise<{
|
|
248
|
+
blocks: {
|
|
249
|
+
start: number;
|
|
250
|
+
end: number;
|
|
251
|
+
kind: string;
|
|
252
|
+
message: string;
|
|
253
|
+
suggestions: string[];
|
|
254
|
+
}[][];
|
|
255
|
+
}>;
|
|
256
|
+
/** Delete attachment(s) from a received message (local strip + queued
|
|
257
|
+
* server replace). ids = chip ids, or "all". Optional — desktop IMAP
|
|
258
|
+
* accounts only today. */
|
|
259
|
+
deleteAttachments?(accountId: string, uid: number, folderId: number | undefined, ids: number[] | "all"): Promise<{
|
|
260
|
+
ok: boolean;
|
|
261
|
+
removed: number;
|
|
262
|
+
remaining: number;
|
|
263
|
+
}>;
|
|
244
264
|
}
|
|
245
265
|
//# sourceMappingURL=mailx-api.d.ts.map
|