import * as vault from "@distilled.cloud/gcp/vault_v1";
import { unownedUnlessPrevious } from "alchemy/AdoptPolicy";
import { isResolved } from "alchemy/Diff";
import * as Provider from "alchemy/Provider";
import { Resource } from "alchemy/Resource";
import * as Data from "effect/Data";
import * as Effect from "effect/Effect";
import { GcpEnvironment } from "../Environment.ts";
import type { Providers } from "../Providers.ts";
import {
encodeOwnershipLine,
findExportByName,
findOwnedExport,
getExport,
hasOwnershipMarker,
ignoreMissing,
jsonEqual,
listActiveMatters,
listExports,
MAX_EXPORT_NAME_LENGTH,
ownedByAlchemy,
ownershipLabels,
parseOwnership,
toGeneratedName,
} from "./internal.ts";
export type MattersExportProps = {
/**
* Parent matter id. Immutable — changing it replaces the export.
*/
matterId: string;
/**
* Server-assigned export id. Leave blank on create. Immutable —
* changing it replaces the export.
*/
exportId?: string;
/**
* Export name (max 100 characters including Alchemy's ownership
* marker). Do not use `~!