import { CtaPostMessageMetadata } from '../../core'; import { CtaSlot, CtaStateContext } from './types'; /** * Interim per-template post messages, carried over from the pulse beats, for CTAs the backend * does not yet describe with `cta.metadata`. Each resolver returns the same shape the backend * will send, or `null` for "no message" (the default then only opens the drawer for a block). * Backend `metadata` always wins, so entries become dead the moment tupac ships the key for * their template. * * Remove once every template here has `metadata` from the backend: delete this file, its test * and README section, and the `resolveCtaMetadata` call in `runCtaAction.ts`. */ export type CtaPostMessageResolver = (ctx: CtaStateContext) => CtaPostMessageMetadata | null; export declare const ctaPostMessages: Record>>; /** Backend `cta.metadata` first, else this template's interim resolver for the slot, else null. */ export declare const resolveCtaMetadata: (ctx: CtaStateContext) => CtaPostMessageMetadata | null;