import type { DebugContext } from "../tools/index.js";
export declare function deriveStudioUrl(runtimeBaseUrl: string): string;
export declare function buildStudioHeaders(ctx: DebugContext, studioBase?: string): Record<string, string>;
export declare function readResponseBody(response: Response): Promise<unknown>;
export declare function postStudioJson(ctx: DebugContext, path: string, body: unknown, timeoutMs?: number): Promise<{
    ok: true;
    body: unknown;
} | {
    ok: false;
    status: number;
    statusText: string;
    body: unknown;
}>;
export declare function requestStudioJson(ctx: DebugContext, input: {
    method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
    path: string;
    body?: unknown;
    timeoutMs?: number;
}): Promise<{
    ok: true;
    body: unknown;
} | {
    ok: false;
    status: number;
    statusText: string;
    body: unknown;
}>;
export declare function formatStudioFailure(path: string, result: {
    status: number;
    statusText: string;
    body: unknown;
}, method?: string): string;
//# sourceMappingURL=studio-api.d.ts.map