import { type SpaceVersionLink } from '@xopcai/gateway-contract'; import { z } from 'zod'; export declare const SPACE_WORKBOOK_MAX_BYTES: number; export declare const saveSpaceWorkbookSchema: z.ZodObject<{ baseVersionId: z.ZodUUID; snapshot: z.ZodObject<{ id: z.ZodString; name: z.ZodString; sheetOrder: z.ZodArray; sheets: z.ZodRecord>; f: z.ZodOptional>; }, z.core.$loose>>>; }, z.core.$loose>>; }, z.core.$loose>; }, z.core.$strict>; export declare const createSpaceWorkbookSchema: z.ZodObject<{ requestId: z.ZodUUID; title: z.ZodString; snapshot: z.ZodObject<{ id: z.ZodString; name: z.ZodString; sheetOrder: z.ZodArray; sheets: z.ZodRecord>; f: z.ZodOptional>; }, z.core.$loose>>>; }, z.core.$loose>>; }, z.core.$loose>; source: z.ZodOptional>; }, z.core.$strict>; export declare function loadSpaceWorkbook(id: string, versionId?: string): { id: string; title: string; versionId: string; currentVersionId: string; snapshot: { [x: string]: unknown; id: string; name: string; sheetOrder: string[]; sheets: Record>; }>; }; } | null; export declare function findSpaceWorkbookByTitle(title: string): { id: string; title: string; }[]; export declare function openSpaceBudgetWorkbook(): SpaceVersionLink | 'trashed'; export declare function createSpaceWorkbook(input: z.infer): SpaceVersionLink | 'conflict'; export declare function saveSpaceWorkbook(id: string, input: z.infer): SpaceVersionLink | 'missing' | 'conflict'; export declare function undoSpaceWorkbookVersion(id: string, versionId: string, sourceVersionId: string): "missing" | SpaceVersionLink | "conflict";