/** * Memory Journal MCP Server - AutoContext boundary validation */ import { z } from 'zod'; /** * Session Commit Context Schema */ export declare const SessionCommitContextSchema: z.ZodObject<{ commits: z.ZodArray; branch: z.ZodOptional; pr: z.ZodOptional; repo: z.ZodOptional; }, z.core.$strip>; export type SessionCommitContext = z.infer; /** * Versioned Envelope Schema for explicit typing */ export declare const VersionedEnvelopeSchema: z.ZodObject<{ version: z.ZodString; data: z.ZodUnknown; }, z.core.$strip>; export type VersionedEnvelope = z.infer; /** * Union schema for all valid AutoContext payloads */ export declare const AutoContextSchema: z.ZodUnion, z.ZodObject<{ commits: z.ZodArray; branch: z.ZodOptional; pr: z.ZodOptional; repo: z.ZodOptional; }, z.core.$strip>]>; /** * Helper to safely parse and validate autoContext JSON. * Returns the parsed object, or null if invalid/omitted. */ export declare function parseAutoContext(autoContext: string | null | undefined): Record | null; /** * Safe extractor specifically for Session Commit entries. */ export declare function parseSessionCommitContext(autoContext: string | null | undefined): SessionCommitContext | null; //# sourceMappingURL=auto-context.d.ts.map