import { PluginFileAPI } from 'sn-plugin-lib';
/**
* 获取笔记某一页元素序号列表的示例。
*/
export async function exampleGetElementNumList() {
const notePath = '/storage/emulated/0/Note/demo.note';
const page = 0;
const res = await PluginFileAPI.getElementNumList(notePath, page);
if (!res.success) {
throw new Error(res.error?.message ?? 'getElementNumList 调用失败');
}
return res.result;
}