import { UsefulLink, UsefulLinkPayload } from '@edifice.io/client'; /** * Creates a useful links service with methods to manage the current user's * personal "useful links" (homepage "Liens utiles" widget). * * Backend contract: `GET`/`POST`/`PUT`/`DELETE /bookmark/api/v2/bookmarks`. * `POST`/`PUT` only return the bookmark's `_id`, not the full resource. * Known error code: `bookmark.widget.bad.request.limit.reached` (POST, 400, * once the user already has 10 links). `PUT` returns 401 if the id doesn't * belong to the user, `DELETE` returns 404 if the id doesn't exist. * * @param baseURL The base URL for the useful links service API. */ export declare const createUsefulLinksService: (baseURL: string) => { /** * Get the current user's useful links. */ getUsefulLinks(): Promise; /** * Create a new useful link. */ createUsefulLink(payload: UsefulLinkPayload): Promise; /** * Update an existing useful link. */ updateUsefulLink(id: string, payload: UsefulLinkPayload): Promise; /** * Delete a useful link. */ deleteUsefulLink(id: string): Promise; };