import type { Output } from '../output/output.js'; import type { SeamApi } from './api.js'; export interface RequestSeamApiOptions { path: string; params: Record; /** Response key for the endpoint, used to trim the reported payload. */ responseKey?: string | null | undefined; } export interface RequestSeamApiDependencies { api: SeamApi; output: Output; } /** * Make a request and report the result: the request URL and params go to * stderr, the trimmed payload to stdout. An API error reports its status * and payload and sets the exit code. Returns the response body, or `null` * when the API reported an error. */ export declare const requestSeamApi: (options: RequestSeamApiOptions, { api, output }: RequestSeamApiDependencies) => Promise;