import type { SWRConfig as CoreSWRConfig, Key, Fetcher, MutatorOptions, BareFetcher } from '../../core' import type { Accessor, Signal } from 'solid-js' export interface SWRConfig extends CoreSWRConfig { // Solid-specific config signal?: boolean suspense?: boolean fallbackData?: Data revalidateOnMount?: boolean revalidateOnFocus?: boolean revalidateOnReconnect?: boolean refreshWhenHidden?: boolean refreshWhenOffline?: boolean compare?: (a: Data | undefined, b: Data | undefined) => boolean } export interface SWRSignals { data: Accessor error: Accessor isLoading: Accessor isValidating: Accessor loading: Accessor validating: Accessor mutate: (data?: Data | ((current: Data | undefined) => Data | Promise), options?: Partial>) => Promise } export interface SWRResponse { data: Data | undefined error: Error | undefined isLoading: boolean isValidating: boolean loading: boolean validating: boolean mutate: (data?: Data | ((current: Data | undefined) => Data | Promise), options?: Partial>) => Promise } // Re-export core types with SWR-compatible names export type { Key, Fetcher, MutatorOptions, BareFetcher, SWRFetcher } from '../../core'