/** * The following Symbol.observable polyfill mitigates consumers of this API seeing the following * error: * * "You provided an invalid object where a stream was expected..." * * This was observed with labeling-api version 1.0.19 in image-segmentation of Jul 15, 2020 * by Luke Ulrich and a client building a custom interface (segments-ai). * * Likely caused by rxjs / redux version mismatches. The error readily surfaced for others * when opening in Safari. * * https://github.com/reduxjs/redux/releases, release notes for 4.0.3 * "If you are experiencing type errors related to [Symbol.observable], please ensure you have * the same version of redux installed for all your dependencies with npm ls redux." * * https://twitter.com/BenLesh/status/1192478226385428483?s=20 * https://github.com/nrwl/nx/pull/2130/files * https://stackoverflow.com/a/53906123 */ import 'symbol-observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/take'; import 'rxjs/add/operator/filter'; import { ExposedAsset } from './redux/reducer'; import { LabelTypes } from './types'; export { LabelTypes, SchemaID } from './types'; export { Asset, ExposedAsset } from './redux/reducer'; export { AssetMetadata } from './get-next-row'; export { AttachmentType } from './graphql-types'; export { annotations, debugState } from './annotations/annotations'; export { KeyframeAnnotationBuilder as keyframeAnnotationBuilder, keyframeAnnotations, } from './annotations/keyframed-annotations'; export declare const initialProjectId: string | undefined; export declare function init(): void; export declare function setLabelForAsset(label: string, typeName?: LabelTypes, templateId?: string | null): Promise; export declare function fetchNextAssetToLabel(): Promise; export declare const setLabelAsCurrentAsset: (labelId: string) => void; export declare const getTemplateCustomization: () => { subscribe: (cb: Function) => { unsubscribe: () => void; }; }; export declare const currentAsset: () => { subscribe: (callback: any) => { unsubscribe: () => void; }; _pipe1: (arg: any) => import("rxjs").Observable; }; export declare const skip: () => Promise; export declare const update: () => Promise; export declare const enablePreloading: ({ preloadFunction, }: { preloadFunction: (asset: ExposedAsset) => Promise; }) => void; export declare function markAssetAsLabeled({ label, labelId, typeName, }: { label: string; labelId: string; typeName: LabelTypes; }): boolean; export declare const getCurrentUser: () => Promise<{ id: string; email: string; name: string | null; organizationId: string; } | null>; export declare const _createIdFactory: (idFactory?: (() => string) & { slug: () => string; isCuid: (cuid: string) => boolean; isSlug: (slug: string) => boolean; }) => { get(dataRowId: string): string; remove(dataRowId: string): boolean; };