import { OperatorFunction } from 'rxjs'; export interface MightHaveId { id?: string; } export declare function mapToRecord(state?: RecordState): OperatorFunction>; export interface IRecord { readonly id: string; readonly dbo?: T; readonly state?: RecordState; } export type RecordState = 'changed' | 'creating' | 'deleting' | 'loading' | 'unchanged' | 'updating';