import type { ValueOf } from 'type-fest';
export declare const Extensions: {
    readonly JSON: "json";
    readonly PCD: "pcd";
    readonly PLY: "ply";
    readonly PB: "pb";
    readonly PB_GZ: "pb.gz";
};
export declare const Prefixes: {
    readonly Snapshot: "visualization_snapshot";
};
declare class FileNameError extends Error {
    constructor(message: string, options?: ErrorOptions);
}
interface ParseFileSuccess {
    success: true;
    extension: ValueOf<typeof Extensions>;
    prefix: ValueOf<typeof Prefixes> | undefined;
}
interface ParseFileError {
    success: false;
    error: FileNameError;
}
type ParseFileResult = ParseFileSuccess | ParseFileError;
export declare const parseFileName: (filename: string) => ParseFileResult;
export declare const readFile: (file: File, reader: FileReader, extension: ValueOf<typeof Extensions> | undefined) => void;
export {};
