import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
/**
 * Wildcard indicating all resources and fields when Data Scopes is selected
 */
export declare const DataScopesResources2: {
    readonly Wildcard: "*";
};
/**
 * Wildcard indicating all resources and fields when Data Scopes is selected
 */
export type DataScopesResources2 = ClosedEnum<typeof DataScopesResources2>;
export type DataScopesResources1 = {
    /**
     * Whether the field can be read
     */
    read?: boolean | undefined;
    /**
     * Whether the field can be written to
     */
    write?: boolean | undefined;
};
/**
 * Data scopes resource configuration that can be either detailed field permissions or a wildcard
 */
export type DataScopesResources = {
    [k: string]: {
        [k: string]: DataScopesResources1;
    };
} | DataScopesResources2;
/** @internal */
export declare const DataScopesResources2$inboundSchema: z.ZodNativeEnum<typeof DataScopesResources2>;
/** @internal */
export declare const DataScopesResources2$outboundSchema: z.ZodNativeEnum<typeof DataScopesResources2>;
/** @internal */
export declare const DataScopesResources1$inboundSchema: z.ZodType<DataScopesResources1, z.ZodTypeDef, unknown>;
/** @internal */
export type DataScopesResources1$Outbound = {
    read?: boolean | undefined;
    write?: boolean | undefined;
};
/** @internal */
export declare const DataScopesResources1$outboundSchema: z.ZodType<DataScopesResources1$Outbound, z.ZodTypeDef, DataScopesResources1>;
export declare function dataScopesResources1ToJSON(dataScopesResources1: DataScopesResources1): string;
export declare function dataScopesResources1FromJSON(jsonString: string): SafeParseResult<DataScopesResources1, SDKValidationError>;
/** @internal */
export declare const DataScopesResources$inboundSchema: z.ZodType<DataScopesResources, z.ZodTypeDef, unknown>;
/** @internal */
export type DataScopesResources$Outbound = {
    [k: string]: {
        [k: string]: DataScopesResources1$Outbound;
    };
} | string;
/** @internal */
export declare const DataScopesResources$outboundSchema: z.ZodType<DataScopesResources$Outbound, z.ZodTypeDef, DataScopesResources>;
export declare function dataScopesResourcesToJSON(dataScopesResources: DataScopesResources): string;
export declare function dataScopesResourcesFromJSON(jsonString: string): SafeParseResult<DataScopesResources, SDKValidationError>;
//# sourceMappingURL=datascopesresources.d.ts.map