UNPKG

710 BTypeScriptView Raw
1import { Observable } from "rxjs";
2import { LocalData } from "./local-data";
3import { RemoteData } from "./remote-data";
4import { LocalDataFactory } from "./local-data-factory";
5import { RemoteDataFactory } from "./remote-data-factory";
6export declare class CompleterService {
7 private localDataFactory;
8 private remoteDataFactory;
9 constructor(localDataFactory: LocalDataFactory, // Using any instead of () => LocalData because of AoT errors
10 remoteDataFactory: RemoteDataFactory);
11 local(data: any[] | Observable<any>, searchFields?: string | null, titleField?: string | null): LocalData;
12 remote(url: string | null, searchFields?: string | null, titleField?: string | null): RemoteData;
13}