import { z } from 'zod';

declare const MemoryActionTypeSchema: z.ZodEnum<["store_episode", "store_note", "update_note", "create_artifact", "summarize_node", "discard", "link_graph"]>;
declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
    confidence: z.ZodNumber;
    lifecycleState: z.ZodEnum<["active", "validated", "candidate", "stale", "archived"]>;
    importance: z.ZodNumber;
    source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
}, "strict", z.ZodTypeAny, {
    source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
    confidence: number;
    lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
    importance: number;
}, {
    source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
    confidence: number;
    lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
    importance: number;
}>;
declare function parseMemoryActionType(value: unknown): z.infer<typeof MemoryActionTypeSchema>;
declare function parseMemoryActionEligibilityContext(value: unknown): z.infer<typeof MemoryActionEligibilityContextSchema>;
declare const ProcedureStepExtractSchema: z.ZodObject<{
    order: z.ZodNumber;
    intent: z.ZodString;
    toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
        kind: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        kind: string;
        signature: string;
    }, {
        kind: string;
        signature: string;
    }>>>;
    expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
    order: number;
    intent: string;
    toolCall?: {
        kind: string;
        signature: string;
    } | null | undefined;
    expectedOutcome?: string | null | undefined;
    optional?: boolean | null | undefined;
}, {
    order: number;
    intent: string;
    toolCall?: {
        kind: string;
        signature: string;
    } | null | undefined;
    expectedOutcome?: string | null | undefined;
    optional?: boolean | null | undefined;
}>;
declare const ExtractedFactSchema: z.ZodObject<{
    category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
    content: z.ZodString;
    confidence: z.ZodNumber;
    tags: z.ZodArray<z.ZodString, "many">;
    entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
    structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
    procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
        order: z.ZodNumber;
        intent: z.ZodString;
        toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
            kind: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            kind: string;
            signature: string;
        }, {
            kind: string;
            signature: string;
        }>>>;
        expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
    }, "strip", z.ZodTypeAny, {
        order: number;
        intent: string;
        toolCall?: {
            kind: string;
            signature: string;
        } | null | undefined;
        expectedOutcome?: string | null | undefined;
        optional?: boolean | null | undefined;
    }, {
        order: number;
        intent: string;
        toolCall?: {
            kind: string;
            signature: string;
        } | null | undefined;
        expectedOutcome?: string | null | undefined;
        optional?: boolean | null | undefined;
    }>, "many">>>;
    reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
        steps: z.ZodArray<z.ZodObject<{
            order: z.ZodNumber;
            description: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            description: string;
            order: number;
        }, {
            description: string;
            order: number;
        }>, "many">;
        finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        steps: {
            description: string;
            order: number;
        }[];
        finalAnswer?: string | null | undefined;
        final_answer?: string | null | undefined;
        observedOutcome?: string | null | undefined;
        observed_outcome?: string | null | undefined;
    }, {
        steps: {
            description: string;
            order: number;
        }[];
        finalAnswer?: string | null | undefined;
        final_answer?: string | null | undefined;
        observedOutcome?: string | null | undefined;
        observed_outcome?: string | null | undefined;
    }>, {
        steps: {
            description: string;
            order: number;
        }[];
        finalAnswer?: string | null | undefined;
        final_answer?: string | null | undefined;
        observedOutcome?: string | null | undefined;
        observed_outcome?: string | null | undefined;
    }, {
        steps: {
            description: string;
            order: number;
        }[];
        finalAnswer?: string | null | undefined;
        final_answer?: string | null | undefined;
        observedOutcome?: string | null | undefined;
        observed_outcome?: string | null | undefined;
    }>>>;
}, "strip", z.ZodTypeAny, {
    tags: string[];
    content: string;
    category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
    confidence: number;
    entityRef?: string | null | undefined;
    structuredAttributes?: Record<string, string> | null | undefined;
    promptedByQuestion?: string | null | undefined;
    scope?: "project" | "global" | null | undefined;
    procedureSteps?: {
        order: number;
        intent: string;
        toolCall?: {
            kind: string;
            signature: string;
        } | null | undefined;
        expectedOutcome?: string | null | undefined;
        optional?: boolean | null | undefined;
    }[] | null | undefined;
    reasoningTrace?: {
        steps: {
            description: string;
            order: number;
        }[];
        finalAnswer?: string | null | undefined;
        final_answer?: string | null | undefined;
        observedOutcome?: string | null | undefined;
        observed_outcome?: string | null | undefined;
    } | null | undefined;
}, {
    tags: string[];
    content: string;
    category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
    confidence: number;
    entityRef?: string | null | undefined;
    structuredAttributes?: Record<string, string> | null | undefined;
    promptedByQuestion?: string | null | undefined;
    scope?: "project" | "global" | null | undefined;
    procedureSteps?: {
        order: number;
        intent: string;
        toolCall?: {
            kind: string;
            signature: string;
        } | null | undefined;
        expectedOutcome?: string | null | undefined;
        optional?: boolean | null | undefined;
    }[] | null | undefined;
    reasoningTrace?: {
        steps: {
            description: string;
            order: number;
        }[];
        finalAnswer?: string | null | undefined;
        final_answer?: string | null | undefined;
        observedOutcome?: string | null | undefined;
        observed_outcome?: string | null | undefined;
    } | null | undefined;
}>;
declare const EntityMentionSchema: z.ZodObject<{
    name: z.ZodString;
    type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
    facts: z.ZodArray<z.ZodString, "many">;
    promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
        key: z.ZodString;
        title: z.ZodString;
        facts: z.ZodArray<z.ZodString, "many">;
    }, "strip", z.ZodTypeAny, {
        key: string;
        title: string;
        facts: string[];
    }, {
        key: string;
        title: string;
        facts: string[];
    }>, "many">>>;
}, "strip", z.ZodTypeAny, {
    type: "project" | "person" | "tool" | "company" | "place" | "other";
    name: string;
    facts: string[];
    structuredSections?: {
        key: string;
        title: string;
        facts: string[];
    }[] | null | undefined;
    promptedByQuestion?: string | null | undefined;
}, {
    type: "project" | "person" | "tool" | "company" | "place" | "other";
    name: string;
    facts: string[];
    structuredSections?: {
        key: string;
        title: string;
        facts: string[];
    }[] | null | undefined;
    promptedByQuestion?: string | null | undefined;
}>;
declare const ExtractedQuestionSchema: z.ZodObject<{
    question: z.ZodString;
    context: z.ZodString;
    priority: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    question: string;
    priority: number;
    context: string;
}, {
    question: string;
    priority: number;
    context: string;
}>;
declare const ProactiveQuestionsResultSchema: z.ZodObject<{
    questions: z.ZodArray<z.ZodObject<{
        question: z.ZodString;
        context: z.ZodString;
        priority: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        question: string;
        priority: number;
        context: string;
    }, {
        question: string;
        priority: number;
        context: string;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    questions: {
        question: string;
        priority: number;
        context: string;
    }[];
}, {
    questions: {
        question: string;
        priority: number;
        context: string;
    }[];
}>;
declare const ExtractedRelationshipSchema: z.ZodObject<{
    source: z.ZodString;
    target: z.ZodString;
    label: z.ZodString;
    promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    source: string;
    target: string;
    label: string;
    promptedByQuestion?: string | null | undefined;
}, {
    source: string;
    target: string;
    label: string;
    promptedByQuestion?: string | null | undefined;
}>;
declare const ProactiveExtractionResultSchema: z.ZodObject<{
    facts: z.ZodArray<z.ZodObject<{
        category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
        content: z.ZodString;
        confidence: z.ZodNumber;
        tags: z.ZodArray<z.ZodString, "many">;
        entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
        structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
        procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            order: z.ZodNumber;
            intent: z.ZodString;
            toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                kind: z.ZodString;
                signature: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                kind: string;
                signature: string;
            }, {
                kind: string;
                signature: string;
            }>>>;
            expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
        }, "strip", z.ZodTypeAny, {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }, {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }>, "many">>>;
        reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
            steps: z.ZodArray<z.ZodObject<{
                order: z.ZodNumber;
                description: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                description: string;
                order: number;
            }, {
                description: string;
                order: number;
            }>, "many">;
            finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }>, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }>>>;
    }, "strip", z.ZodTypeAny, {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }, {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }>, "many">;
    profileUpdates: z.ZodArray<z.ZodString, "many">;
    entities: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
        facts: z.ZodArray<z.ZodString, "many">;
        promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            key: z.ZodString;
            title: z.ZodString;
            facts: z.ZodArray<z.ZodString, "many">;
        }, "strip", z.ZodTypeAny, {
            key: string;
            title: string;
            facts: string[];
        }, {
            key: string;
            title: string;
            facts: string[];
        }>, "many">>>;
    }, "strip", z.ZodTypeAny, {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }, {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }>, "many">;
    relationships: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
        source: z.ZodString;
        target: z.ZodString;
        label: z.ZodString;
        promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }, {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }>, "many">>>;
}, "strip", z.ZodTypeAny, {
    facts: {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }[];
    entities: {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }[];
    profileUpdates: string[];
    relationships?: {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }[] | null | undefined;
}, {
    facts: {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }[];
    entities: {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }[];
    profileUpdates: string[];
    relationships?: {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }[] | null | undefined;
}>;
declare const ExtractionResultSchema: z.ZodObject<{
    facts: z.ZodArray<z.ZodObject<{
        category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
        content: z.ZodString;
        confidence: z.ZodNumber;
        tags: z.ZodArray<z.ZodString, "many">;
        entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
        structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
        procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            order: z.ZodNumber;
            intent: z.ZodString;
            toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
                kind: z.ZodString;
                signature: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                kind: string;
                signature: string;
            }, {
                kind: string;
                signature: string;
            }>>>;
            expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
        }, "strip", z.ZodTypeAny, {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }, {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }>, "many">>>;
        reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
            steps: z.ZodArray<z.ZodObject<{
                order: z.ZodNumber;
                description: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                description: string;
                order: number;
            }, {
                description: string;
                order: number;
            }>, "many">;
            finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
            observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        }, "strip", z.ZodTypeAny, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }>, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }, {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        }>>>;
    }, "strip", z.ZodTypeAny, {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }, {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }>, "many">;
    profileUpdates: z.ZodArray<z.ZodString, "many">;
    entities: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
        facts: z.ZodArray<z.ZodString, "many">;
        promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            key: z.ZodString;
            title: z.ZodString;
            facts: z.ZodArray<z.ZodString, "many">;
        }, "strip", z.ZodTypeAny, {
            key: string;
            title: string;
            facts: string[];
        }, {
            key: string;
            title: string;
            facts: string[];
        }>, "many">>>;
    }, "strip", z.ZodTypeAny, {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }, {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }>, "many">;
    questions: z.ZodArray<z.ZodObject<{
        question: z.ZodString;
        context: z.ZodString;
        priority: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        question: string;
        priority: number;
        context: string;
    }, {
        question: string;
        priority: number;
        context: string;
    }>, "many">;
    identityReflection: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    relationships: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
        source: z.ZodString;
        target: z.ZodString;
        label: z.ZodString;
        promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }, {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }>, "many">>>;
}, "strip", z.ZodTypeAny, {
    facts: {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }[];
    entities: {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }[];
    questions: {
        question: string;
        priority: number;
        context: string;
    }[];
    profileUpdates: string[];
    relationships?: {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }[] | null | undefined;
    identityReflection?: string | null | undefined;
}, {
    facts: {
        tags: string[];
        content: string;
        category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
        confidence: number;
        entityRef?: string | null | undefined;
        structuredAttributes?: Record<string, string> | null | undefined;
        promptedByQuestion?: string | null | undefined;
        scope?: "project" | "global" | null | undefined;
        procedureSteps?: {
            order: number;
            intent: string;
            toolCall?: {
                kind: string;
                signature: string;
            } | null | undefined;
            expectedOutcome?: string | null | undefined;
            optional?: boolean | null | undefined;
        }[] | null | undefined;
        reasoningTrace?: {
            steps: {
                description: string;
                order: number;
            }[];
            finalAnswer?: string | null | undefined;
            final_answer?: string | null | undefined;
            observedOutcome?: string | null | undefined;
            observed_outcome?: string | null | undefined;
        } | null | undefined;
    }[];
    entities: {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }[];
    questions: {
        question: string;
        priority: number;
        context: string;
    }[];
    profileUpdates: string[];
    relationships?: {
        source: string;
        target: string;
        label: string;
        promptedByQuestion?: string | null | undefined;
    }[] | null | undefined;
    identityReflection?: string | null | undefined;
}>;
declare const ConsolidationItemSchema: z.ZodObject<{
    existingId: z.ZodString;
    action: z.ZodEnum<["ADD", "MERGE", "UPDATE", "INVALIDATE", "SKIP"]>;
    mergeWith: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    updatedContent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    reason: z.ZodString;
}, "strip", z.ZodTypeAny, {
    action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
    reason: string;
    existingId: string;
    mergeWith?: string | null | undefined;
    updatedContent?: string | null | undefined;
}, {
    action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
    reason: string;
    existingId: string;
    mergeWith?: string | null | undefined;
    updatedContent?: string | null | undefined;
}>;
declare const ConsolidationResultSchema: z.ZodObject<{
    items: z.ZodArray<z.ZodObject<{
        existingId: z.ZodString;
        action: z.ZodEnum<["ADD", "MERGE", "UPDATE", "INVALIDATE", "SKIP"]>;
        mergeWith: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updatedContent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        reason: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
        reason: string;
        existingId: string;
        mergeWith?: string | null | undefined;
        updatedContent?: string | null | undefined;
    }, {
        action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
        reason: string;
        existingId: string;
        mergeWith?: string | null | undefined;
        updatedContent?: string | null | undefined;
    }>, "many">;
    profileUpdates: z.ZodArray<z.ZodString, "many">;
    entityUpdates: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
        facts: z.ZodArray<z.ZodString, "many">;
        promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            key: z.ZodString;
            title: z.ZodString;
            facts: z.ZodArray<z.ZodString, "many">;
        }, "strip", z.ZodTypeAny, {
            key: string;
            title: string;
            facts: string[];
        }, {
            key: string;
            title: string;
            facts: string[];
        }>, "many">>>;
    }, "strip", z.ZodTypeAny, {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }, {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    items: {
        action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
        reason: string;
        existingId: string;
        mergeWith?: string | null | undefined;
        updatedContent?: string | null | undefined;
    }[];
    profileUpdates: string[];
    entityUpdates: {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }[];
}, {
    items: {
        action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
        reason: string;
        existingId: string;
        mergeWith?: string | null | undefined;
        updatedContent?: string | null | undefined;
    }[];
    profileUpdates: string[];
    entityUpdates: {
        type: "project" | "person" | "tool" | "company" | "place" | "other";
        name: string;
        facts: string[];
        structuredSections?: {
            key: string;
            title: string;
            facts: string[];
        }[] | null | undefined;
        promptedByQuestion?: string | null | undefined;
    }[];
}>;
declare function buildProfileConsolidationResultSchema(targetLines: number): z.ZodObject<{
    consolidatedProfile: z.ZodString;
    removedCount: z.ZodNumber;
    summary: z.ZodString;
}, "strip", z.ZodTypeAny, {
    summary: string;
    consolidatedProfile: string;
    removedCount: number;
}, {
    summary: string;
    consolidatedProfile: string;
    removedCount: number;
}>;
declare const ProfileConsolidationResultSchema: z.ZodObject<{
    consolidatedProfile: z.ZodString;
    removedCount: z.ZodNumber;
    summary: z.ZodString;
}, "strip", z.ZodTypeAny, {
    summary: string;
    consolidatedProfile: string;
    removedCount: number;
}, {
    summary: string;
    consolidatedProfile: string;
    removedCount: number;
}>;
declare const IdentityConsolidationResultSchema: z.ZodObject<{
    learnedPatterns: z.ZodArray<z.ZodString, "many">;
    summary: z.ZodString;
}, "strip", z.ZodTypeAny, {
    summary: string;
    learnedPatterns: string[];
}, {
    summary: string;
    learnedPatterns: string[];
}>;
type IdentityConsolidationResultParsed = z.infer<typeof IdentityConsolidationResultSchema>;
declare const ContradictionVerificationSchema: z.ZodObject<{
    isContradiction: z.ZodBoolean;
    confidence: z.ZodNumber;
    reasoning: z.ZodString;
    whichIsNewer: z.ZodEnum<["first", "second", "unclear"]>;
}, "strip", z.ZodTypeAny, {
    reasoning: string;
    confidence: number;
    isContradiction: boolean;
    whichIsNewer: "first" | "second" | "unclear";
}, {
    reasoning: string;
    confidence: number;
    isContradiction: boolean;
    whichIsNewer: "first" | "second" | "unclear";
}>;
type ContradictionVerificationResult = z.infer<typeof ContradictionVerificationSchema>;
declare const MemoryLinkSchema: z.ZodObject<{
    targetId: z.ZodString;
    linkType: z.ZodEnum<["follows", "references", "contradicts", "supports", "related"]>;
    strength: z.ZodNumber;
    reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    linkType: "follows" | "references" | "contradicts" | "supports" | "related";
    targetId: string;
    strength: number;
    reason?: string | null | undefined;
}, {
    linkType: "follows" | "references" | "contradicts" | "supports" | "related";
    targetId: string;
    strength: number;
    reason?: string | null | undefined;
}>;
declare const SuggestedLinksSchema: z.ZodObject<{
    links: z.ZodArray<z.ZodObject<{
        targetId: z.ZodString;
        linkType: z.ZodEnum<["follows", "references", "contradicts", "supports", "related"]>;
        strength: z.ZodNumber;
        reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        linkType: "follows" | "references" | "contradicts" | "supports" | "related";
        targetId: string;
        strength: number;
        reason?: string | null | undefined;
    }, {
        linkType: "follows" | "references" | "contradicts" | "supports" | "related";
        targetId: string;
        strength: number;
        reason?: string | null | undefined;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    links: {
        linkType: "follows" | "references" | "contradicts" | "supports" | "related";
        targetId: string;
        strength: number;
        reason?: string | null | undefined;
    }[];
}, {
    links: {
        linkType: "follows" | "references" | "contradicts" | "supports" | "related";
        targetId: string;
        strength: number;
        reason?: string | null | undefined;
    }[];
}>;
type MemoryLink = z.infer<typeof MemoryLinkSchema>;
type SuggestedLinks = z.infer<typeof SuggestedLinksSchema>;
declare const MemorySummarySchema: z.ZodObject<{
    summaryText: z.ZodString;
    keyFacts: z.ZodArray<z.ZodString, "many">;
    keyEntities: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
    summaryText: string;
    keyFacts: string[];
    keyEntities: string[];
}, {
    summaryText: string;
    keyFacts: string[];
    keyEntities: string[];
}>;
type MemorySummaryResult = z.infer<typeof MemorySummarySchema>;
declare const DaySummaryResultSchema: z.ZodObject<{
    summary: z.ZodString;
    bullets: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
    next_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
    risks_or_open_loops: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
    summary: string;
    bullets: string[];
    next_actions: string[];
    risks_or_open_loops: string[];
}, {
    summary: string;
    bullets?: string[] | undefined;
    next_actions?: string[] | undefined;
    risks_or_open_loops?: string[] | undefined;
}>;
declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
    parameter: z.ZodString;
    previousValue: z.ZodNumber;
    nextValue: z.ZodNumber;
    delta: z.ZodNumber;
    evidenceCount: z.ZodNumber;
    confidence: z.ZodNumber;
    reason: z.ZodString;
    appliedAt: z.ZodString;
}, "strip", z.ZodTypeAny, {
    reason: string;
    confidence: number;
    parameter: string;
    previousValue: number;
    nextValue: number;
    delta: number;
    evidenceCount: number;
    appliedAt: string;
}, {
    reason: string;
    confidence: number;
    parameter: string;
    previousValue: number;
    nextValue: number;
    delta: number;
    evidenceCount: number;
    appliedAt: string;
}>;
declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
    version: z.ZodNumber;
    windowDays: z.ZodNumber;
    minSignalCount: z.ZodNumber;
    maxDeltaPerCycle: z.ZodNumber;
    protectedParams: z.ZodArray<z.ZodString, "many">;
    adjustments: z.ZodArray<z.ZodObject<{
        parameter: z.ZodString;
        previousValue: z.ZodNumber;
        nextValue: z.ZodNumber;
        delta: z.ZodNumber;
        evidenceCount: z.ZodNumber;
        confidence: z.ZodNumber;
        reason: z.ZodString;
        appliedAt: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        reason: string;
        confidence: number;
        parameter: string;
        previousValue: number;
        nextValue: number;
        delta: number;
        evidenceCount: number;
        appliedAt: string;
    }, {
        reason: string;
        confidence: number;
        parameter: string;
        previousValue: number;
        nextValue: number;
        delta: number;
        evidenceCount: number;
        appliedAt: string;
    }>, "many">;
    updatedAt: z.ZodString;
}, "strip", z.ZodTypeAny, {
    version: number;
    updatedAt: string;
    windowDays: number;
    minSignalCount: number;
    maxDeltaPerCycle: number;
    protectedParams: string[];
    adjustments: {
        reason: string;
        confidence: number;
        parameter: string;
        previousValue: number;
        nextValue: number;
        delta: number;
        evidenceCount: number;
        appliedAt: string;
    }[];
}, {
    version: number;
    updatedAt: string;
    windowDays: number;
    minSignalCount: number;
    maxDeltaPerCycle: number;
    protectedParams: string[];
    adjustments: {
        reason: string;
        confidence: number;
        parameter: string;
        previousValue: number;
        nextValue: number;
        delta: number;
        evidenceCount: number;
        appliedAt: string;
    }[];
}>;
type BehaviorLoopAdjustmentParsed = z.infer<typeof BehaviorLoopAdjustmentSchema>;
type BehaviorLoopPolicyStateParsed = z.infer<typeof BehaviorLoopPolicyStateSchema>;
type MemoryActionTypeParsed = z.infer<typeof MemoryActionTypeSchema>;
type MemoryActionEligibilityContextParsed = z.infer<typeof MemoryActionEligibilityContextSchema>;
type ExtractedFactParsed = z.infer<typeof ExtractedFactSchema>;
type EntityMentionParsed = z.infer<typeof EntityMentionSchema>;
type ExtractedQuestionParsed = z.infer<typeof ExtractedQuestionSchema>;
type ProactiveQuestionsResultParsed = z.infer<typeof ProactiveQuestionsResultSchema>;
type ExtractionResultParsed = z.infer<typeof ExtractionResultSchema>;
type ConsolidationItemParsed = z.infer<typeof ConsolidationItemSchema>;
type ConsolidationResultParsed = z.infer<typeof ConsolidationResultSchema>;

export { type BehaviorLoopAdjustmentParsed, BehaviorLoopAdjustmentSchema, type BehaviorLoopPolicyStateParsed, BehaviorLoopPolicyStateSchema, type ConsolidationItemParsed, ConsolidationItemSchema, type ConsolidationResultParsed, ConsolidationResultSchema, type ContradictionVerificationResult, ContradictionVerificationSchema, DaySummaryResultSchema, type EntityMentionParsed, EntityMentionSchema, type ExtractedFactParsed, ExtractedFactSchema, type ExtractedQuestionParsed, ExtractedQuestionSchema, ExtractedRelationshipSchema, type ExtractionResultParsed, ExtractionResultSchema, type IdentityConsolidationResultParsed, IdentityConsolidationResultSchema, type MemoryActionEligibilityContextParsed, MemoryActionEligibilityContextSchema, type MemoryActionTypeParsed, MemoryActionTypeSchema, type MemoryLink, MemoryLinkSchema, type MemorySummaryResult, MemorySummarySchema, ProactiveExtractionResultSchema, type ProactiveQuestionsResultParsed, ProactiveQuestionsResultSchema, ProcedureStepExtractSchema, ProfileConsolidationResultSchema, type SuggestedLinks, SuggestedLinksSchema, buildProfileConsolidationResultSchema, parseMemoryActionEligibilityContext, parseMemoryActionType };
