import { PluginFileAPI } from 'sn-plugin-lib';
/**
* Example: get keywords.
*/
export async function exampleGetKeyWords() {
const NOTEPath = '/storage/emulated/0/Note/demo.note';
const res = await PluginFileAPI.getKeyWords(NOTEPath, [1]);
if (!res.success) {
throw new Error(res.error?.message ?? 'getKeyWords call failed');
}
return res.result;
}