export declare type ICoreoRecordData = any; export interface ICoreoRecord { id?: number; lat?: number; lng?: number; projectId: number; surveyId?: number; data?: ICoreoRecordData; records?: CoreoRecord[]; } export interface ICoreoRecordFile { url: string; path: string; type?: string; } export declare class CoreoRecordVerificationState { static PENDING: number; static INCORRECT: number; static UNLIKELY: number; static PLAUSIBLE: number; static LIKELY: number; static CORRECT: number; static isVerified(state: number): boolean; static isUnverified(state: number): boolean; } export declare class CoreoRecord implements ICoreoRecord { lat?: number; lng?: number; projectId: number; surveyId?: number; data: ICoreoRecordData; records: CoreoRecord[]; private files; constructor(options?: ICoreoRecord); setData(key: string, value: string): void; addFile(path: string, url: string, type?: string): void; private loadFiles(); private dataWithFiles(); /** * Convert the record to a FormData object ready for upload */ toFormData(): Promise; createChildRecord(options?: ICoreoRecord): CoreoRecord; /** * Load a file from the filesystem into a blob */ private loadFile(file); }