import { Item, TFilter, TApiResponse, TApiListResponse } from "../types";
export declare function createLocalStorageApi<T extends object>(nameSpace: string, _primaryKey?: keyof T): {
    list: (filter?: TFilter<T>) => Promise<TApiListResponse<T & Item>>;
    get: (keyValue: string, keyName?: keyof (T & Item)) => Promise<TApiResponse<(T & Item) | null>>;
    create: (item: T) => Promise<TApiResponse<T & Item>>;
    delete: (keyValue: string, keyName?: keyof (T & Item)) => Promise<TApiResponse<void>>;
    update: (keyValue: string, updates: Partial<T>, keyName?: keyof (T & Item)) => Promise<TApiResponse<(T & Item) | null>>;
    deleteAll: (filter?: TFilter<T>) => Promise<TApiResponse<void>>;
};
