/** * Format / parse helpers extracted from `request-commands.ts` * 800-line cap. Behaviour-preserving verbatim move. */ import { type RequestArtifactRole, type RequestArtifactState, type RequestType } from '../../services/artifacts/request-artifact-service.js'; export declare function resolveDefaultFormat(artifactName: string): 'compact' | 'pretty'; export declare function applyPerArtifactFormat(envelope: unknown, override: 'pretty' | 'compact' | null): unknown; /** * Map a request-artifact envelope to a `DEFAULT_FORMAT_BY_ARTIFACT` key. * The service returns the path of the artifact in `path`; the role + * filename stem gives us the artifact name. Falls back to the role * itself when no `path` field is present. */ export declare function inferArtifactName(envelope: unknown, role: string): string; export declare const VALID_ROLES: ReadonlyArray; export declare function parseRole(value: string): RequestArtifactRole; export declare function parseStateForRole(role: RequestArtifactRole, value: string): RequestArtifactState; export declare function parseRequestType(value: string): RequestType;