import type { MirrorFn } from '../schema/shared/types/functions.js'; import type { InferBeatmapSerial, InferBeatmapVersion, InferBeatmapWrapper } from '../schema/shared/types/infer.js'; import type { BeatmapFileType } from '../schema/shared/types/schema.js'; import type { ISchemaCheckOptions } from '../mapping/types/schema.js'; export interface ILoadOptions, TWrapper = Record, TSerial = Record> { /** * Force version conversion if loaded difficulty version is mismatched. * * @default true */ forceConvert?: boolean; /** Data check option when loading. */ schemaCheck?: Partial; /** * Sort object(s) on load. * * @default true */ sort?: boolean; /** * Perform any preprocessing when JSON is created or passed. * * **Warning**: This may result in side-effects if object is passed. * * @default [] */ preprocess?: [ ((data: TSerial, version?: TVersion | null) => InferBeatmapSerial), ...MirrorFn>[] ]; /** * Perform any postprocessing after object attribute has been instantiated. * * @default [] */ postprocess?: [ ...MirrorFn>[], ((data: InferBeatmapWrapper, version?: TVersion | null) => TWrapper) ]; } //# sourceMappingURL=types.d.ts.map