import type { KnowledgeConsolidationCandidateRecord, KnowledgeConsolidationReportRecord, KnowledgeEdgeRecord, KnowledgeExtractionRecord, KnowledgeIssueRecord, KnowledgeIssueUpsertInput, KnowledgeJobRunRecord, KnowledgeNodeRecord, KnowledgeScheduleRecord, KnowledgeSourceRecord, KnowledgeRefinementTaskRecord, KnowledgeUsageRecord } from './types.js';
export declare const DEFAULT_KNOWLEDGE_DB_FILE = "knowledge-wiki.sqlite";
export declare function resolveKnowledgeDbPathFromControlPlaneDir(controlPlaneDir: string, dbFileName?: string): string;
export declare function nowMs(): number;
export declare function stableText(value: string | undefined): string | null;
export declare function issueStatusForUpsert(existing: KnowledgeIssueRecord | null | undefined, input: KnowledgeIssueUpsertInput): KnowledgeIssueRecord['status'];
export declare function uniq(values: readonly string[] | undefined): string[];
export declare function parseJsonValue<T>(value: unknown, fallback: T): T;
export declare function createSchema(db: {
    run(sql: string): void;
}): void;
export declare function getKnowledgeSchemaStatements(): readonly string[];
export declare function renderKnowledgeSchemaSql(): string;
export declare function mapSourceRow(columns: string[], values: unknown[]): KnowledgeSourceRecord;
export declare function mapNodeRow(columns: string[], values: unknown[]): KnowledgeNodeRecord;
export declare function mapEdgeRow(columns: string[], values: unknown[]): KnowledgeEdgeRecord;
export declare function mapIssueRow(columns: string[], values: unknown[]): KnowledgeIssueRecord;
export declare function mapExtractionRow(columns: string[], values: unknown[]): KnowledgeExtractionRecord;
export declare function mapJobRunRow(columns: string[], values: unknown[]): KnowledgeJobRunRecord;
export declare function mapRefinementTaskRow(columns: string[], values: unknown[]): KnowledgeRefinementTaskRecord;
export declare function mapUsageRow(columns: string[], values: unknown[]): KnowledgeUsageRecord;
export declare function mapCandidateRow(columns: string[], values: unknown[]): KnowledgeConsolidationCandidateRecord;
export declare function mapReportRow(columns: string[], values: unknown[]): KnowledgeConsolidationReportRecord;
export declare function mapScheduleRow(columns: string[], values: unknown[]): KnowledgeScheduleRecord;
//# sourceMappingURL=store-schema.d.ts.map