import { InterpreterURIOfProgramInterpreter } from './materializer'; import { InterpreterURI, InterpreterResult } from './InterpreterResult'; import { HKT2 } from '../common/HKT'; import { ProgramURI, ProgramType, ProgramAlgebra } from './ProgramType'; export declare type ExtType> = E['ext']; export declare class Extension[ProgURI]>> { readonly ext: Ext; constructor(ext: Ext); /** * Defines the base program type */ static of(_p: ProgURI): Extension; /** * Extends the current algebra with new definitions */ with(x: ProgramAlgebra[ProgURI] & Ext) => HKT2; }>>(o: O): Extension; /** * Convenience method to opacity Extension as a nominal type in order to reduce inference noise */ asType(): Extension; /** * Returns an interpreter extended with this new albegra */ interpretedBy(program: ProgramType[ProgURI]) => InterpreterResult[InterpreterURI]>(int: Interp): (program: (x: ProgramAlgebra[ProgURI] & Ext) => HKT2) => InterpreterResult[InterpreterURIOfProgramInterpreter]; }