1 | import convict from 'convict';
|
2 | import { ValidatedJobConfig, OpConfig, APIConfig } from './interfaces';
|
3 | /**
|
4 | * Merges the provided inputSchema with commonSchema and then validates the
|
5 | * provided opConfig against the resulting schema.
|
6 | */
|
7 | export declare function validateOpConfig<T>(inputSchema: convict.Schema<any>, inputConfig: any): OpConfig & T;
|
8 | /**
|
9 | * Merges the provided inputSchema with commonSchema and then validates the
|
10 | * provided apiConfig against the resulting schema.
|
11 | */
|
12 | export declare function validateAPIConfig<T>(inputSchema: convict.Schema<any>, inputConfig: any): APIConfig & T;
|
13 | /**
|
14 | * Merges the provided inputSchema with commonSchema and then validates the
|
15 | * provided jobConfig against the resulting schema.
|
16 | */
|
17 | export declare function validateJobConfig<T>(inputSchema: convict.Schema<any>, inputConfig: any): ValidatedJobConfig & T;
|