UNPKG

@swan-admin/swan-ai-measurements

Version:
23 lines (22 loc) 996 B
import { BodyScanObjMetaData } from "./constants.js"; export interface FetchDataOptions { path: string; body?: any; queryParams?: string; baseUrl?: string; apiKey?: string; headers?: Record<string, string>; throwError?: boolean; stagingUrl: boolean; } export declare function fetchData(options: FetchDataOptions): Promise<any>; export declare function checkParameters(...args: any[]): boolean; export declare function checkMetaDataValue(arr: Partial<BodyScanObjMetaData>[]): boolean; export declare const checkValues: (arr: any[], requiredMetaData: any) => boolean; export declare const addScanType: (arr: Partial<BodyScanObjMetaData>[], scan_id: string, email: string) => Partial<BodyScanObjMetaData>[]; export declare function getFileChunks(file: File, chunkSize?: number): Blob[]; export declare const getUrl: ({ urlName, stagingUrl }: { urlName: string; stagingUrl: boolean; }) => string; export declare const isValidEmail: (email: string) => boolean;