1 |
|
2 | import { Observable } from 'rxjs';
|
3 | import { AttemptOptions } from '@lifeomic/attempt';
|
4 | import { Repository } from './repository';
|
5 | export declare abstract class Feed<Response = any, Item = any> extends Repository {
|
6 | attemptOptions: Partial<AttemptOptions<any>>;
|
7 | get items$(): Observable<Item[]>;
|
8 | observable(semaphore?: () => Promise<any>, attemptOptions?: Partial<AttemptOptions<any>>): Observable<Item[]>;
|
9 | protected moreAvailable: boolean;
|
10 | protected chance: Chance.Chance;
|
11 | protected rankToken: string;
|
12 | protected abstract set state(response: Response);
|
13 | abstract request(...args: any[]): Promise<Response>;
|
14 | abstract items(): Promise<Item[]>;
|
15 | serialize(): string;
|
16 | deserialize(data: string): void;
|
17 | toPlain(): Record<string, any>;
|
18 | isMoreAvailable(): boolean;
|
19 | }
|