import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{CancelEventDetail,RetryEventDetail}from'../../../ai/types.js';import type{KnowledgeSource}from'../knowledge-base/knowledge-base.class.js';export type{KnowledgeSource}from'../knowledge-base/knowledge-base.class.js';import type{IngestionQueueItem}from'../ingestion-queue/ingestion-queue.class.js';export type{IngestionQueueItem}from'../ingestion-queue/ingestion-queue.class.js';export type KnowledgeBaseAdminTab='sources'|'ingestion';export interface LyraKnowledgeBaseAdminEventMap{'lr-tab-change':CustomEvent<{tab:KnowledgeBaseAdminTab;}>;'lr-activate':CustomEvent<{value:KnowledgeBaseAdminTab;}>;'lr-source-create':CustomEvent;'lr-source-sync':CustomEvent<{sourceId:string;}>;'lr-source-pause':CustomEvent<{sourceId:string;}>;'lr-source-delete':CustomEvent<{sourceId:string;}>;'lr-ingestion-retry':CustomEvent;'lr-ingestion-cancel':CustomEvent;} /** * `` — a responsive operations shell composing the existing controlled * source inventory and ingestion queue into one tabbed knowledge-base view. It forwards every * source/ingestion action under a namespaced event and never creates connectors, uploads files, or * changes indexing configuration itself. Put configuration controls in the `settings` slot. * * Public collection properties take bounded, clone-owned readonly snapshots. Create a new * collection and reassign it after changes; mutating the assigned array does not update the view. * * @customElement lr-knowledge-base-admin * @slot settings - Optional host-owned ingestion, chunking, embedding, or permissions controls. * @event lr-tab-change - The active operations tab changed. `detail: { tab }`. * @event lr-activate - Fired on every user activation of an available tab -- a click, or an * Arrow/Home/End key -- whether or not `activeTab` actually moved. `detail: { value }` carries * the activated tab, the same identity `lr-tab-change` reports. Bubbling and composed, so a host * outside the shadow tree receives it. Not cancelable: it is a notification that the user picked * a tab, not a veto point, and nothing in this component branches on it. Re-picking the active * tab is the case `lr-tab-change` deliberately stays silent for -- "refresh that queue" is a real * intent -- and from the keyboard it is otherwise unobservable, because Home on an already-first * active tab (or End on an already-last one) activates a tab and produces no click at all. When * an activation does move the tab, `lr-tab-change` is emitted first. The normalization that * moves an invalid or newly-hidden tab back to Sources is not a user activation and fires only * `lr-tab-change`. * @event lr-source-create - Forwarded source creation request. * @event lr-source-sync - Forwarded source sync request. `detail: { sourceId }`. * @event lr-source-pause - Forwarded source pause request. `detail: { sourceId }`. * @event lr-source-delete - Forwarded source deletion request. `detail: { sourceId }`. * @event lr-ingestion-retry - Forwarded ingestion retry request. * @event lr-ingestion-cancel - Forwarded ingestion cancel request. * @csspart base - The root admin wrapper. * @csspart heading - The visible heading. * @csspart tabs - The tablist. * @csspart tab - One tab button. * @csspart panel - The active panel. * @csspart settings - The settings slot wrapper. * @cssprop [--lr-knowledge-base-admin-tab-selected-border=var(--lr-color-brand)] - Bottom border * color of the selected `[part="tab"]`. * @cssprop [--lr-knowledge-base-admin-tab-selected-color=var(--lr-color-text)] - Text color of the * selected `[part="tab"]`. `::part(tab)[aria-selected='true']` is invalid CSS, so this pair is * the only way to restyle the active tab without re-pointing the shared brand/text tokens. * @status stable * @since 6.2.0 */ export declare class LyraKnowledgeBaseAdmin extends LyraElement{protected static readonly ownedCollectionProperties:readonly string[];static styles:import("lit").CSSResultGroup[]; /** Knowledge-base source connectors. */ sources:readonly KnowledgeSource[]; /** Documents currently moving through ingestion. */ ingestionItems:readonly IngestionQueueItem[]; /** Active tab. Controlled by the host after `lr-tab-change` if desired. An invalid value, or an * ingestion tab that becomes unavailable, normalizes to `'sources'` through the same event * contract. */ activeTab:KnowledgeBaseAdminTab; /** Accessible name and visible heading. Omitted falls back to a localized default; an * explicitly empty `label` is used as-is. */ label?:string; /** Hides the ingestion tab and queue. An active/focused ingestion tab moves to Sources. */ hideIngestion:boolean;private readonly idPrefix;private focusSourcesAfterUpdate;private tabId;private panelId;private setTab;protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;private handleTabKeydown;private forward;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-knowledge-base-admin':LyraKnowledgeBaseAdmin;}}