import { PluginDocAPI } from 'sn-plugin-lib';
/**
* Example: get total page count of the current document.
*/
export async function exampleGetCurrentTotalPages() {
const res = await PluginDocAPI.getCurrentTotalPages();
if (!res.success) {
throw new Error(res.error?.message ?? 'getCurrentTotalPages call failed');
}
return res.result;
}