import type { InferBeatmapSerial, InferBeatmapVersion, InferBeatmapWrapper } from '../beatmap/schema/shared/types/infer.js'; import type { IReadOptions } from './types.js'; import type { LooseAutocomplete } from '../types/utils.js'; /** * Asynchronously read beatmap info file. * * @example * ```ts * readInfoFile('Info.dat', 4).then((data) => console.log(data)); * ``` * * Default to `Info.dat` if path not provided. * * Mismatched beatmap version will be automatically converted, unspecified will leave the version as is but not known. */ export declare function readInfoFile, TWrapper extends Record = InferBeatmapWrapper<'info'>, TSerial extends Record = InferBeatmapSerial<'info', TVersion>>(path?: LooseAutocomplete<'Info.dat' | 'info.dat'>, version?: TVersion | null, options?: IReadOptions<'info', TVersion, TWrapper, TSerial>): Promise; export declare function readInfoFile, TWrapper extends Record = InferBeatmapWrapper<'info'>, TSerial extends Record = InferBeatmapSerial<'info', TVersion>>(path?: LooseAutocomplete<'Info.dat' | 'info.dat'>, options?: IReadOptions<'info', TVersion, TWrapper, TSerial>): Promise; /** * Synchronously read beatmap info file. * * @example * ```ts * const info = readInfoFileSync('Info.dat', 4); * console.log(info); * ``` * * Default to `Info.dat` if path not provided. * * Mismatched beatmap version will be automatically converted, unspecified will leave the version as is but not known. */ export declare function readInfoFileSync, TWrapper extends Record = InferBeatmapWrapper<'info'>, TSerial extends Record = InferBeatmapSerial<'info', TVersion>>(path?: LooseAutocomplete<'Info.dat' | 'info.dat'>, version?: TVersion | null, options?: IReadOptions<'info', TVersion, TWrapper, TSerial>): TWrapper; export declare function readInfoFileSync, TWrapper extends Record = InferBeatmapWrapper<'info'>, TSerial extends Record = InferBeatmapSerial<'info', TVersion>>(path?: LooseAutocomplete<'Info.dat' | 'info.dat'>, options?: IReadOptions<'info', TVersion, TWrapper, TSerial>): TWrapper; //# sourceMappingURL=info.d.ts.map