///
import { Disk } from 'file-disk';
import { TypedError } from 'typed-error';
export interface MBRPartition {
offset: number;
size: number;
type: number;
index: number;
}
export interface GPTPartition {
offset: number;
size: number;
type: string;
index: number;
guid: string;
name: string;
}
export declare type GetPartitionsResult = {
type: 'mbr';
partitions: MBRPartition[];
} | {
type: 'gpt';
partitions: GPTPartition[];
};
export declare class PartitionNotFound extends TypedError {
constructor(partitionNumber: number);
}
/**
* @summary Get information from a partition
* @public
* @function
*
* @param {String|Buffer|filedisk.Disk} image - image path or buffer or filedisk.Disk instance
* @param {Object} number - partition number
*
* @returns {Promise