// noop 替代 @mariozechner/clipboard — 原生剪贴板绑定的空实现
// pi-coding-agent 中通过 try/catch 动态加载此包，加载失败会降级为 null，不影响运行。

function noop() {
  return null;
}
function noopBool() {
  return false;
}
function noopString() {
  return "";
}
function noopArray() {
  return [];
}

module.exports = {
  availableFormats: noopArray,
  getText: noopString,
  setText: noop,
  hasText: noopBool,
  getImageBinary: noop,
  getImageBase64: noopString,
  setImageBinary: noop,
  setImageBase64: noop,
  hasImage: noopBool,
  getHtml: noopString,
  setHtml: noop,
  hasHtml: noopBool,
  getRtf: noopString,
  setRtf: noop,
  hasRtf: noopBool,
  clear: noop,
  watch: noop,
  callThreadsafeFunction: noop,
};
