function getLocalNameSpecifiers(node) {
  return (node.declaration?.declarations || node.specifiers || [])
    .map(s => {
      if (
        s.exported &&
        (s.orig || s.local) &&
        (s.exported.value || s.exported.name) !== (s.orig?.value || s.local?.name)
      ) {
        return {
          // if reserved keyword 'default' is used, translate it into 'providence keyword'
          local:
            (s.orig?.value || s.local?.name) === 'default'
              ? '[default]'
              : s.orig?.value || s.local?.name,
          exported: s.exported.value || s.exported.name,
        };
      }
      return undefined;
    })
    .filter(Boolean);
}
@returns {{local:string;exported:string;}|undefined[]}