import { z } from 'zod'; import { Config } from '../config'; import { Receipt } from '../receipt'; import { Secrets } from '../types'; import { ValidationResult } from '../validation-result'; /** * Interpolates `secrets` into `config` and validates the interpolated configuration. * * @param config a JSON object representation of config.json * @param secrets a key value object with the secrets * @returns `{success: true, data: }` if successful, `{success: false, error: }` otherwise */ export declare function parseConfigWithSecrets(config: unknown, secrets: unknown): ValidationResult; /** * @param config a JSON object representation of config.json * @returns `{success: true, data: }` if successful, `{success: false, error: }` otherwise */ export declare function parseConfig(config: unknown): ValidationResult; export declare const secretNameSchema: z.ZodString; export declare const secretsSchema: z.ZodRecord; /** * @param secrets a key value object with the secrets * @returns `{success: true, data: }` if successful, `{success: false, error: }` otherwise */ export declare function parseSecrets(secrets: unknown): ValidationResult; /** * @param receipt a JSON object representation of receipt.json * @returns `{success: true, data: }` if successful, `{success: false, error: }` otherwise */ export declare function parseReceipt(receipt: unknown): ValidationResult; /** * Used to interpolate secrets into config. This function only interpolates the secrets and does not perform any * validation. Only use this function when you are sure the interpolation result is a valid Airnode config. * * In case there is an error when interpolating secrets the function throws an error. */ export declare function unsafeParseConfigWithSecrets(config: unknown, secrets: Secrets): Config; //# sourceMappingURL=api.d.ts.map