/** Settings section for global and workspace-specific file filter rules. */ import type { PropsLocale, PropsRuntime, InjectFace } from '@deepseek-ai/dsh-client-ui-slots'; import type { FileIgnoreRuleInput, FolderOpenTarget, HistoryFrameMode, HistoryReuseMode } from '../contract.ts'; import type { AtFileSettingsSource } from './FilesDock.tsx'; export type AtFileFilterScope = 'global' | 'workspace'; /** Ephemeral settings navigation retained while the plugin stays mounted. */ export interface AtFileSectionViewState { filterScope: AtFileFilterScope; selectedWorkspace: string; } /** Injected business face: the live scope, retained view, and durable write verbs. */ export interface AtFileSectionInjected { hooks: { scope: AtFileSettingsSource; }; viewState: AtFileSectionViewState; setEnabled: (enabled: boolean) => Promise; setEnableSkills: (enableSkills: boolean) => Promise; setEnableChats: (enableChats: boolean) => Promise; setEnablePlugins: (enablePlugins: boolean) => Promise; setIgnorePastedMentions: (ignore: boolean) => Promise; setFolderOpen: (target: FolderOpenTarget) => Promise; /** Enable or disable the session history jump (palette + roaming). */ setHistoryJump: (enabled: boolean) => Promise; /** Choose the history frame granularity. */ setHistoryJumpFrames: (mode: HistoryFrameMode) => Promise; /** Choose how reusing a history message treats the current draft. */ setHistoryJumpReuseMode: (mode: HistoryReuseMode) => Promise; /** Choose whether the history walk follows the user's own scroll position. */ setHistoryJumpSmartFollow: (enabled: boolean) => Promise; setIgnoreFiles: (ignoreFiles: readonly FileIgnoreRuleInput[]) => Promise; setWorkspaceIgnoreFiles: (workspace: string, ignoreFiles: readonly FileIgnoreRuleInput[]) => Promise; } /** Full section props: runtime share + injected face + locale seat. */ export type AtFileSectionProps = PropsRuntime<'settings.section'> & InjectFace & PropsLocale<'atlas'>; /** Trim one legacy exact basename; retained for callers using the old helper. */ export declare function parseIgnoreFile(value: string): string | undefined; /** Render the enable switch and scoped file-filter manager. */ export declare function AtFileSection({ useScope, useSessions, useWorkspaces, viewState, setEnabled, setEnableSkills, setEnableChats, setEnablePlugins, setIgnorePastedMentions, setFolderOpen, setHistoryJump, setHistoryJumpFrames, setHistoryJumpReuseMode, setHistoryJumpSmartFollow, setIgnoreFiles, setWorkspaceIgnoreFiles, t, }: AtFileSectionProps): import("react").JSX.Element;