/** * Short Codes namespace — list, get, update (no create/delete). */ import type { HttpClient } from '../HttpClient.js'; import type { QueryParams } from '../types.js'; import { BaseResource } from '../base/BaseResource.js'; /** * Short code management (read + update only). * * Access via `client.shortCodes.*`. */ export declare class ShortCodesResource extends BaseResource { constructor(http: HttpClient); /** * List short codes in the project. * * @param params - Optional filter / pagination query parameters. * @returns A paginated list of short codes. * @throws {RestError} On any non-2xx HTTP response. */ list(params?: QueryParams): Promise; /** * Fetch a short code by ID. * * @param shortCodeId - Unique identifier of the short code. * @returns The short-code record. * @throws {RestError} On any non-2xx HTTP response (including `404`). */ get(shortCodeId: string): Promise; /** * Update a short code's configuration (webhooks, friendly name, etc.). * * @param shortCodeId - Unique identifier of the short code. * @param body - Full updated short-code attributes (replace semantics). * @returns The updated short-code record. * @throws {RestError} On any non-2xx HTTP response. */ update(shortCodeId: string, body: any): Promise; }