import type { AnyStringRecord } from '../../@types'; /****************************************************************************************************** * * General Tache * ******************************************************************************************************/ /** * */ export interface TacheOptions extends AnyStringRecord { } export interface TacheLevelContexts extends AnyStringRecord { } export declare const DEFAULT_TACHE_OPTIONS: Required; export declare const DEFAULT_TACHE_LEVEL_CONTEXTS: Required; declare type PrepareOptions = (options: Options) => Options; declare type PrepareTacheLevelContexts = () => TLC; declare type PrepareInput = (tacheOptions: Options, tacheLevelContexts: TLC, sources: [...Sources]) => In; declare type PrepareMidpiece = (tacheOptions: Options, tacheLevelContexts: TLC, inputs: In) => Mid; declare type PrepareOutput = (tacheOptions: Options, tacheLevelContexts: TLC, midpiece: Mid) => Out; declare type connect = (tacheOptions: Options, tacheLevelContexts: TLC, pieces: [In, Mid, Out]) => void; export interface GeneralTacheCreateOptions { defaultOptions?: Options; prepareOptions?: PrepareOptions; prepareTacheLevelContexts?: PrepareTacheLevelContexts; prepareInput?: PrepareInput; prepareMidpiece?: PrepareMidpiece; prepareOutput?: PrepareOutput; connect?: connect; } export declare const DEFAULT_GENERAL_TACHE_CREATE_OPTIONS: Required>; export declare type Tache = (...sources: [...Sources]) => Out; /** * @param createOptions * @param [tacheOptions] * @return { Tache } tache :: `(...sources: any[]) => ReturnType` */ export declare const createGeneralTache: (createOptions: GeneralTacheCreateOptions | PrepareMidpiece, tacheOptions?: Options) => Tache; export interface ICreateGeneralTache_ { (createOptions: GeneralTacheCreateOptions | PrepareMidpiece, tacheOptions: Options): Tache; (createOptions: GeneralTacheCreateOptions | PrepareMidpiece): (tacheOptions?: Options) => Tache; } /** * @see {@link createGeneralTache} */ export declare const createGeneralTache_: ICreateGeneralTache_; /** * @param tacheMaker partial applied createGeneralTache */ export declare const useGeneralTache: (tacheMaker: (options: Options) => Tache, tacheOptions: Options, ...sources: Sources) => Out; export interface IPartialUseGeneralTache_ { (tacheOptions: Options, ...sources: Sources): Out; (tacheOptions: Options): (...sources: Sources) => Out; } export interface IUseGeneralTache_ { (tacheMaker: (options: Options) => Tache, tacheOptions: Options, ...sources: Sources): Out; (tacheMaker: (options: Options) => Tache, tacheOptions: Options): (...sources: Sources) => Out; (tacheMaker: (options: Options) => Tache): IPartialUseGeneralTache_; } /** * @see {@link useGeneralTache} */ export declare const useGeneralTache_: IUseGeneralTache_; export {}; //# sourceMappingURL=base__general.taches.d.ts.map