Convert the selection API helpers to TypeScript
Convert the API helper functions in src/api/selection.js
to TypeScript, using the request and response payloads defined in the backend API docs as a reference.
Convert the API helper functions in src/api/selection.js
to TypeScript, using the request and response payloads defined in the backend API docs as a reference.