import { type CompanyBrainKnowledgeProposalPage } from "@opengeni/contracts"; import type { Database } from "./database.js"; export declare const COMPANY_BRAIN_PREFERENCE_MAX_COUNT = 100; export declare const COMPANY_BRAIN_PREFERENCE_MAX_REVISIONS = 256; export declare const COMPANY_BRAIN_PREFERENCE_MAX_CONTENT_BYTES: number; export type CompanyBrainPreferenceGuidanceRow = { preferenceId: string; stableKey: string; scope: string; status: string; supersededByPreferenceId: string | null; revisionId: string; revision: number; title: string; description: string; content: string; contentHash: string; provenanceSource: string; provenanceSourceId: string | null; trust: string; correctsRevisionId: string | null; expiresAt: Date | null; createdAt: Date; active: boolean; }; export type CompanyBrainPreferenceGuidancePage = { rows: CompanyBrainPreferenceGuidanceRow[]; preferenceCountTruncated: boolean; revisionCountTruncated: boolean; contentBytesTruncated: boolean; }; /** * Read-only review projection over governed Knowledge change proposals. RLS * filters scope before rows enter this independent item/aggregate byte bound. */ export declare function listCompanyBrainKnowledgeProposals(db: Database, input: { workspaceId: string; subjectId: string; limit?: number; }): Promise; export declare function listActivatedCompanyBrainPolicyRevisionIds(db: Database, input: { workspaceId: string; subjectId: string; revisionIds: string[]; }): Promise; /** * Read bounded full guidance only after applying the existing subject-aware * Preference Registry RLS context. Personal rows for another subject never * enter the candidate set, and relationship targets are filtered by the API * projection against this authorized page. */ export declare function listCompanyBrainPreferenceGuidance(db: Database, input: { workspaceId: string; subjectId: string; }): Promise;