import { ContextualMethods } from '../ContextualMethods'; import { ComposeModifiers, FocusedValue, Modifiers, PartialLens, TotalLens, partial, readOnly } from '../types'; export declare const tag: unique symbol; export type Tag = { [tag]: [root: S, invariance: (a: A, s: S) => void]; }; export interface _PureOptic { get(s: S): FocusedValue; derive(lens: PartialLens>): PureOptic, S>; derive(lens: TotalLens>): PureOptic, S>; derive(lens: { get: (a: NonNullable) => B; key?: string; }): PureOptic, S>; derive(other: PureOptic>): PureOptic, S>; } type DeriveFromProps> = T extends Record ? { [P in keyof T as T[P] extends Function ? never : P]-?: PureOptic, S>; } : {}; export type PureOptic = _PureOptic & DeriveFromProps & ContextualMethods & Tag; export {};