1*29975bfdSEvan Bacondeclare module 'json-schema-deref-sync' {
2*29975bfdSEvan Bacon  interface Options {
3*29975bfdSEvan Bacon    /**
4*29975bfdSEvan Bacon     * The base folder to get relative path files from.
5*29975bfdSEvan Bacon     * @default process.cwd()
6*29975bfdSEvan Bacon     */
7*29975bfdSEvan Bacon    baseFolder?: string;
8*29975bfdSEvan Bacon
9*29975bfdSEvan Bacon    /**
10*29975bfdSEvan Bacon     * By default missing / unresolved refs will be left as is with their ref value intact.
11*29975bfdSEvan Bacon     * If set to true we will error out on first missing ref that we cannot resolve.
12*29975bfdSEvan Bacon     *
13*29975bfdSEvan Bacon     * @default false
14*29975bfdSEvan Bacon     */
15*29975bfdSEvan Bacon    failOnMissing?: boolean;
16*29975bfdSEvan Bacon
17*29975bfdSEvan Bacon    /**
18*29975bfdSEvan Bacon     * By default properties in a object with $ref will be removed in the output.
19*29975bfdSEvan Bacon     * If set to true they will be added/overwrite the output.
20*29975bfdSEvan Bacon     * This will use `lodash`'s merge function.
21*29975bfdSEvan Bacon     *
22*29975bfdSEvan Bacon     * @default false
23*29975bfdSEvan Bacon     */
24*29975bfdSEvan Bacon    mergeAdditionalProperties?: boolean;
25*29975bfdSEvan Bacon
26*29975bfdSEvan Bacon    /**
27*29975bfdSEvan Bacon     * By default `$id` fields will get copied when dereferencing.
28*29975bfdSEvan Bacon     * If set to true they will be removed.
29*29975bfdSEvan Bacon     * Merged properties will not get removed.
30*29975bfdSEvan Bacon     *
31*29975bfdSEvan Bacon     * @default false
32*29975bfdSEvan Bacon     */
33*29975bfdSEvan Bacon    removeIds?: boolean;
34*29975bfdSEvan Bacon
35*29975bfdSEvan Bacon    /**
36*29975bfdSEvan Bacon     * A hash mapping reference types (e.g., 'file') to loader functions.
37*29975bfdSEvan Bacon     */
38*29975bfdSEvan Bacon    loaders?: Record<string, Function>;
39*29975bfdSEvan Bacon  }
40*29975bfdSEvan Bacon
41*29975bfdSEvan Bacon  export default function deref(schema: object, options?: object): object | Error;
42*29975bfdSEvan Bacon}
43