import * as z from "zod"; import { Result as SafeParseResult } from "../../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare enum TargetDialects { UcastPlusAll = "ucast+all", UcastPlusMinimal = "ucast+minimal", UcastPlusPrisma = "ucast+prisma", UcastPlusLinq = "ucast+linq", SqlPlusSqlserver = "sql+sqlserver", SqlPlusMysql = "sql+mysql", SqlPlusPostgresql = "sql+postgresql", SqlPlusSqlite = "sql+sqlite" } export type TargetSQLTableMappings = { sqlserver?: { [k: string]: any; } | undefined; mysql?: { [k: string]: any; } | undefined; postgresql?: { [k: string]: any; } | undefined; sqlite?: { [k: string]: any; } | undefined; }; /** * Additional options to use during partial evaluation. Only the disableInlining option is currently supported in OPA. Enterprise OPA may support additional options. */ export type CompileOptions = { /** * A list of paths to exclude from partial evaluation inlining. */ disableInlining?: Array | undefined; /** * The output targets for partial evaluation. Different targets will have different constraints. */ targetDialects?: Array | undefined; targetSQLTableMappings?: TargetSQLTableMappings | undefined; /** * The Rego rule to evaluate for generating column masks. */ maskRule?: string | undefined; }; /** @internal */ export declare const TargetDialects$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const TargetDialects$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace TargetDialects$ { /** @deprecated use `TargetDialects$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `TargetDialects$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const TargetSQLTableMappings$inboundSchema: z.ZodType; /** @internal */ export type TargetSQLTableMappings$Outbound = { sqlserver?: { [k: string]: any; } | undefined; mysql?: { [k: string]: any; } | undefined; postgresql?: { [k: string]: any; } | undefined; sqlite?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const TargetSQLTableMappings$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace TargetSQLTableMappings$ { /** @deprecated use `TargetSQLTableMappings$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TargetSQLTableMappings$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TargetSQLTableMappings$Outbound` instead. */ type Outbound = TargetSQLTableMappings$Outbound; } export declare function targetSQLTableMappingsToJSON(targetSQLTableMappings: TargetSQLTableMappings): string; export declare function targetSQLTableMappingsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CompileOptions$inboundSchema: z.ZodType; /** @internal */ export type CompileOptions$Outbound = { disableInlining?: Array | undefined; targetDialects?: Array | undefined; targetSQLTableMappings?: TargetSQLTableMappings$Outbound | undefined; maskRule?: string | undefined; }; /** @internal */ export declare const CompileOptions$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompileOptions$ { /** @deprecated use `CompileOptions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompileOptions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompileOptions$Outbound` instead. */ type Outbound = CompileOptions$Outbound; } export declare function compileOptionsToJSON(compileOptions: CompileOptions): string; export declare function compileOptionsFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=compileoptions.d.ts.map