import { ListableResourceType } from '@commercelayer/sdk'; import { FetcherResponse, Resource } from './listFetcher'; interface ResourceListInternalState { isLoading: boolean; error?: { message: string; }; data?: FetcherResponse> | undefined; } export declare const initialState: ResourceListInternalState; type Action = { type: "prepare"; } | { type: "reset"; } | { type: "loaded"; payload: FetcherResponse>; } | { type: "error"; payload: string; } | { type: "removeItem"; payload: { resourceId: string; }; }; export declare const reducer: (state: ResourceListInternalState, action: Action) => ResourceListInternalState; export {};