import { type OperationIr } from "../ir/operations.js"; import { type WebhookAuthorizationRecipe } from "../schema/recipe.js"; import { type CompileContext } from "./shared.js"; /** * Compile a `WebhookAuthorizationRecipe` to an Operation IR. * * Emits one CreateItem op for the authorization at * `/sitecore/system/Settings/Webhooks/Authorizations/`. The * authorization template depends on the auth type — each conforms to * a distinct system template under * `/sitecore/templates/System/Webhooks/Authorizations/`. The compiler * emits `templateOf: { kind: "ref-path", value: ... }` so the push * pipeline resolves the template GUID at apply time. * * Secrets in the recipe are `$ENV:VAR_NAME` references. They are NOT * resolved at compile time — the IR carries the reference verbatim, * and the executor's apply path expands them at push time (so * compile-only flows like `recipe diff` don't require the env vars to * be present). * * @throws `INPUT_INVALID` if any required env var reference is malformed. */ export declare function compileWebhookAuthorizationRecipe(input: WebhookAuthorizationRecipe, context: CompileContext, _emittedFolders?: Set): OperationIr;