import { CapabilityExport } from "../types"; import { ModuleConfig } from "../types"; import { TLSOut } from "../tls"; import { WebhookIgnore } from "../k8s"; import { V1Deployment, V1MutatingWebhookConfiguration, V1ValidatingWebhookConfiguration } from "@kubernetes/client-node/dist/gen"; import { WebhookType } from "../enums"; import { kind } from "kubernetes-fluent-client"; export declare function norWatchOrAdmission(capabilities: CapabilityExport[]): boolean; export declare function isAdmission(capabilities: CapabilityExport[]): boolean; export declare function isWatcher(capabilities: CapabilityExport[]): boolean; export declare class Assets { readonly name: string; readonly tls: TLSOut; readonly apiPath: string; readonly config: ModuleConfig; readonly path: string; readonly alwaysIgnore: WebhookIgnore; readonly imagePullSecrets: string[]; capabilities: CapabilityExport[]; image: string; buildTimestamp: string; readonly host?: string; constructor(config: ModuleConfig, path: string, imagePullSecrets: string[], host?: string); deploy(deployFunction: (assets: Assets, force: boolean, webhookTimeout: number) => Promise, force: boolean, webhookTimeout?: number): Promise; zarfYaml: (zarfYamlGenerator: (assets: Assets, path: string, type: "manifests" | "charts") => string, path: string) => string; zarfYamlChart: (zarfYamlGenerator: (assets: Assets, path: string, type: "manifests" | "charts") => string, path: string) => string; allYaml: (yamlGenerationFunction: (assets: Assets, deployments: { admission: V1Deployment | null; watch: V1Deployment | null; }, services: { admission: kind.Service | null; watch: kind.Service | null; }) => Promise, getControllerManifests: { getDeploymentFunction: (assets: Assets, hash: string, buildTimestamp: string, imagePullSecret?: string) => kind.Deployment | null; getWatcherFunction: (assets: Assets, hash: string, buildTimestamp: string, imagePullSecret?: string) => kind.Deployment | null; getServiceFunction: (name: string, assets: Assets) => kind.Service | null; getWatcherServiceFunction: (name: string, assets: Assets) => kind.Service | null; }, imagePullSecret?: string) => Promise; writeWebhookFiles: (validateWebhook: V1MutatingWebhookConfiguration | V1ValidatingWebhookConfiguration | null, mutateWebhook: V1MutatingWebhookConfiguration | V1ValidatingWebhookConfiguration | null, helm: Record>) => Promise; generateHelmChart: (webhookGeneratorFunction: (assets: Assets, mutateOrValidate: WebhookType, timeoutSeconds: number | undefined) => Promise, getWatcherFunction: (assets: Assets, hash: string, buildTimestamp: string, imagePullSecret?: string) => kind.Deployment | null, getModuleSecretFunction: (name: string, data: Buffer, hash: string) => kind.Secret, basePath: string) => Promise; } //# sourceMappingURL=assets.d.ts.map