import { ResolvedFill } from "./pluginRegistry.mjs"; import { ComposerCapture, TransientTab, WebPluginContextInventoryItem, WebPluginContextItem, WebPluginSessionContext, WebPluginSlotProps } from "@agimon-ai/po-core/web"; import { ReactNode } from "react"; //#region src/web/lib/pluginSlotProps.d.ts /** The id-only session context a plugin sees, from the hub's summary of the target session. */ export declare function pluginSessionContext(sessionId: string | null, summary: { workspaceId?: string; parentSessionId?: string; sessionProvenance?: string; } | undefined): WebPluginSessionContext | undefined; /** Explicit scopes never inherit the unrelated focused session or workspace's fills. */ export declare function pluginSlotFills(slot: string, sessionId: string | null, workspaceId?: string): ResolvedFill[]; /** * A wrap region: its fills fold around the host's own part, the first fill outermost. Each fill * receives the part as it renders without that fill in `children`, so it may decorate or replace * it. A fill that throws renders those children instead: a broken customisation drops out and the * region stays. Shared by the cockpit and the phone, which reuse these slot props. */ export declare function renderRegion(slot: string, inner: ReactNode, props: WebPluginSlotProps, sessionId: string | null, workspaceId?: string): ReactNode; /** The host's hold on the focused session's runtime tabs, bound in by the caller that owns the store. */ export interface TransientTabActions { open: (tab: TransientTab) => void; close: (tabId: string) => void; } /** * The one place the props every plugin component receives are built. The * same object is handed to every fill a slot renders, so a fill that is * itself a slot owner can render its own slots with it. */ export declare function pluginSlotProps(sessionId: string | null, openTab: (tabId: string | null) => void, statuses: Readonly>, tabs: TransientTabActions, appendComposerDraft: (text: string) => void, attachComposerContext: (item: WebPluginContextItem) => void, attachComposerCapture?: (capture: ComposerCapture) => void, contextInventory?: readonly WebPluginContextInventoryItem[], submitCapture?: (capture: ComposerCapture) => Promise, sessionReservationId?: string, workspaceId?: string): WebPluginSlotProps; //#endregion //# sourceMappingURL=pluginSlotProps.d.mts.map