import type { ReactNode } from 'react'; import { type ToolStrings } from './agent/toolStrings.js'; export interface ChatStrings { shareConversation: { title: string; loadError: string; saveSuccess: string; orgAccess: string; orgCanView: string; allowCollaboration: string; groupAccess: string; noGroups: string; viewOnly: string; canCollaborate: string; addGroups: string; info: ReactNode; shareButton: string; /** Beside the share button in a shared conversation that can use tools. */ toolResultsShared: string; }; blockedGroup: { title: (group: string) => string; message: string; }; providerIssue: { keyRejected: string; unreachable: string; keyRejectedHint: string; unreachableHint: string; bannerKeyRejected: (provider: string) => string; bannerUnreachable: (provider: string) => string; }; modelPicker: { /** Names the picker for assistive technology. */ choose: string; select: string; search: string; loading: string; failed: string; none: string; /** Beside a provider another user registered and shared with the reader. */ sharedBy: (owner: string) => string; /** Beside a session whose models are still loading. */ connecting: string; /** Beside a session whose service did not answer. */ notResponding: string; /** Links the provider's settings from its issue banner, for its owner. */ manageProvider: string; /** Sending before a model is chosen. */ selectFirst: string; }; composerMenu: { /** Names the composer's + button while it opens a menu of files and tools. */ label: string; /** Opens the attachments panel from the menu. */ addFiles: string; /** Heads the host's tools in the menu, and names the + when it holds only tools. */ tools: string; /** Beside the + while the reader has turned some of the host's tools off. */ someToolsOff: string; /** Beside Tools: how many of the host's tools are on. */ toolsOn: (enabled: number, total: number) => string; /** Under the title of the modal that lists every tool. */ toolsDescription: string; searchTools: string; /** The modal's search matched no tool. */ noToolsMatch: string; turnAllOn: string; turnAllOff: string; allTools: string; lookups: string; turnShownOn: string; turnShownOff: string; toolsEnabled: (enabled: number, total: number) => string; /** Closes the tools modal; each switch takes effect as it is flipped. */ done: string; /** Marks a tool whose calls wait for the reader's approval. */ asksFirst: string; }; allocationPicker: { choose: string; placeholder: string; search: string; usage: (used: string, total: string) => string; }; queue: { remove: string; /** Under a message that goes out once the running reply finishes. */ waiting: string; /** Under a message a steering host hands to the agent between steps. */ waitingNextStep: string; /** Under a message the host has already handed to the running turn. */ handedOver: string; /** Under the last queued message of a host that can take them back: puts * every one still waiting back in the composer to edit. */ edit: string; /** Names that button for assistive technology. */ editLabel: string; /** The composer's placeholder while messages wait, where ↑ takes them back. */ editHint: string; }; activity: { tokens: (input: string, output: string) => string; stop: string; /** The status words an agent's working line picks from, one per turn. */ words: readonly string[]; /** The working line while a call waits for the reader to allow it. */ waitingForAnswer: string; }; emptyState: { greeting: string | null; modernSubtitle: string; noProvidersTitle: string; noProvidersBody: string; addProvider: string; sessionUnreachableTitle: (session: string) => ReactNode; sessionUnreachableBody: string; }; input: { placeholder: string; placeholderLoading: string; placeholderNoProviders: string; attachFiles: string; stopGenerating: string; sendMessage: string; filesAttached: (count: number) => string; /** In the slash menu while the host is still loading its commands. */ loadingCommands: string; /** Names the list of emoji offered while a `:shortcode` is typed. */ emoji: string; /** Marks a `!` line, which a composer with `shell` runs as a shell command. */ shellMode: string; /** Beside `shellMode` under the box: what Enter does with the command. */ shellHint: string; }; paste: { title: string; lines: (count: number) => string; saving: string; remove: string; }; thinking: { label: string; ellipsis: string; thoughtFor: (duration: string) => string; /** A finished reasoning toggle's label when its duration is unknown. */ thoughtProcess: string; activity: string; /** A finished turn's label when it ran tools without reasoning. */ ranToolCalls: (count: number) => string; /** The same, in a shared conversation, for a turn someone else started: * its tools ran with that person's access. */ ranToolCallsAs: (count: number, name: string) => string; }; thread: { viewOnly: string; /** Names the thread, a live log of the conversation, for assistive technology. */ label: string; /** Names the pinned prompt, which returns to the message it shows. */ jumpToPrompt: (text: string) => string; }; /** The bar that finds text in the transcript. */ find: { /** Names the field, and is its placeholder. */ label: string; /** Which match is current, of how many. */ count: (current: number, total: number) => string; /** The same when there are more matches than the bar counts. */ countCapped: (current: number, total: number) => string; none: string; previous: string; next: string; close: string; }; sidebar: { groupToday: string; groupYesterday: string; groupThisWeek: string; groupThisMonth: string; groupOlder: string; untitled: string; sharedWithYou: string; openSidebar: string; closeSidebar: string; /** Names the drawer the list opens in on a narrow layout. */ drawerLabel: string; resizeLabel: string; resizeHint: string; newChat: string; attachments: string; connectTools: string; manageProviders: string; noConversations: string; deleteTitle: string; deleteBody: string; renameTitle: string; renameLabel: string; renamePlaceholder: string; }; attachmentUpload: { fileTooLarge: (maxSize: string) => string; maxFilesAllowed: (max: number) => string; dropFilesHere: string; releaseToUpload: string; addFiles: string; maxSizePerFile: (size: string) => string; uploading: string; /** On a file added where the chat has nowhere to upload it. */ uploadUnavailable: string; }; attachmentManager: { title: string; empty: string; /** Names an image attachment that has no file name. */ unnamedImage: string; /** Names a file attachment that has no file name. */ unnamedFile: string; /** Opens an attachment's preview, given its name. */ open: (name: string) => string; /** Names an attachment's download link, given its name. */ download: (name: string) => string; /** Names an attachment's delete button, given its name. */ remove: (name: string) => string; /** Steps the image viewer back to the message's previous picture. */ previousImage: string; /** Steps the image viewer on to the message's next picture. */ nextImage: string; /** Where the shown picture falls among the message's pictures, such as "2 of 3". */ imagePosition: (position: number, total: number) => string; /** Says the image viewer is left showing a preview because the full image failed to load. */ fullImageFailed: string; }; branch: { previous: string; next: string; }; chrome: { searchPlaceholder: string; searchLabel: string; noMatches: string; exportError: string; jumpToLatest: string; /** The copy shortcut's note when no reply has come yet. */ noResponseToCopy: string; }; messageMeta: { stopped: string; tokens: (total: number) => string; tokensBreakdown: (prompt: number, completion: number) => string; /** What a message's copy button names: "Copy message", then "Copied message". */ copyLabel: string; edit: string; regenerate: string; editPlaceholder: string; /** Under a failed message while the service's wait lasts; `time` reads the * time left, "2h 47m", with the exact time on hover. */ tryAgain: (time: ReactNode) => ReactNode; }; permissions: { choose: string; readOnly: string; acceptEdits: string; auto: string; bypassPermissions: string; plan: string; readOnlyHint: string; acceptEditsHint: string; autoHint: string; bypassPermissionsHint: string; planHint: string; }; effort: { /** Names the picker, its panel and its slider for assistive technology. */ choose: string; /** Names the chip for assistive technology, since it shows the level alone. */ named: (level: string) => string; /** The chip and the panel's heading at each stop. */ low: string; medium: string; high: string; xhigh: string; max: string; /** Under the slider's two ends. */ faster: string; smarter: string; }; agentTranscript: { running: string; done: string; failed: string; /** A failed call's row, with the first line of its error. */ failedWith: (reason: string) => string; /** Consecutive calls to one tool, folded into one row. */ callGroup: (tool: string, count: number) => string; /** A folded row of file edits, counting the ones that went through. */ editGroup: (count: number) => string; /** A folded row of file writes, counting the files written. */ writeGroup: (files: number) => string; /** A folded row whose calls all failed, named by the tool's label. */ failedGroup: (tool: string, count: number) => string; /** Beside a folded row: how many of its calls failed. */ failedCount: (count: number) => string; interrupted: string; /** In a stopped subagent's outcome, "Failed (interrupted)". */ interruptedReason: string; /** While a reviewer decides on a subagent's calls, in place of its latest action. */ reviewing: (count: number) => string; /** A run of subagents started in the background, above their names. */ backgroundLaunched: (count: number) => string; /** After a call's arguments when a hook changed them before it ran. */ argsRewritten: string; noOutput: string; diffTruncated: string; /** Under a long tool result, how many of its lines are folded away. */ moreLines: (count: number) => string; allowOnce: string; allowDirectory: string; deny: string; allowCode: string; denyCode: string; allowPath: string; denyPath: string; allowCall: string; denyCall: string; denyWithFeedback: string; feedbackPlaceholder: string; answered: string; /** Under a call someone answered: who allowed or denied it. */ allowedBy: (name: string) => string; /** Allowed after the reader changed the call's arguments. */ allowedWithChangesBy: (name: string) => string; deniedBy: (name: string) => string; allowed: string; allowedWithChanges: string; denied: string; allowedByReviewer: string; deniedByReviewer: string; approvalExpired: string; approvalTimedOut: string; reviewTimedOut: string; reviewFailed: string; writeOwnAnswer: string; subagent: string; tasks: string; planPending: string; approvalPending: string; approvalOptions: string; /** Names a question the agent waits on that has no heading of its own. */ approvalLabel: string; /** A call the reader approved or declined. */ approvalAllowed: string; approvalDenied: string; /** A call nobody answered in time. */ approvalRequestExpired: string; /** A call only the person who asked for it may answer. */ approvalWaitingOn: (name: string) => string; /** Names the field for the reason a request is denied. */ feedbackLabel: string; /** Names the field for an answer of the reader's own. */ ownAnswerLabel: string; /** The field of a question that takes typed text alone. */ typeYourAnswer: string; /** Names the tabs of an ask's questions. */ questionsLabel: string; /** A question's tab when it has no header of its own. */ questionTab: (n: number) => string; /** Above an ask's buttons: how many of its questions have an answer. */ answeredCount: (answered: number, total: number) => string; submitAnswers: string; /** Answers an ask by asking to talk its questions through instead. */ chatAboutThis: string; /** A question sent without an answer. */ noAnswer: string; /** In the preview pane, for an option that has no preview of its own. */ noPreview: string; /** Names the pane showing an option's preview. */ previewOf: (label: string) => string; /** Names the notes on a single-select question, in their field and under an answer. */ notesLabel: string; notesPlaceholder: string; /** The button on a picked option that opens its notes, which N also opens. */ addNotes: string; /** An answer that is notes alone, which an answered ask shows over the notes. */ notesOnly: string; /** Read out in place of a task's checkbox glyph. */ todoPending: string; todoInProgress: string; todoCompleted: string; }; /** One-line summaries of an agent's finished tool calls. */ tools: ToolStrings; } export declare const defaultChatStrings: ChatStrings;