import type { ActivatedPrinciple, PromptActivationReaderResult } from '@principles/core/runtime-v2'; export { RUNTIME_V2_PRINCIPLE_BUDGET } from '@principles/core/runtime-v2'; export type { ActivatedPrinciple, PromptActivationReaderResult }; export interface PromptActivationReaderDeps { logger?: { warn?: (msg: string) => void; info?: (msg: string) => void; error?: (msg: string) => void; }; } export declare class PromptActivationReader { private readonly workspaceDir; private readonly deps; constructor(workspaceDir: string, deps?: PromptActivationReaderDeps); readActivatedPrinciples(): Promise; private queryArtifactRow; /** * P0-G (INV-05): activation authority 推导 (derived join, 无 schema 迁移)。 * approvals 的 approvalId 是确定性的 (apr__), 因此 * artifact_id+channel 上存在 status='approved' 行 ⟺ owner 授权; * 无行 ⟺ 低风险 policy 自动激活 (system_policy)。rc-1/rc-5: 行字段按 * unknown 校验, 键存在性用 Object.hasOwn。 */ private deriveAuthority; /** * PRI-305/PRI-307: Load feature flags from .pd/config.yaml instead of .pd/feature-flags.yaml. * Uses the shared plugin config loader for consistency. */ private loadFeatureFlags; }