import { BaseDataSource } from '@rxap/data-source'; import { IdOrInstanceOrToken } from '@rxap/definition'; export interface UseDataSourceSettings { transformer?: (source: Source) => Target; } export interface UseDataSourceValue { dataSource: IdOrInstanceOrToken; settings?: UseDataSourceSettings; /** * The last value of the data source */ lastValue?: Target; } export declare function UseDataSource(dataSource: IdOrInstanceOrToken>, name: string, settings?: UseDataSourceSettings): (target: any, propertyKey: string) => void;