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 SaveBrowserSessionProfileRequest extends Omit { } /** * Persists a browser session's state to a reusable browser profile. * * Bind a {@link BrowserCustom} inside a function runtime to call the * AgentCore data-plane API against it. Provide `AgentCore.SaveBrowserSessionProfileHttp` * on the Function effect to implement the binding. * * ### Browser Profiles * **Example:** Save a Session Profile * ```typescript * // init * const saveBrowserSessionProfile = yield* AgentCore.SaveBrowserSessionProfile(browser); * * return { * fetch: Effect.gen(function* () { * // runtime * yield* saveBrowserSessionProfile({ * sessionId, * profileIdentifier, * }); * return HttpServerResponse.json({ saved: true }); * }), * }; * ``` * * @binding */ export interface SaveBrowserSessionProfile extends Binding.Service(browser: R) => Effect.Effect<(request: SaveBrowserSessionProfileRequest) => Effect.Effect>> { } export declare const SaveBrowserSessionProfile: SaveBrowserSessionProfile; //# sourceMappingURL=SaveBrowserSessionProfile.d.ts.map