import { z } from "zod"; //#region src/workspace-directory-catalog.d.ts declare const WORKSPACE_DIRECTORY_CATALOG_VERSION: 1; /** Canonical credential-free identity and user history for one project directory. */ declare const WorkspaceDirectoryEntrySchema: z.ZodObject<{ canonicalPath: z.ZodString; favorite: z.ZodBoolean; lastOpenedAt: z.ZodNumber; }, "strip", z.ZodTypeAny, { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }, { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }>; type WorkspaceDirectoryEntry = z.infer; /** Complete daemon-owned user-level directory catalog. */ declare const WorkspaceDirectoryCatalogSchema: z.ZodObject<{ version: z.ZodLiteral<1>; entries: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { entries: { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }[]; version: 1; }, { entries: { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }[]; version: 1; }>; type WorkspaceDirectoryCatalog = z.infer; /** Revisioned replacement snapshot pulled after daemon invalidation. */ declare const AppDaemonWorkspaceDirectorySnapshotSchema: z.ZodObject<{ revision: z.ZodNumber; catalog: z.ZodObject<{ version: z.ZodLiteral<1>; entries: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { entries: { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }[]; version: 1; }, { entries: { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }[]; version: 1; }>; }, "strip", z.ZodTypeAny, { revision: number; catalog: { entries: { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }[]; version: 1; }; }, { revision: number; catalog: { entries: { canonicalPath: string; favorite: boolean; lastOpenedAt: number; }[]; version: 1; }; }>; type AppDaemonWorkspaceDirectorySnapshot = z.infer; /** Same-origin command for changing favorite state on one canonical directory. */ declare const AppDaemonSetWorkspaceDirectoryFavoriteRequestSchema: z.ZodObject<{ canonicalPath: z.ZodString; favorite: z.ZodBoolean; }, "strip", z.ZodTypeAny, { canonicalPath: string; favorite: boolean; }, { canonicalPath: string; favorite: boolean; }>; type AppDaemonSetWorkspaceDirectoryFavoriteRequest = z.infer; /** Settled acknowledgement after the daemon has persisted a favorite command. */ declare const AppDaemonSetWorkspaceDirectoryFavoriteResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{ ok: z.ZodLiteral; }, "strip", z.ZodTypeAny, { ok: true; }, { ok: true; }>, z.ZodObject<{ ok: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["INVALID_REQUEST", "PERSISTENCE_FAILED"]>; message: z.ZodString; }, "strip", z.ZodTypeAny, { code: "INVALID_REQUEST" | "PERSISTENCE_FAILED"; message: string; }, { code: "INVALID_REQUEST" | "PERSISTENCE_FAILED"; message: string; }>; }, "strip", z.ZodTypeAny, { ok: false; error: { code: "INVALID_REQUEST" | "PERSISTENCE_FAILED"; message: string; }; }, { ok: false; error: { code: "INVALID_REQUEST" | "PERSISTENCE_FAILED"; message: string; }; }>]>; type AppDaemonSetWorkspaceDirectoryFavoriteResponse = z.infer; /** Create the empty catalog used when no backend persistence exists yet. */ declare function createEmptyWorkspaceDirectoryCatalog(): WorkspaceDirectoryCatalog; /** Parse persisted input; corruption rejects the complete file rather than guessing authority. */ declare function parseWorkspaceDirectoryCatalog(raw: unknown): WorkspaceDirectoryCatalog; /** Record one daemon-confirmed successful directory admission. */ declare function recordSuccessfulDirectoryOpen(catalog: WorkspaceDirectoryCatalog, canonicalPath: string, options?: { now?: number; }): WorkspaceDirectoryCatalog; /** Persist favorite state independently from runtime state, admitting an objective backend path when absent. */ declare function setDirectoryFavorite(catalog: WorkspaceDirectoryCatalog, canonicalPath: string, favorite: boolean, options?: { now?: number; }): WorkspaceDirectoryCatalog; interface WorkspaceDirectoryCatalogView { readonly favorites: readonly WorkspaceDirectoryEntry[]; readonly recent: readonly WorkspaceDirectoryEntry[]; } /** Project favorites in stable stored order and non-favorites in descending recency. */ declare function selectWorkspaceDirectoryCatalogView(catalog: WorkspaceDirectoryCatalog): WorkspaceDirectoryCatalogView; //#endregion export { AppDaemonSetWorkspaceDirectoryFavoriteRequest, AppDaemonSetWorkspaceDirectoryFavoriteRequestSchema, AppDaemonSetWorkspaceDirectoryFavoriteResponse, AppDaemonSetWorkspaceDirectoryFavoriteResponseSchema, AppDaemonWorkspaceDirectorySnapshot, AppDaemonWorkspaceDirectorySnapshotSchema, WORKSPACE_DIRECTORY_CATALOG_VERSION, WorkspaceDirectoryCatalog, WorkspaceDirectoryCatalogSchema, WorkspaceDirectoryCatalogView, WorkspaceDirectoryEntry, WorkspaceDirectoryEntrySchema, createEmptyWorkspaceDirectoryCatalog, parseWorkspaceDirectoryCatalog, recordSuccessfulDirectoryOpen, selectWorkspaceDirectoryCatalogView, setDirectoryFavorite };