import type { ResourceHandler } from '../resource/ResourceHandler'; import type { IInfoBookAppendixHandler } from './appendix/IInfoBookAppendixHandler'; import type { IInfoBook } from './IInfoBook'; /** * InfoBookInitializer is a datastructure for holding information on an info book so that it can be constructed. */ export declare class InfoBookInitializer { private readonly modId; private readonly sectionsFile; private readonly injectSections; private readonly parser; constructor(args: IInfoBookArgs); initialize(resourceHandler: ResourceHandler): Promise; /** * Register an appendix handler for the given type. * @param {string} type A type string. * @param {IInfoBookAppendixHandler} handler An appendix handler. */ registerAppendixHandler(type: string, handler: IInfoBookAppendixHandler): void; } export interface IInfoBookArgs { modId: string; sectionsFile: string; resources: string[]; injectSections?: Record; }