UNPKG

histoire

Version:

A fast story book powered by Vite

18 lines • 820 B
import { z } from 'zod/v4'; /** Snapshot-bound pagination state; encoded JSON is not an authorization token. */ declare const mcpCursorSchema: z.ZodObject<{ projectId: z.ZodString; revision: z.ZodString; filterHash: z.ZodString; offset: z.ZodNumber; }, z.core.$strict>; /** Shared cursor projection. */ export type McpCursor = z.infer<typeof mcpCursorSchema>; /** Serialize canonical validated state independently of resource URI encoding. */ export declare function encodeMcpCursor(cursor: McpCursor): string; /** Validate encoding and caller-owned context; snapshot retention is checked by catalog. */ export declare function decodeMcpCursor(cursor: string, expected: Pick<McpCursor, 'projectId' | 'filterHash'> & { revision?: string; }): McpCursor; export {}; //# sourceMappingURL=cursors.d.ts.map