import type * as agentcore from "@distilled.cloud/aws/bedrock-agentcore"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { BrowserCustom } from "./BrowserCustom.ts"; export interface UpdateBrowserStreamRequest extends Omit { } /** * Updates a browser session's automation stream. * * Bind a {@link BrowserCustom} inside a function runtime to call the * AgentCore data-plane API against it. Provide `AgentCore.UpdateBrowserStreamHttp` * on the Function effect to implement the binding. * * ### Browser Automation * **Example:** Release the Automation Stream * ```typescript * // init * const updateBrowserStream = yield* AgentCore.UpdateBrowserStream(browser); * * return { * fetch: Effect.gen(function* () { * // runtime * yield* updateBrowserStream({ * sessionId, * streamUpdate: { * automationStreamUpdate: { streamStatus: "ENABLED" }, * }, * }); * return HttpServerResponse.json({ updated: true }); * }), * }; * ``` * * @binding */ export interface UpdateBrowserStream extends Binding.Service(browser: R) => Effect.Effect<(request: UpdateBrowserStreamRequest) => Effect.Effect>> { } export declare const UpdateBrowserStream: UpdateBrowserStream; //# sourceMappingURL=UpdateBrowserStream.d.ts.map