1 | import { IPlugin, IRepoPlugin, PluginType, IStorePlugin, IIndexerPlugin, IFinderPlugin, IRepoSupportPlugin } from "./Types";
|
2 | import { Repo } from "./Repo";
|
3 | export declare function assert(test: any, msg?: string): void;
|
4 | export declare function isNumberOrString(o: any): o is string | number;
|
5 | export declare function isArrayType(type: any): boolean;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare function isPluginOfType(plugin: IPlugin, type: PluginType): boolean;
|
14 | export declare function isRepoPlugin(plugin: IPlugin): plugin is IRepoPlugin<any>;
|
15 | export declare function isStorePlugin(plugin: IPlugin): plugin is IStorePlugin;
|
16 | export declare function isIndexerPlugin(plugin: IPlugin): plugin is IIndexerPlugin;
|
17 | export declare function isFinderPlugin(plugin: IPlugin): plugin is IFinderPlugin;
|
18 | export declare function PromiseMap<T>(values: T[], mapper: (value: T) => any): Promise<any[]>;
|
19 | export declare function PluginFilter<P extends IPlugin>(plugins: IPlugin[], type: PluginType): P[];
|
20 | export declare function isInstanceType<T>(val: any, type: {
|
21 | new (): T;
|
22 | }): val is T;
|
23 | export declare function includesUnlessEmpty(arr: any[], val: any): boolean;
|
24 | export declare function repoAttachIfSupported(repo: Repo<any>, plugin: IRepoSupportPlugin): Repo<any>;
|