import type { WorkspaceBlockSelectOption, WorkspaceInventory } from './workspace-inventory-types.js'; /** * Synchronously read and parse the canonical workspace inventory file. * * This compatibility helper is intentionally sync-only for callers that expose * synchronous APIs. Prefer `readWorkspaceInventoryAsync()` from async command * paths so workspace reads do not block the event loop. * * @deprecated Since 0.22.10. Use `readWorkspaceInventoryAsync()` from async * command paths. Removal target: not currently scheduled; this sync * compatibility helper remains available until release notes announce a * versioned target. * * @param projectDir Workspace root directory. * @returns Parsed `WorkspaceInventory` including the resolved `blockConfigPath`. * @throws {Error} When `scripts/block-config.ts` is missing or invalid. */ export declare function readWorkspaceInventory(projectDir: string): WorkspaceInventory; /** * Asynchronously read and parse the canonical workspace inventory file. * * @param projectDir Workspace root directory. * @returns Parsed `WorkspaceInventory` including the resolved `blockConfigPath`. * @throws {Error} When `scripts/block-config.ts` is missing or invalid. */ export declare function readWorkspaceInventoryAsync(projectDir: string): Promise; /** * Synchronously return select options for the current workspace block inventory. * * The `description` field mirrors `block.typesFile`, while `name` and `value` * both map to the block slug for use in interactive add flows. * * @deprecated Since 0.22.10. Use `getWorkspaceBlockSelectOptionsAsync()` from * async command paths. Removal target: not currently scheduled; this sync * compatibility helper remains available until release notes announce a * versioned target. * * @param projectDir Workspace root directory. * @returns Block options for variation-target selection. */ export declare function getWorkspaceBlockSelectOptions(projectDir: string): WorkspaceBlockSelectOption[]; /** * Asynchronously return select options for the current workspace block inventory. * * The returned option shape matches `getWorkspaceBlockSelectOptions()` while * avoiding synchronous inventory reads in interactive or async command paths. * * @param projectDir Workspace root directory. * @returns Block options for variation-target selection. */ export declare function getWorkspaceBlockSelectOptionsAsync(projectDir: string): Promise;