import {
  __esm,
  __objRest
} from "./chunk-OBKEW4AQ.mjs";

// src/resources/payouts/index.ts
function createPayoutsResource(client) {
  return {
    list({
      instanceId,
      params
    }) {
      const queryParams = params ? `?${new URLSearchParams(params)}` : "";
      return client.get(`/instances/${instanceId}/payouts${queryParams}`);
    },
    export({
      instanceId,
      params
    }) {
      const queryParams = params ? `?${new URLSearchParams(params)}` : "";
      return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
    },
    get({ instanceId, id }) {
      return client.get(`/instances/${instanceId}/payouts/${id}`);
    },
    getTrack({
      id
    }) {
      return client.get(`/e/payouts/${id}`);
    },
    authorizeStellarToken(_a) {
      var _b = _a, {
        instanceId
      } = _b, data = __objRest(_b, [
        "instanceId"
      ]);
      return client.post(`/instances/${instanceId}/payouts/stellar/authorize`, data);
    },
    createStellar(_c) {
      var _d = _c, {
        instanceId
      } = _d, data = __objRest(_d, [
        "instanceId"
      ]);
      return client.post(`/instances/${instanceId}/payouts/stellar`, data);
    },
    createEvm(_e) {
      var _f = _e, {
        instanceId
      } = _f, data = __objRest(_f, [
        "instanceId"
      ]);
      return client.post(`/instances/${instanceId}/payouts/evm`, data);
    }
  };
}
var init_payouts = __esm({
  "src/resources/payouts/index.ts"() {
  }
});

export {
  createPayoutsResource,
  init_payouts
};
