export const postsKeys = { root: ['posts'] as const, index: (p: { url?: string title?: string tags?: string match?: 'all' | 'any' created_from?: string created_to?: string updated_from?: string updated_to?: string original_created_from?: string original_created_to?: string page?: number limit?: number }) => ['posts', 'index', p] as const, show: (id: string) => ['posts', id] as const, related: (id: string) => ['related', id] as const, changes: (p: { id?: string; page: number; limit: number }) => ['posts', 'changes', p] as const } export const tagsKeys = { root: ['tags'] as const, show: (name: string) => ['tags', name] as const } export const wikiKeys = { root: ['wiki'] as const, index: (p: { title?: string }) => ['wiki', 'index', p] as const, show: (title: string, p: { version?: string }) => ['wiki', title, p] as const }