/** Options for a single save invocation. */
export interface WorkflowSaveOptions {
    /** Optional version message describing what changed (stored as metadata.version.message). */
    readonly versionMessage?: string;
}
/** Return value of {@link useWorkflowSave}. */
export interface UseWorkflowSaveReturn {
    /**
     * Parse the YAML and call `workflow.apply()` on the server.
     * Returns `true` on success, `false` on failure (check `error`).
     */
    readonly save: (yaml: string, options?: WorkflowSaveOptions) => Promise<boolean>;
    /** `true` while a save request is in flight. */
    readonly isSaving: boolean;
    /** Error from the last failed save, or `null` on success. */
    readonly error: Error | null;
}
/**
 * Behavior hook that persists workflow YAML to the server via `apply()`.
 *
 * Parses the YAML into a `WorkflowInput`, calls `stigmer.workflow.apply()`,
 * and returns success/failure state. Handles UNIMPLEMENTED gracefully
 * (backend not yet deployed) with a descriptive error message.
 *
 * @param org - Organization slug for the target workflow.
 *
 * @since T10 (YAML Editor with Graph Preview)
 */
export declare function useWorkflowSave(org: string): UseWorkflowSaveReturn;
//# sourceMappingURL=useWorkflowSave.d.ts.map