1 | import { Getter } from '@loopback/core';
|
2 | import { ModelApiBuilder } from '@loopback/model-api-builder';
|
3 | import { ApplicationWithRepositories } from '@loopback/repository';
|
4 | import { ArtifactOptions } from '../types';
|
5 | import { BaseArtifactBooter } from './base-artifact.booter';
|
6 | export declare class ModelApiBooter extends BaseArtifactBooter {
|
7 | app: ApplicationWithRepositories;
|
8 | getModelApiBuilders: Getter<ModelApiBuilder[]>;
|
9 | booterConfig: ArtifactOptions;
|
10 | constructor(app: ApplicationWithRepositories, projectRoot: string, getModelApiBuilders: Getter<ModelApiBuilder[]>, booterConfig?: ArtifactOptions);
|
11 | /**
|
12 | * Load the the model config files
|
13 | */
|
14 | load(): Promise<void>;
|
15 | /**
|
16 | * Set up the loaded model classes
|
17 | */
|
18 | setupModel(configFile: string): Promise<void>;
|
19 | /**
|
20 | * Retrieve the API builder that matches the pattern provided
|
21 | * @param pattern - name of pattern for an API builder
|
22 | */
|
23 | getApiBuilderForPattern(pattern: string): Promise<ModelApiBuilder>;
|
24 | }
|
25 | /**
|
26 | * Default ArtifactOptions for ControllerBooter.
|
27 | */
|
28 | export declare const RestDefaults: ArtifactOptions;
|