mirror of
https://github.com/bitwarden/browser
synced 2024-12-26 18:04:07 +01:00
14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
import { Importer } from '../importers/importer';
|
|
|
|
export interface ImportOption {
|
|
id: string;
|
|
name: string;
|
|
}
|
|
export abstract class ImportService {
|
|
featuredImportOptions: ImportOption[];
|
|
regularImportOptions: ImportOption[];
|
|
getImportOptions: () => ImportOption[];
|
|
import: (importer: Importer, fileContents: string, organizationId?: string) => Promise<Error>;
|
|
getImporter: (format: string, organization?: boolean) => Importer;
|
|
}
|