declare namespace bPlistParser { type CallbackFunction = (error: Error|null, result: [T]) => void export function parseFile(fileNameOrBuffer: string|Buffer, callback?: CallbackFunction): Promise<[T]> } export = bPlistParser