import type { DB } from "../index.js"; import { CONFIG_SCHEMA } from "../../runtime-config.js"; export declare function getConfig(db: DB, key: string): Promise; export declare function setConfig(db: DB, key: string, value: string): Promise; export declare function deleteConfig(db: DB, key: string): Promise; export declare function getAllConfig(db: DB): Promise>; /** * Get config schema with descriptions and defaults for agent discovery */ export declare function getConfigSchema(): typeof CONFIG_SCHEMA; /** * Initialize config with defaults for any missing keys. * This ensures all config options are discoverable and have values. */ export declare function initializeConfigDefaults(db: DB): Promise<{ initialized: string[]; existing: string[]; }>; /** * Validate a config value against its schema */ export declare function validateConfigValue(key: string, value: string): { valid: boolean; error?: string; }; /** * Parse and validate a JSON config value */ export declare function parseJsonConfig(value: string | null, defaultValue: T): T; /** * Parse a boolean config value */ export declare function parseBooleanConfig(value: string | null, defaultValue: boolean): boolean; /** * Parse a number config value */ export declare function parseNumberConfig(value: string | null, defaultValue: number): number; /** * Get search limit for a specific entity type */ export declare function getSearchLimit(db: DB, entityType: "tags" | "facts" | "resources" | "skills" | "executionLogs"): Promise; /** * Get whether to include soft-deleted items in search */ export declare function getSearchIncludeDeleted(db: DB): Promise; /** * Get context budget for a specific entity type */ export declare function getContextBudget(db: DB, entityType: "facts" | "resources" | "skills"): Promise; /** * Get tag affinity weights for search ordering */ export declare function getTagAffinityWeights(db: DB): Promise>; /** * Get source type trust levels */ export declare function getSourceTypeTrust(db: DB): Promise>; /** * Get staleness warning threshold (0.0 to 1.0) */ export declare function getStalenessWarningThreshold(db: DB): Promise; /** * Get snapshot max size in KB */ export declare function getSnapshotMaxSizeKb(db: DB): Promise; /** * Get snapshot overflow behavior */ export declare function getSnapshotOverflowBehavior(db: DB): Promise<"truncate" | "summarize" | "remove_noise" | "auto">; //# sourceMappingURL=config.d.ts.map