/** * API Service Types * Data operations, CRUD, documents, users, search */ export interface Document { id: string; title: string; content?: string; workspaceId: string; ownerId: string; createdAt?: string; updatedAt?: string; version?: number; tags?: string[]; } export interface DocumentFilters { workspaceId?: string; ownerId?: string; tags?: string[]; search?: string; } export interface SearchResult { id: string; title: string; excerpt?: string; type: string; score: number; } export interface UseFetchOptions { initialData?: T; onError?: (error: Error) => void; onSuccess?: (data: T) => void; enabled?: boolean; } export interface UseFormOptions { initialValues: T; onSubmit?: (values: T) => Promise; validate?: (values: T) => Record; onError?: (error: Error) => void; } export interface FormErrors { [key: string]: string | undefined; } export interface FormValues { [key: string]: unknown; } export interface UseDocumentOptions { id: string; onError?: (error: Error) => void; } export interface UseUserOptions { onError?: (error: Error) => void; } export interface UseSearchOptions { query?: string; onError?: (error: Error) => void; } export interface UsePaginationOptions { pageSize?: number; initialPage?: number; onError?: (error: Error) => void; } export interface PaginationState { page: number; pageSize: number; total: number; hasNext: boolean; hasPrev: boolean; } //# sourceMappingURL=types.d.ts.map