/** * Workspace root path. Mirrors: * - the gateway's `WORKSPACE_PREFIX` (`/home/aiuser`) * - `createDefaultWorkspaceProvider`'s `uploadFiles` default * (`targetPath = options.path ?? '/home/aiuser'`) * * Shared by `useWorkspaceList` (for the key when `path` is omitted) and * `useUploadFiles` (for invalidation when `options.path` is omitted) so * default-path queries and default-path mutations target the same cache * slot. If the gateway / provider default ever moves, change this one * place and run the integration test (`workspace-cache-integration.test.tsx`) * to confirm both sides still agree. */ export declare const WORKSPACE_DEFAULT_PATH = "/home/aiuser"; /** * Query key factory for workspace cache hooks. * * TanStack Query matches keys by prefix, so a hierarchical shape lets us * target invalidation precisely: * * - `['workspace']` — all workspace queries (test-only) * - `['workspace', 'list']` — all list queries (test-only) * - `['workspace', 'list', path]` — both includeStats variants for `path` * - `['workspace', 'list', path, bool]` — the specific query * * Mutation invalidation uses `listByPath` so both stats variants refresh * after a single mutation. */ export declare const workspaceKeys: { all: () => readonly ["workspace"]; lists: () => readonly ["workspace", "list"]; listByPath: (path: string) => readonly ["workspace", "list", string]; list: (path: string, includeStats?: boolean) => readonly ["workspace", "list", string, boolean]; }; //# sourceMappingURL=workspace-query-keys.d.ts.map