import { TreeNode as BaseTreeNode, CompositeTreeNode as BaseCompositeTreeNode, SelectableTreeNode } from '@theia/core/lib/browser'; import { Command, MenuPath, PreferenceDataProperty, PreferenceInspection } from '@theia/core'; import { JSONValue } from '@theia/core/shared/@lumino/coreutils'; import { JsonType } from '@theia/core/lib/common/json-schema'; export declare namespace Preference { interface EditorCommandArgs { id: string; value: string | undefined; } namespace EditorCommandArgs { function is(prefObject: EditorCommandArgs): prefObject is EditorCommandArgs; } const Node: unique symbol; type Node = TreeNode; type TreeNode = CompositeTreeNode | LeafNode; namespace TreeNode { const is: (node: BaseTreeNode | TreeNode) => node is TreeNode; const isTopLevel: (node: BaseTreeNode) => boolean; const getGroupAndIdFromNodeId: (nodeId: string) => { group: string; id: string; }; } interface CompositeTreeNode extends BaseCompositeTreeNode, SelectableTreeNode { expanded?: boolean; depth: number; label?: string; } namespace CompositeTreeNode { const is: (node: TreeNode) => node is CompositeTreeNode; } interface LeafNode extends BaseTreeNode { label?: string; depth: number; preference: { data: PreferenceDataProperty; }; preferenceId: string; } namespace LeafNode { const is: (node: BaseTreeNode | LeafNode) => node is LeafNode; const getType: (node: BaseTreeNode | LeafNode) => JsonType | undefined; } const getValueInScope: (preferenceInfo: PreferenceInspection | undefined, scope: number) => T | undefined; interface SelectedScopeDetails { scope: number; uri: string | undefined; activeScopeIsFolder: boolean; } const DEFAULT_SCOPE: SelectedScopeDetails; } export declare namespace PreferencesCommands { const OPEN_PREFERENCES_JSON_TOOLBAR: Command; const COPY_JSON_NAME: Command; const RESET_PREFERENCE: Command; const COPY_JSON_VALUE: Command; const OPEN_USER_PREFERENCES: Command; const OPEN_WORKSPACE_PREFERENCES: Command; const OPEN_FOLDER_PREFERENCES: Command; const OPEN_USER_PREFERENCES_JSON: Command; const OPEN_WORKSPACE_PREFERENCES_JSON: Command; const OPEN_FOLDER_PREFERENCES_JSON: Command; } export declare namespace PreferenceMenus { const PREFERENCE_EDITOR_CONTEXT_MENU: MenuPath; const PREFERENCE_EDITOR_COPY_ACTIONS: MenuPath; const FOLDER_SCOPE_MENU_PATH: string[]; } //# sourceMappingURL=preference-types.d.ts.map