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