integreat
Version:
Node.js integration layer
7 lines (6 loc) • 611 B
TypeScript
import Auth from '../Auth.js';
import type { Authentication } from '../types.js';
import type { Action, Response, Dispatch, Middleware } from '../../types.js';
import type Service from '../Service.js';
export declare const authenticateCallback: (service: Service, dispatch: Dispatch, shouldCompleteIdent: boolean, incomingAuth?: Auth[]) => (authentication: Authentication, action?: Action | null) => Promise<Response<unknown>>;
export declare function dispatchIncoming(dispatch: Dispatch, middleware: Middleware, serviceId: string): (action: Action | null) => import("p-progress").PProgress<Response<unknown>>;