import * as z from "zod";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export declare const ResourceStatus: {
    readonly Active: "active";
    readonly Tobedeleted: "tobedeleted";
};
export type ResourceStatus = ClosedEnum<typeof ResourceStatus>;
export declare const ResourceRole: {
    readonly Primary: "primary";
    readonly Secondary: "secondary";
};
export type ResourceRole = ClosedEnum<typeof ResourceRole>;
export declare const Importance: {
    readonly Primary: "primary";
    readonly Secondary: "secondary";
};
export type Importance = ClosedEnum<typeof Importance>;
/**
 * Represents a digital resource of some kind.
 */
export type Resource = {
    sourcedId: string;
    status: ResourceStatus;
    dateLastModified?: Date | undefined;
    metadata?: {
        [k: string]: any;
    } | null | undefined;
    title: string;
    roles?: Array<ResourceRole> | undefined;
    importance?: Importance | undefined;
    vendorResourceId: string;
    vendorId?: string | null | undefined;
    applicationId?: string | null | undefined;
};
/** @internal */
export declare const ResourceStatus$inboundSchema: z.ZodNativeEnum<typeof ResourceStatus>;
/** @internal */
export declare const ResourceStatus$outboundSchema: z.ZodNativeEnum<typeof ResourceStatus>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ResourceStatus$ {
    /** @deprecated use `ResourceStatus$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Active: "active";
        readonly Tobedeleted: "tobedeleted";
    }>;
    /** @deprecated use `ResourceStatus$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Active: "active";
        readonly Tobedeleted: "tobedeleted";
    }>;
}
/** @internal */
export declare const ResourceRole$inboundSchema: z.ZodNativeEnum<typeof ResourceRole>;
/** @internal */
export declare const ResourceRole$outboundSchema: z.ZodNativeEnum<typeof ResourceRole>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ResourceRole$ {
    /** @deprecated use `ResourceRole$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Primary: "primary";
        readonly Secondary: "secondary";
    }>;
    /** @deprecated use `ResourceRole$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Primary: "primary";
        readonly Secondary: "secondary";
    }>;
}
/** @internal */
export declare const Importance$inboundSchema: z.ZodNativeEnum<typeof Importance>;
/** @internal */
export declare const Importance$outboundSchema: z.ZodNativeEnum<typeof Importance>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Importance$ {
    /** @deprecated use `Importance$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Primary: "primary";
        readonly Secondary: "secondary";
    }>;
    /** @deprecated use `Importance$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Primary: "primary";
        readonly Secondary: "secondary";
    }>;
}
/** @internal */
export declare const Resource$inboundSchema: z.ZodType<Resource, z.ZodTypeDef, unknown>;
/** @internal */
export type Resource$Outbound = {
    sourcedId: string;
    status: string;
    dateLastModified?: string | undefined;
    metadata?: {
        [k: string]: any;
    } | null | undefined;
    title: string;
    roles?: Array<string> | undefined;
    importance?: string | undefined;
    vendorResourceId: string;
    vendorId?: string | null | undefined;
    applicationId?: string | null | undefined;
};
/** @internal */
export declare const Resource$outboundSchema: z.ZodType<Resource$Outbound, z.ZodTypeDef, Resource>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Resource$ {
    /** @deprecated use `Resource$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Resource, z.ZodTypeDef, unknown>;
    /** @deprecated use `Resource$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Resource$Outbound, z.ZodTypeDef, Resource>;
    /** @deprecated use `Resource$Outbound` instead. */
    type Outbound = Resource$Outbound;
}
export declare function resourceToJSON(resource: Resource): string;
export declare function resourceFromJSON(jsonString: string): SafeParseResult<Resource, SDKValidationError>;
//# sourceMappingURL=resource.d.ts.map