/** * Created by Samuel Gratzl on 29.09.2016. */ import { ITypeDefinition, IValueTypeEditor, ValueTypeEditor } from './valuetypes'; export interface IIDTypeDetector { detectIDType: (data: any[], accessor: (row: any) => string, sampleSize: number, options?: { [property: string]: any; }) => Promise | number; } interface IPluginResult { idType: string; confidence: number; } export declare class IDTypeUtils { static editIDType(definition: ITypeDefinition): Promise; static guessIDType(def: ITypeDefinition, data: any[], accessor: (row: any) => string): Promise; static isIDType(name: string, index: number, data: any[], accessor: (row: any) => string, sampleSize: number): Promise; static executePlugins(data: any[], accessor: (row: any) => string, sampleSize: number): Promise; static parseIDType(def: ITypeDefinition, data: any[], accessor: (row: any, value?: any) => string): any[]; static getMarkup(this: ValueTypeEditor, current: ValueTypeEditor, def: ITypeDefinition): Promise; static idType(): IValueTypeEditor; } export {};