/** * OpenCapTable DAR path helpers. Published as `@fairmint/open-captable-protocol-daml-js/openCapTableDarPath` only (uses * Node `fs`; not re-exported from the package root so browser/Next bundles stay valid). * * @remarks * User-facing documentation for `OPEN_CAP_TABLE_DAR_PATH`, monorepo layout, and options lives in this repository’s * **GitHub Wiki** — not in markdown files inside the repo. */ /** Env var: absolute or cwd-relative path to a `.dar` file; checked first when set. */ export declare const OPEN_CAP_TABLE_DAR_PATH_ENV: "OPEN_CAP_TABLE_DAR_PATH"; /** * Npm `exports` subpath for the raw DAR file (for tools that need `require.resolve` / bundler parity). * * @see package.json `exports["./opencaptable.dar"]` */ export declare const OPEN_CAP_TABLE_DAR_EXPORT_SUBPATH: "./opencaptable.dar"; export interface ResolveOpenCapTableDarPathOptions { /** * Root of the consuming repository (e.g. SDK or app checkout). The parent directory should contain * `open-captable-protocol-daml` when using the default sibling layout. */ siblingSearchFrom?: string; /** * Custom DAR path: absolute, or relative to `siblingSearchFrom` (required when relative). Use when the daml checkout * is not at the default sibling path. */ siblingDarPath?: string; } /** * Absolute path to the OpenCapTable DAR inside this npm package (`published-dars/OpenCapTable.dar`). * * @throws If the file is missing (corrupt install, or git checkout without `npm run codegen` / staging). */ export declare function getOpenCapTableDarPath(): string; /** * Resolve the OpenCapTable DAR for local tooling and tests. Resolution order: * * 1. **`OPEN_CAP_TABLE_DAR_PATH`** (if set and the file exists). * 2. Packaged DAR via {@link getOpenCapTableDarPath}. * 3. **`siblingDarPath`** when it resolves to an existing file (absolute, or relative to `siblingSearchFrom`). * 4. Default sibling checkout: `{siblingSearchFrom}/../open-captable-protocol-daml/published-dars/OpenCapTable.dar`. * * On failure after step 2, the thrown error sets **`cause`** to the packaged-DAR error when it was an `Error`. */ export declare function resolveOpenCapTableDarPath(options?: ResolveOpenCapTableDarPathOptions): string; //# sourceMappingURL=openCapTableDarPath.d.ts.map