import { Observable } from 'rxjs'; import { PreviewValue } from '@sanity/types'; import type { ApiConfig, Path, PrepareViewOptions } from './types'; import { Previewable, PreviewableType } from './types'; export interface PreparedSnapshot { type?: PreviewableType; snapshot: undefined | PreviewValue; } export declare function isRecord(value: unknown): value is Record; export declare function isReference(value: unknown): value is { _ref: string; }; export declare function createPreviewObserver(observePaths: (value: Previewable, paths: Path[], apiConfig?: ApiConfig) => any): (value: Previewable, type: PreviewableType, viewOptions?: PrepareViewOptions, apiConfig?: ApiConfig) => Observable; //# sourceMappingURL=createPreviewObserver.d.ts.map