import { JSX } from 'react'; import { AgentActivitySessionSettings, AgentActivityComposerOptions, AgentPromptContentBlock } from '@tutti-os/agent-activity-core'; import { I18nRuntime } from '@tutti-os/ui-i18n-runtime'; import { RichTextMentionService } from '@tutti-os/ui-rich-text/service'; import { WorkspaceUserProjectApi } from '@tutti-os/workspace-user-project/contracts'; import { c as AgentComposerProps } from './AgentComposer.types.d-DE7dMBEs.js'; import { A as AgentGuiI18nLocale } from './runtime.d-Dwf44VKc.js'; import { c as AgentGUIAgentTarget } from './types.d-J0XWegqK.js'; import './agentGuiNodeTypes.d-B2xk381A.js'; import './agentSession.d-4jwjFmc1.js'; import './workspaceLinkActions.d-gJPVQnM0.js'; import '@tutti-os/workspace-issue-manager/core'; import '@tutti-os/workspace-user-project/i18n'; import '@tutti-os/workspace-user-project/ui'; import './AgentMentionSearchContracts.d-BsdR0M3b.js'; import '@tiptap/core'; import './context-mention-provider.js'; import '@tutti-os/ui-rich-text/types'; import '@tutti-os/workspace-external-core/contracts'; import '@tutti-os/ui-rich-text/at-panel'; import '@tutti-os/workspace-file-reference/contracts'; import '@tutti-os/workspace-file-reference/react'; import './planImplementationPresentation.d-BxVOLt6A.js'; type AgentGUIQuickComposerSettings = Pick; type AgentGUIQuickComposerAgentTarget = Omit & { agentTargetId: string; }; interface AgentGUIQuickComposerTargetCapabilities { imageInput: boolean; workspaceReferences: boolean; } interface AgentGUIQuickComposerSettingsCapability { /** Host-owned authoritative options for the exact selected target/cwd. */ options: AgentActivityComposerOptions | null; loading: boolean; /** Controlled sparse pre-session settings selected in this draft. */ value: AgentGUIQuickComposerSettings; onChange(patch: AgentGUIQuickComposerSettings): void; } interface AgentGUIQuickComposerSubmission { agentTargetId: string; content: AgentPromptContentBlock[]; displayPrompt?: string; settings?: AgentGUIQuickComposerSettings; } interface AgentGUIQuickComposerProps { agentTargets: readonly AgentGUIQuickComposerAgentTarget[]; capabilitiesByAgentTargetId: Readonly>; composerActionAccessory?: AgentComposerProps["composerActionAccessory"]; composerActionPlacement?: AgentComposerProps["composerActionPlacement"]; /** Omit the whole capability when the host cannot persist settings changes. */ composerSettings?: AgentGUIQuickComposerSettingsCapability; content: readonly AgentPromptContentBlock[]; disabled?: boolean; /** Fill a height explicitly assigned by the embedding host. */ fillAvailableHeight?: boolean; /** Visual treatment for the canonical Composer input surface. */ inputSurfaceVariant?: "default" | "borderless"; /** Host i18n runtime, matching the full AgentGUI embedding contract. */ i18n?: I18nRuntime | null; locale?: AgentGuiI18nLocale; /** Mention providers supplied by the embedding host. */ mentionService?: RichTextMentionService; /** Reserved host chrome above portaled composer menus. */ menuViewportTopInset?: number; onAgentTargetChange(agentTargetId: string): void; onContentChange(content: AgentPromptContentBlock[]): void; onProjectPathChange?: AgentComposerProps["onProjectPathChange"]; onRequestWorkspaceReferences?: AgentComposerProps["onRequestWorkspaceReferences"]; onSubmit(submission: AgentGUIQuickComposerSubmission): void; placeholder?: string; selectedProjectPath?: string | null; selectedAgentTargetId: string; selectProjectDirectory?: AgentComposerProps["selectProjectDirectory"]; /** Real project catalog and registration capability supplied by the host. */ userProjectApi?: WorkspaceUserProjectApi | null; workspaceId: string; } /** * A lifecycle-free AgentGUI entry surface for launchers that already have a * workspace Engine owner. It owns only draft presentation; the Host receives * the submitted prompt and remains responsible for Session activation. */ declare function AgentGUIQuickComposer(props: AgentGUIQuickComposerProps): JSX.Element; export { AgentGUIQuickComposer, type AgentGUIQuickComposerAgentTarget, type AgentGUIQuickComposerProps, type AgentGUIQuickComposerSettings, type AgentGUIQuickComposerSettingsCapability, type AgentGUIQuickComposerSubmission, type AgentGUIQuickComposerTargetCapabilities };