UNPKG

@eagleeye-solutions/integration-events-common

Version:
17 lines (16 loc) 1.07 kB
import { ApplicationConfig, GetInternalMessageFromRequestOutput } from '../types'; import { isGoogleCloudRun, requireGoogleJwt } from './gcp'; import { Request } from 'express'; import { Logger } from '../logger'; export { isGoogleCloudRun, requireGoogleJwt } from './gcp'; export declare function sendInternalMessage(appConfig: ApplicationConfig, message: unknown, attributes: Record<string, string>, logger: Logger): Promise<void>; export declare function sendInternalMessageToDlq(appConfig: ApplicationConfig, message: unknown, attributes: Record<string, string>, logger: Logger): Promise<void>; export declare function getInternalMessageFromRequest(appConfig: ApplicationConfig, req: Request): GetInternalMessageFromRequestOutput; declare const _default: { sendInternalMessage: typeof sendInternalMessage; sendInternalMessageToDlq: typeof sendInternalMessageToDlq; getInternalMessageFromRequest: typeof getInternalMessageFromRequest; isGoogleCloudRun: typeof isGoogleCloudRun; requireGoogleJwt: typeof requireGoogleJwt; }; export default _default;