import type { ThinkingLevel } from "@earendil-works/pi-agent-core"; import { Type, type Static } from "typebox"; export declare class MissingGlobalSettingsError extends Error { readonly settingsPath: string; constructor(settingsPath: string); } import type { AgentConfig } from "../types.js"; import type { McpServerConfig, SkillPatterns } from "../harness/types.js"; import type { OnboardLlmChoice } from "../types.js"; import type { Office } from "../office/types.js"; export declare const THINKING_LEVELS: ThinkingLevel[]; export declare function isThinkingLevel(value: unknown): value is ThinkingLevel; declare const SettingsFileSchema: Type.TObject<{ llm: Type.TOptional; model: Type.TOptional; thinkingLevel: Type.TOptional>; }>>; github: Type.TOptional>; publicRepos: Type.TOptional; users: Type.TOptional>; minPermission: Type.TOptional; triggers: Type.TOptional>; capabilities: Type.TOptional>; }>>; slack: Type.TOptional, Type.TLiteral<"thread">]>>; }>>; office: Type.TOptional>; }>>; sandbox: Type.TOptional; memory: Type.TOptional; boost: Type.TOptional; memory: Type.TOptional; }>>; defaultSharedVault: Type.TOptional; }>>; mcpServers: Type.TOptional; args: Type.TOptional>; env: Type.TOptional>; url: Type.TOptional; headers: Type.TOptional>; disabled: Type.TOptional; exposure: Type.TOptional, Type.TLiteral<"deferred">]>>; description: Type.TOptional; }>>>; skills: Type.TOptional>; }>; type SettingsFileConfig = Static; export type GithubSettings = NonNullable; export interface UnusedSettings { readonly path: string; readonly keys: readonly string[]; } export declare function findUnusedSettings(stateDir: string, offices: readonly Office[]): UnusedSettings[]; export declare function globalSettingsPath(stateDir: string): string; export declare function loadGlobalSettings(stateDir: string): AgentConfig; export declare function loadGithubSettings(stateDir: string): GithubSettings | undefined; export declare function conversationSettingsPath(office: Office): string; export type SlackAutoReplyMode = "off" | "on" | "jev"; export declare function slackConversationAutoReplyMode(office: Office): SlackAutoReplyMode; export declare function setSlackConversationAutoReply(office: Office, mode: SlackAutoReplyMode): void; export declare function resolveConversationSettings(office: Office): AgentConfig; export declare function createGlobalSettingsFile(stateDir: string, choices?: { llm?: OnboardLlmChoice; githubRepos?: string[]; }): string; export declare function updateGlobalSettings(stateDir: string, patch: Partial): void; export declare function updateConversationSettings(office: Office, patch: Partial): void; export declare function loadSkillPatterns(office: Office): SkillPatterns; export declare function updateSkillPatterns(office: Office, scope: keyof SkillPatterns, skills: readonly string[]): void; export declare function loadScopeMcpServers(office: Office): { global: Record; conversation: Record; }; export declare function loadOfficeVisibilityOverride(office: Office): "private" | null; export declare function setOfficeVisibilityOverride(office: Office, visibility: "private" | null): void; export {}; //# sourceMappingURL=index.d.ts.map